ca.d.ts 491 B

123456789101112
  1. import type { FetchOptions } from '../../types/fetch';
  2. export interface CA {
  3. createSigningCertificate: (identityToken: string, publicKey: string, challenge: Buffer) => Promise<string[]>;
  4. }
  5. export type CAClientOptions = {
  6. fulcioBaseURL: string;
  7. } & FetchOptions;
  8. export declare class CAClient implements CA {
  9. private fulcio;
  10. constructor(options: CAClientOptions);
  11. createSigningCertificate(identityToken: string, publicKey: string, challenge: Buffer): Promise<string[]>;
  12. }