timestamp.d.ts 752 B

123456789101112131415161718192021
  1. import { MetadataKind, Signed, SignedOptions } from './base';
  2. import { MetaFile } from './file';
  3. import { JSONObject } from './utils';
  4. interface TimestampOptions extends SignedOptions {
  5. snapshotMeta?: MetaFile;
  6. }
  7. /**
  8. * A container for the signed part of timestamp metadata.
  9. *
  10. * A top-level that specifies the latest version of the snapshot role metadata file,
  11. * and hence the latest versions of all metadata and targets on the repository.
  12. */
  13. export declare class Timestamp extends Signed {
  14. readonly type = MetadataKind.Timestamp;
  15. readonly snapshotMeta: MetaFile;
  16. constructor(options: TimestampOptions);
  17. equals(other: Timestamp): boolean;
  18. toJSON(): JSONObject;
  19. static fromJSON(data: JSONObject): Timestamp;
  20. }
  21. export {};