UNPKG

764 BTypeScriptView Raw
1import { VersionListOpts, clearCache } from './version-list';
2declare type ArtifactOptions = {
3 version?: string;
4 arch?: string;
5 platform?: string;
6 distro?: string;
7 enterprise?: boolean;
8 cryptd?: boolean;
9 crypt_shared?: boolean;
10 csfle?: boolean;
11 bits?: '32' | '64' | 32 | 64;
12};
13export declare type Options = ArtifactOptions & VersionListOpts;
14export declare type DownloadArtifactInfo = Required<Omit<ArtifactOptions, 'csfle'>> & {
15 url: string;
16 artifact: string;
17 name: string;
18 ext: string;
19 filenamePlatform: string;
20 debug: false;
21 branch: 'master';
22};
23export declare function getDownloadURL(opts?: Options | string): Promise<DownloadArtifactInfo>;
24export default getDownloadURL;
25export { clearCache };