1/// <reference types="node" /> 2import { SignerFunc } from './types/signature'; 3import * as sigstore from './types/sigstore'; 4import type { CA } from './ca'; 5import type { Provider } from './identity'; 6import type { TLog } from './tlog'; 7import type { TSA } from './tsa'; 8export interface SignOptions { 9 ca: CA; 10 tlog: TLog; 11 tsa?: TSA; 12 identityProviders: Provider[]; 13 tlogUpload?: boolean; 14 signer?: SignerFunc; 15} 16export declare class Signer { 17 private ca; 18 private tlog; 19 private tsa?; 20 private tlogUpload; 21 private signer; 22 private identityProviders; 23 constructor(options: SignOptions); 24 signBlob(payload: Buffer): Promise<sigstore.Bundle>; 25 signAttestation(payload: Buffer, payloadType: string): Promise<sigstore.Bundle>; 26 private signWithEphemeralKey; 27 private getIdentityToken; 28} 29