import { Arch, AsyncTaskManager } from "builder-util"; import { SignOptions } from "@electron/osx-sign/dist/cjs/types"; import { AppInfo } from "./appInfo"; import { CodeSigningInfo, CreateKeychainOptions, Identity } from "./codeSign/macCodeSign"; import { Target } from "./core"; import { AfterPackContext, ElectronPlatformName } from "./index"; import { MacConfiguration } from "./options/macOptions"; import { Packager } from "./packager"; import { PlatformPackager } from "./platformPackager"; import { MemoLazy } from "builder-util-runtime"; export type CustomMacSignOptions = SignOptions; export type CustomMacSign = (configuration: CustomMacSignOptions, packager: MacPackager) => Promise; export declare class MacPackager extends PlatformPackager { readonly codeSigningInfo: MemoLazy; private _iconPath; constructor(info: Packager); get defaultTarget(): Array; protected prepareAppInfo(appInfo: AppInfo): AppInfo; getIconPath(): Promise; createTargets(targets: Array, mapper: (name: string, factory: (outDir: string) => Target) => void): void; protected doPack(outDir: string, appOutDir: string, platformName: ElectronPlatformName, arch: Arch, platformSpecificBuildOptions: MacConfiguration, targets: Array): Promise; pack(outDir: string, arch: Arch, targets: Array, taskManager: AsyncTaskManager): Promise; private sign; private getOptionsForFile; protected doSign(opts: SignOptions, customSignOptions: MacConfiguration): Promise; protected doFlat(appPath: string, outFile: string, identity: Identity, keychain: string | null | undefined): Promise; getElectronSrcDir(dist: string): string; getElectronDestinationDir(appOutDir: string): string; applyCommonInfo(appPlist: any, contentsPath: string): Promise; protected signApp(packContext: AfterPackContext, isAsar: boolean): Promise; private notarizeIfProvided; private getNotarizeOptions; }