1 | export declare type ArchiveBaseInfo = {
|
2 | sha1: string;
|
3 | sha256: string;
|
4 | url: string;
|
5 | };
|
6 | export declare type DownloadInfo = {
|
7 | edition: 'enterprise' | 'targeted' | 'base' | 'source' | 'subscription';
|
8 | target?: string;
|
9 | arch?: string;
|
10 | archive: {
|
11 | debug_symbols: string;
|
12 | } & ArchiveBaseInfo;
|
13 | cryptd?: ArchiveBaseInfo;
|
14 | shell?: ArchiveBaseInfo;
|
15 | packages?: string[];
|
16 | msi?: string;
|
17 | };
|
18 | export declare type VersionInfo = {
|
19 | changes: string;
|
20 | notes: string;
|
21 | date: string;
|
22 | githash: string;
|
23 | continuous_release: boolean;
|
24 | current: boolean;
|
25 | development_release: boolean;
|
26 | lts_release: boolean;
|
27 | production_release: boolean;
|
28 | release_candidate: boolean;
|
29 | version: string;
|
30 | downloads: DownloadInfo[];
|
31 | };
|
32 | export declare type VersionListOpts = {
|
33 | version?: string;
|
34 | versionListUrl?: string;
|
35 | cachePath?: string;
|
36 | cacheTimeMs?: number;
|
37 | productionOnly?: boolean;
|
38 | };
|
39 | export declare function getVersion(opts: VersionListOpts): Promise<VersionInfo>;
|
40 | export declare function clearCache(cachePath?: string): Promise<void>;
|