import type { ProcessedOptionsWithSinglePlatformArch, DownloadOptions, Options, ProcessedOptions } from './types.js'; export declare class Packager { canCreateSymlinks: boolean | undefined; opts: ProcessedOptions; tempBase: string; useTempDir: boolean; constructor(opts: ProcessedOptions); ensureTempDir(): Promise; testSymlink(comboOpts: ProcessedOptionsWithSinglePlatformArch, zipPath: string): Promise; skipHostPlatformSansSymlinkSupport(comboOpts: ProcessedOptionsWithSinglePlatformArch): Promise; overwriteAndCreateApp(outDir: string, comboOpts: ProcessedOptionsWithSinglePlatformArch, zipPath: string): Promise; extractElectronZip(comboOpts: ProcessedOptionsWithSinglePlatformArch, zipPath: string, buildDir: string): Promise; buildDir(platform: ProcessedOptionsWithSinglePlatformArch['platform'], arch: ProcessedOptionsWithSinglePlatformArch['arch']): Promise; createApp(comboOpts: ProcessedOptionsWithSinglePlatformArch, zipPath: string): Promise; checkOverwrite(comboOpts: ProcessedOptionsWithSinglePlatformArch, zipPath: string): Promise; getElectronZipPath(downloadOpts: DownloadOptions): Promise; packageForPlatformAndArchWithOpts(comboOpts: ProcessedOptionsWithSinglePlatformArch, downloadOpts: DownloadOptions): Promise; packageForPlatformAndArch(downloadOpts: DownloadOptions): Promise; } /** * Bundles Electron-based application source code with a renamed/customized Electron executable and * its supporting files into folders ready for distribution. * * Briefly, this function: * - finds or downloads the correct release of Electron * - uses that version of Electron to create a app in `/--` * * @example * * ```javascript * import { packager } from '@electron/packager' * * async function bundleElectronApp(options) { * const appPaths = await packager(options) * console.log(`Electron app bundles created:\n${appPaths.join("\n")}`) * } * ``` * * @param opts - Options to configure packaging. * * @returns A Promise containing the paths to the newly created application bundles. */ export declare function packager(opts: Options): Promise;