21 lines
752 B
TypeScript
Executable file
21 lines
752 B
TypeScript
Executable file
import { MetadataKind, Signed, SignedOptions } from './base';
|
|
import { MetaFile } from './file';
|
|
import { JSONObject } from './utils';
|
|
interface TimestampOptions extends SignedOptions {
|
|
snapshotMeta?: MetaFile;
|
|
}
|
|
/**
|
|
* A container for the signed part of timestamp metadata.
|
|
*
|
|
* A top-level that specifies the latest version of the snapshot role metadata file,
|
|
* and hence the latest versions of all metadata and targets on the repository.
|
|
*/
|
|
export declare class Timestamp extends Signed {
|
|
readonly type = MetadataKind.Timestamp;
|
|
readonly snapshotMeta: MetaFile;
|
|
constructor(options: TimestampOptions);
|
|
equals(other: Timestamp): boolean;
|
|
toJSON(): JSONObject;
|
|
static fromJSON(data: JSONObject): Timestamp;
|
|
}
|
|
export {};
|