import createDebug from 'debug'; import { ProcessedOptionsWithSinglePlatformArch, Options } from './types.js'; import { CreateOptions as AsarOptions } from '@electron/asar'; export declare const debug: createDebug.Debugger; export declare function sanitizeAppName(name: string): string; export declare function generateFinalBasename(opts: Pick): string; export declare function generateFinalPath(opts: ProcessedOptionsWithSinglePlatformArch): string; export declare function info(message: unknown, quiet?: boolean): void; export declare function warning(message: unknown, quiet?: boolean): void; export declare function subOptionWarning(properties: Record, optionName: string, parameter: string, value: unknown, quiet?: boolean): void; /** * Creates the final `@electron/asar` options for final packaging function based on user options. * @param opts The processed options for the packager. * @returns The ASAR options or false if ASAR is disabled. */ export declare function createAsarOpts(opts: ProcessedOptionsWithSinglePlatformArch): false | AsarOptions; export declare function ensureArray(value: T | T[]): T[]; export declare function isPlatformMac(platform: ProcessedOptionsWithSinglePlatformArch['platform']): platform is "darwin" | "mas"; /** * Gets the tmpdir for packaging. Note that if `opts.tmpdir` is false, * we're still returning a path. */ export declare function baseTempDir(opts: Options): string; /** * Convert slashes to UNIX-format separators. */ export declare function normalizePath(pathToNormalize: string): string; /** * Validates that the application directory contains a package.json file, and that there exists an * appropriate main entry point file, per the rules of the "main" field in package.json. * * See: https://docs.npmjs.com/cli/v6/configuring-npm/package-json#main * * @param appDir - the directory specified by the user * @param bundledAppDir - the directory where the appDir is copied to in the bundled Electron app */ export declare function validateElectronApp(appDir: string, bundledAppDir: string): Promise; export declare function hostInfo(): Promise;