index.d.ts 597 B

12345678910111213141516
  1. import { CAClientOptions } from './ca';
  2. import type { IdentityProvider } from '../../identity';
  3. import type { Signature, Signer } from '../signer';
  4. export declare const DEFAULT_FULCIO_URL = "https://fulcio.sigstore.dev";
  5. export type FulcioSignerOptions = {
  6. identityProvider: IdentityProvider;
  7. keyHolder?: Signer;
  8. } & Partial<CAClientOptions>;
  9. export declare class FulcioSigner implements Signer {
  10. private ca;
  11. private identityProvider;
  12. private keyHolder;
  13. constructor(options: FulcioSignerOptions);
  14. sign(data: Buffer): Promise<Signature>;
  15. private getIdentityToken;
  16. }