UNPKG

670 BTypeScriptView Raw
1export declare const DISPLAY_VERSION: string;
2export declare function isDeveloperBuild(): boolean;
3export declare function versionNumber(): string;
4export declare class VersionCheckTTL {
5 static timestampFilePath(): string;
6 private readonly file;
7 private readonly ttlSecs;
8 constructor(file?: string, ttlSecs?: number);
9 hasExpired(): Promise<boolean>;
10 update(latestVersion?: string): Promise<void>;
11}
12export declare function latestVersionIfHigher(currentVersion: string, cacheFile: VersionCheckTTL): Promise<string | null>;
13export declare function displayVersionMessage(currentVersion?: string, versionCheckCache?: VersionCheckTTL): Promise<void>;