import { Arch } from "builder-util"; import { CancellationToken, PublishConfiguration, PublishProvider } from "builder-util-runtime"; import { PublishContext, Publisher, PublishOptions } from "electron-publish"; import { MultiProgress } from "electron-publish/out/multiProgress"; import { PlatformSpecificBuildOptions } from "../index"; import { Packager } from "../packager"; import { PlatformPackager } from "../platformPackager"; export declare class PublishManager implements PublishContext { private readonly packager; private readonly publishOptions; readonly cancellationToken: CancellationToken; private readonly nameToPublisher; private readonly taskManager; readonly isPublish: boolean; readonly progress: MultiProgress | null; private readonly updateFileWriteTask; constructor(packager: Packager, publishOptions: PublishOptions, cancellationToken?: CancellationToken); private getAppInfo; getGlobalPublishConfigurations(): Promise | null>; private artifactCreatedWithoutExplicitPublishConfig; private getOrCreatePublisher; cancelTasks(): void; awaitTasks(): Promise; } export declare function getAppUpdatePublishConfiguration(packager: PlatformPackager, arch: Arch, errorIfCannot: boolean): Promise<{ updaterCacheDirName: string; provider: PublishProvider; publisherName?: string[] | null | undefined; publishAutoUpdate?: boolean | undefined; } | null>; export declare function getPublishConfigsForUpdateInfo(packager: PlatformPackager, publishConfigs: Array | null, arch: Arch | null): Promise | null>; export declare function createPublisher(context: PublishContext, version: string, publishConfig: PublishConfiguration, options: PublishOptions, packager: Packager): Publisher | null; export declare function computeDownloadUrl(publishConfiguration: PublishConfiguration, fileName: string | null, packager: PlatformPackager): string; export declare function getPublishConfigs(platformPackager: PlatformPackager, targetSpecificOptions: PlatformSpecificBuildOptions | null | undefined, arch: Arch | null, errorIfCannot: boolean): Promise | null>;