tsa.d.ts 482 B

12345678910111213141516
  1. import type { FetchOptions } from '../types/fetch';
  2. export interface TimestampRequest {
  3. artifactHash: string;
  4. hashAlgorithm: string;
  5. certificates?: boolean;
  6. nonce?: number;
  7. tsaPolicyOID?: string;
  8. }
  9. export type TimestampAuthorityOptions = {
  10. baseURL: string;
  11. } & FetchOptions;
  12. export declare class TimestampAuthority {
  13. private options;
  14. constructor(options: TimestampAuthorityOptions);
  15. createTimestamp(request: TimestampRequest): Promise<Buffer>;
  16. }