UNPKG

804 BTypeScriptView Raw
1import { ElectronDownloadRequestOptions, ElectronPlatformArtifactDetailsWithDefaults } from './types';
2export { getHostArch } from './utils';
3export { initializeProxy } from './proxy';
4export * from './types';
5/**
6 * Downloads an artifact from an Electron release and returns an absolute path
7 * to the downloaded file.
8 *
9 * @param artifactDetails - The information required to download the artifact
10 */
11export declare function downloadArtifact(_artifactDetails: ElectronPlatformArtifactDetailsWithDefaults): Promise<string>;
12/**
13 * Downloads a specific version of Electron and returns an absolute path to a
14 * ZIP file.
15 *
16 * @param version - The version of Electron you want to download
17 */
18export declare function download(version: string, options?: ElectronDownloadRequestOptions): Promise<string>;