1 | import { ElectronDownloadCacheMode, ElectronGenericArtifactDetails, ElectronPlatformArtifactDetailsWithDefaults } from './types';
|
2 | export declare function mkdtemp(parentDirectory?: string): Promise<string>;
|
3 | export declare enum TempDirCleanUpMode {
|
4 | CLEAN = 0,
|
5 | ORPHAN = 1
|
6 | }
|
7 | export declare function withTempDirectoryIn<T>(parentDirectory: string | undefined, fn: (directory: string) => Promise<T>, cleanUp: TempDirCleanUpMode): Promise<T>;
|
8 | export declare function withTempDirectory<T>(fn: (directory: string) => Promise<T>, cleanUp: TempDirCleanUpMode): Promise<T>;
|
9 | export declare function normalizeVersion(version: string): string;
|
10 |
|
11 |
|
12 |
|
13 | export declare function uname(): string;
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | export declare function getNodeArch(arch: string): string;
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | export declare function getHostArch(): string;
|
26 | export declare function ensureIsTruthyString<T, K extends keyof T>(obj: T, key: K): void;
|
27 | export declare function isOfficialLinuxIA32Download(platform: string, arch: string, version: string, mirrorOptions?: object): boolean;
|
28 |
|
29 |
|
30 |
|
31 |
|
32 | export declare function getEnv(prefix?: string): (name: string) => string | undefined;
|
33 | export declare function setEnv(key: string, value: string | undefined): void;
|
34 | export declare function effectiveCacheMode(artifactDetails: ElectronPlatformArtifactDetailsWithDefaults | ElectronGenericArtifactDetails): ElectronDownloadCacheMode;
|
35 | export declare function shouldTryReadCache(cacheMode: ElectronDownloadCacheMode): boolean;
|
36 | export declare function shouldWriteCache(cacheMode: ElectronDownloadCacheMode): boolean;
|
37 | export declare function doesCallerOwnTemporaryOutput(cacheMode: ElectronDownloadCacheMode): boolean;
|