declare module 'electron-builder/out/appInfo' { import { DevMetadata, AppMetadata } from "electron-builder/out/metadata" export class AppInfo { metadata: AppMetadata readonly description: string readonly version: string readonly buildNumber: string readonly buildVersion: string readonly productName: string readonly productFilename: string constructor(metadata: AppMetadata, devMetadata: DevMetadata, buildVersion?: string | null) readonly companyName: string readonly id: string readonly name: string readonly copyright: string computePackageUrl(): Promise } } declare module 'electron-builder/out/asarUtil' { /// import { AsarOptions } from "asar-electron-builder" import { Stats } from "fs-extra-p" import { Promise as BluebirdPromise } from "bluebird" import { Filter } from "electron-builder/out/util/filter" export function walk(dirPath: string, consumer?: (file: string, stat: Stats) => void, filter?: Filter, addRootToResult?: boolean): BluebirdPromise> export function createAsarArchive(src: string, resourcesPath: string, options: AsarOptions, filter: Filter): Promise export function checkFileInArchive(asarFile: string, relativeFile: string, messagePrefix: string): Promise } declare module 'electron-builder/out/builder' { import { Packager } from "electron-builder/out/packager" import { PackagerOptions } from "electron-builder/out/platformPackager" import { PublishOptions, Publisher } from "electron-builder/out/publish/publisher" import { Platform, Arch } from "electron-builder/out/metadata" import { PublishConfiguration, GithubPublishConfiguration } from "electron-builder/out/options/publishOptions" export interface BuildOptions extends PackagerOptions, PublishOptions { } export interface CliOptions extends PackagerOptions, PublishOptions { mac?: Array linux?: Array win?: Array arch?: string x64?: boolean ia32?: boolean armv7l?: boolean dir?: boolean platform?: string } export function normalizeOptions(args: CliOptions): BuildOptions export function createTargets(platforms: Array, type?: string | null, arch?: string | null): Map>> export function build(rawOptions?: CliOptions): Promise export function createPublisher(packager: Packager, options: PublishOptions, publishConfig: PublishConfiguration | GithubPublishConfiguration, isPublishOptionGuessed?: boolean): Promise } declare module 'electron-builder/out/cliOptions' { export function createYargs(): any } declare module 'electron-builder/out/codeSign' { import { Promise as BluebirdPromise } from "bluebird" import { TmpDir } from "electron-builder/out/util/tmp" export type CertType = "Developer ID Application" | "3rd Party Mac Developer Application" | "Developer ID Installer" | "3rd Party Mac Developer Installer" export interface CodeSigningInfo { keychainName?: string | null } export function downloadCertificate(urlOrBase64: string, tmpDir: TmpDir): BluebirdPromise export function createKeychain(tmpDir: TmpDir, cscLink: string, cscKeyPassword: string, cscILink?: string | null, cscIKeyPassword?: string | null): Promise export function sign(path: string, name: string, keychain: string): BluebirdPromise export let findIdentityRawResult: Promise> | null export function findIdentity(certType: CertType, qualifier?: string | null, keychain?: string | null): Promise } declare module 'electron-builder/out/errorMessages' { export const buildIsMissed: string export const authorEmailIsMissed: string export const buildInAppSpecified: string export const nameInBuildSpecified: string } declare module 'electron-builder/out/fileMatcher' { import { Filter } from "electron-builder/out/util/filter" import { Minimatch } from "minimatch" export interface FilePattern { from?: string to?: string filter?: Array | string } export interface FileMatchOptions { arch: string os: string } export class FileMatcher { readonly from: string readonly to: string readonly patterns: Array constructor(from: string, to: string, options: FileMatchOptions, patterns?: Array | string | n) addPattern(pattern: string): void isEmpty(): boolean getParsedPatterns(fromDir?: string): Array createFilter(ignoreFiles?: Set, rawFilter?: (file: string) => boolean, excludePatterns?: Array | n): Filter } export function deprecatedUserIgnoreFilter(ignore: any, appDir: string): (file: string) => any } declare module 'electron-builder' { export { Packager } from "electron-builder/out/packager" export { PackagerOptions, ArtifactCreated, BuildInfo } from "electron-builder/out/platformPackager" export { DIR_TARGET, DEFAULT_TARGET } from "electron-builder/out/targets/targetFactory" export { BuildOptions, build, CliOptions, createTargets } from "electron-builder/out/builder" export { PublishOptions, Publisher } from "electron-builder/out/publish/publisher" export { AppMetadata, DevMetadata, Platform, Arch, archFromString, BuildMetadata, LinuxBuildOptions, CompressionLevel } from "electron-builder/out/metadata" export { MacOptions, DmgOptions, MasBuildOptions } from "electron-builder/out/options/macOptions" export { WinBuildOptions, NsisOptions } from "electron-builder/out/options/winOptions" } declare module 'electron-builder/out/linuxPackager' { import { PlatformPackager, BuildInfo, Target } from "electron-builder/out/platformPackager" import { Platform, LinuxBuildOptions, Arch } from "electron-builder/out/metadata" export class LinuxPackager extends PlatformPackager { constructor(info: BuildInfo) normalizePlatformSpecificBuildOptions(options: LinuxBuildOptions | n): LinuxBuildOptions createTargets(targets: Array, mapper: (name: string, factory: (outDir: string) => Target) => void, cleanupTasks: Array<() => Promise>): void readonly platform: Platform pack(outDir: string, arch: Arch, targets: Array, postAsyncTasks: Array>): Promise protected postInitApp(appOutDir: string): Promise protected packageInDistributableFormat(outDir: string, appOutDir: string, arch: Arch, targets: Array): Promise } } declare module 'electron-builder/out/macPackager' { import { PlatformPackager, BuildInfo, Target } from "electron-builder/out/platformPackager" import { Platform, Arch } from "electron-builder/out/metadata" import { MacOptions } from "electron-builder/out/options/macOptions" import { CodeSigningInfo } from "electron-builder/out/codeSign" import { SignOptions, FlatOptions } from "electron-osx-sign-tf" import { AppInfo } from "electron-builder/out/appInfo" export default class MacPackager extends PlatformPackager { codeSigningInfo: Promise constructor(info: BuildInfo) protected prepareAppInfo(appInfo: AppInfo): AppInfo getIconPath(): Promise normalizePlatformSpecificBuildOptions(options: MacOptions | n): MacOptions createTargets(targets: Array, mapper: (name: string, factory: () => Target) => void, cleanupTasks: Array<() => Promise>): void readonly platform: Platform pack(outDir: string, arch: Arch, targets: Array, postAsyncTasks: Array>): Promise protected doSign(opts: SignOptions): Promise protected doFlat(opts: FlatOptions): Promise protected packageInDistributableFormat(appOutDir: string, targets: Array, promises: Array>): void } } declare module 'electron-builder/out/metadata' { import { AsarOptions } from "asar-electron-builder" import { PlatformPackager } from "electron-builder/out/platformPackager" import { MacOptions, DmgOptions, MasBuildOptions } from "electron-builder/out/options/macOptions" import { PublishConfiguration } from "electron-builder/out/options/publishOptions" import { WinBuildOptions, NsisOptions, SquirrelWindowsOptions } from "electron-builder/out/options/winOptions" export interface Metadata { readonly repository?: string | RepositoryInfo | null dependencies?: { [key: string]: string } } export interface AppMetadata extends Metadata { readonly version?: string readonly name: string readonly productName?: string | null readonly description?: string readonly main?: string | null readonly author?: AuthorMetadata readonly homepage?: string | null readonly license?: string | null } export interface DevMetadata extends Metadata { readonly build: BuildMetadata readonly homepage?: string | null readonly license?: string | null readonly directories?: MetadataDirectories | null } export interface RepositoryInfo { readonly url: string } export interface AuthorMetadata { readonly name: string readonly email?: string } export type CompressionLevel = "store" | "normal" | "maximum" export interface BuildMetadata { readonly appId?: string | null readonly copyright?: string | null readonly asar?: AsarOptions | boolean | null readonly iconUrl?: string | null readonly productName?: string | null /** A [glob patterns](https://www.npmjs.com/package/glob#glob-primer) relative to the [app directory](#MetadataDirectories-app), which specifies which files to include when copying files to create the package. See [File Patterns](#multiple-glob-patterns). */ readonly files?: Array | string | null /** A [glob patterns](https://www.npmjs.com/package/glob#glob-primer) relative to the project directory, when specified, copy the file or directory with matching names directly into the app's resources directory (`Contents/Resources` for MacOS, `resources` for Linux/Windows). Glob rules the same as for [files](#multiple-glob-patterns). */ readonly extraResources?: Array | string | null /** The same as [extraResources](#BuildMetadata-extraResources) but copy into the app's content directory (`Contents` for MacOS, root directory for Linux/Windows). */ readonly extraFiles?: Array | string | null readonly fileAssociations?: Array | FileAssociation readonly protocols?: Array | Protocol readonly mac?: MacOptions | null readonly dmg?: DmgOptions | null readonly osx?: MacOptions | null readonly mas?: MasBuildOptions | null /** See [.build.win](#WinBuildOptions). */ readonly win?: WinBuildOptions | null /** See [.build.nsis](#NsisOptions). */ readonly nsis?: NsisOptions | null /** See [.build.squirrelWindows](#SquirrelWindowsOptions). */ readonly squirrelWindows?: SquirrelWindowsOptions | null readonly linux?: LinuxBuildOptions | null readonly deb?: LinuxBuildOptions | null readonly compression?: CompressionLevel | null readonly afterPack?: (context: AfterPackContext) => Promise | null readonly npmRebuild?: boolean readonly nodeGypRebuild?: boolean /** The path to custom Electron build (e.g. `~/electron/out/R`). Only macOS supported, file issue if need for Linux or Windows. */ readonly electronDist?: string readonly icon?: string | null readonly "app-bundle-id"?: string | null readonly dereference?: boolean readonly publish?: string | Array | null | PublishConfiguration } export interface AfterPackContext { readonly appOutDir: string readonly options: any readonly packager: PlatformPackager } export interface LinuxBuildOptions extends PlatformSpecificBuildOptions { readonly category?: string | null readonly packageCategory?: string | null readonly description?: string | null readonly target?: Array | null readonly synopsis?: string | null readonly maintainer?: string | null readonly vendor?: string | null readonly fpm?: Array | null /** The [Desktop file](https://developer.gnome.org/integration-guide/stable/desktop-files.html.en) entries. */ readonly desktop?: { [key: string]: string } | null readonly afterInstall?: string | null readonly afterRemove?: string | null readonly compression?: string | null readonly depends?: string[] | null } export interface FileAssociation { readonly ext: string | Array readonly name: string readonly description?: string readonly icon?: string readonly role?: string } export interface Protocol { readonly name: string readonly role?: string readonly schemes: Array } export interface MetadataDirectories { readonly buildResources?: string | null readonly output?: string | null readonly app?: string | null } export interface PlatformSpecificBuildOptions { readonly files?: Array | null readonly extraFiles?: Array | null readonly extraResources?: Array | null readonly asar?: AsarOptions | boolean readonly target?: Array | null readonly icon?: string | null readonly fileAssociations?: Array | FileAssociation readonly publish?: string | Array | null } export class Platform { name: string buildConfigurationKey: string nodeName: string static MAC: Platform static LINUX: Platform static WINDOWS: Platform static OSX: Platform constructor(name: string, buildConfigurationKey: string, nodeName: string) toString(): string toJSON(): string createTarget(type?: string | Array | null, ...archs: Array): Map>> static current(): Platform static fromString(name: string): Platform } export enum Arch { ia32 = 0, x64 = 1, armv7l = 2, } export function archFromString(name: string): Arch } declare module 'electron-builder/out/options/macOptions' { import { PlatformSpecificBuildOptions } from "electron-builder/out/metadata" export interface MacOptions extends PlatformSpecificBuildOptions { readonly category?: string | null readonly target?: Array | null readonly identity?: string | null readonly icon?: string | null readonly entitlements?: string | null readonly entitlementsInherit?: string | null readonly bundleVersion?: string | null readonly helperBundleId?: string | null } export interface DmgOptions { readonly icon?: string | null readonly background?: string | null } export interface MasBuildOptions extends MacOptions { readonly entitlements?: string | null readonly entitlementsInherit?: string | null } } declare module 'electron-builder/out/options/publishOptions' { export type PublishProvider = "github" | "bintray" export interface PublishConfiguration { provider: PublishProvider } export interface GithubPublishConfiguration extends PublishConfiguration { repo: string version: string owner: string vPrefixedTagName?: boolean } } declare module 'electron-builder/out/options/winOptions' { import { PlatformSpecificBuildOptions } from "electron-builder/out/metadata" export interface WinBuildOptions extends PlatformSpecificBuildOptions { readonly target?: Array | null readonly signingHashAlgorithms?: Array | null readonly icon?: string | null readonly legalTrademarks?: string | null readonly certificateFile?: string readonly certificatePassword?: string readonly certificateSubjectName?: string readonly rfc3161TimeStampServer?: string } export interface NsisOptions { readonly oneClick?: boolean readonly perMachine?: boolean readonly allowElevation?: boolean readonly runAfterFinish?: boolean readonly guid?: string | null readonly installerHeader?: string | null readonly installerHeaderIcon?: string | null readonly include?: string | null readonly script?: string | null readonly language?: string | null readonly warningsAsErrors?: boolean } export interface SquirrelWindowsOptions extends WinBuildOptions { readonly iconUrl?: string | null readonly loadingGif?: string | null readonly msi?: boolean readonly remoteReleases?: string | boolean | null readonly remoteToken?: string | null readonly useAppIdAsId?: boolean } } declare module 'electron-builder/out/packager' { /// import { EventEmitter } from "events" import { AppMetadata, DevMetadata, Platform } from "electron-builder/out/metadata" import { BuildInfo, ArtifactCreated, Target } from "electron-builder/out/platformPackager" import { AppInfo } from "electron-builder/out/appInfo" import { TmpDir } from "electron-builder/out/util/tmp" import { BuildOptions } from "electron-builder/out/builder" export class Packager implements BuildInfo { options: BuildOptions readonly projectDir: string appDir: string metadata: AppMetadata devMetadata: DevMetadata isTwoPackageJsonProjectLayoutUsed: boolean electronVersion: string readonly eventEmitter: EventEmitter appInfo: AppInfo readonly tempDirManager: TmpDir constructor(options: BuildOptions) artifactCreated(handler: (event: ArtifactCreated) => void): Packager readonly devPackageFile: string build(): Promise>> } export function normalizePlatforms(rawPlatforms: Array | string | Platform | n): Array } declare module 'electron-builder/out/packager/dirPackager' { import { PlatformPackager } from "electron-builder/out/platformPackager" export function pack(packager: PlatformPackager, out: string, platform: string, arch: string, electronVersion: string, initializeApp: () => Promise): Promise } declare module 'electron-builder/out/packager/mac' { import { PlatformPackager } from "electron-builder/out/platformPackager" export function createApp(packager: PlatformPackager, appOutDir: string, initializeApp: () => Promise): Promise } declare module 'electron-builder/out/platformPackager' { /// import { AppMetadata, DevMetadata, Platform, PlatformSpecificBuildOptions, Arch, FileAssociation } from "electron-builder/out/metadata" import EventEmitter = NodeJS.EventEmitter import { Packager } from "electron-builder/out/packager" import { AppInfo } from "electron-builder/out/appInfo" import { TmpDir } from "electron-builder/out/util/tmp" import { BuildOptions } from "electron-builder/out/builder" export interface PackagerOptions { targets?: Map> projectDir?: string | null cscLink?: string | null cscKeyPassword?: string | null cscInstallerLink?: string | null cscInstallerKeyPassword?: string | null platformPackagerFactory?: ((packager: Packager, platform: Platform, cleanupTasks: Array<() => Promise>) => PlatformPackager) | null /** * The same as [development package.json](https://github.com/electron-userland/electron-builder/wiki/Options#development-packagejson). * * Development `package.json` will be still read, but options specified in this object will override. */ readonly devMetadata?: DevMetadata /** * The same as [application package.json](https://github.com/electron-userland/electron-builder/wiki/Options#AppMetadata). * * Application `package.json` will be still read, but options specified in this object will override. */ readonly appMetadata?: AppMetadata readonly effectiveOptionComputed?: (options: any) => boolean readonly extraMetadata?: any } export interface BuildInfo { options: BuildOptions devMetadata: DevMetadata projectDir: string appDir: string electronVersion: string eventEmitter: EventEmitter isTwoPackageJsonProjectLayoutUsed: boolean appInfo: AppInfo readonly tempDirManager: TmpDir } export class Target { name: string constructor(name: string) finishBuild(): Promise } export abstract class TargetEx extends Target { abstract build(appOutDir: string, arch: Arch): Promise } export abstract class PlatformPackager { info: BuildInfo readonly options: PackagerOptions readonly projectDir: string readonly buildResourcesDir: string readonly devMetadata: DevMetadata readonly platformSpecificBuildOptions: DC readonly resourceList: Promise> readonly abstract platform: Platform readonly appInfo: AppInfo constructor(info: BuildInfo) protected prepareAppInfo(appInfo: AppInfo): AppInfo normalizePlatformSpecificBuildOptions(options: DC | n): DC abstract createTargets(targets: Array, mapper: (name: string, factory: (outDir: string) => Target) => void, cleanupTasks: Array<() => Promise>): void protected getCscPassword(): string readonly relativeBuildResourcesDirname: string protected computeAppOutDir(outDir: string, arch: Arch): string dispatchArtifactCreated(file: string, artifactName?: string): void abstract pack(outDir: string, arch: Arch, targets: Array, postAsyncTasks: Array>): Promise protected doPack(outDir: string, appOutDir: string, platformName: string, arch: Arch, platformSpecificBuildOptions: DC): Promise protected postInitApp(executableFile: string): Promise getIconPath(): Promise protected archiveApp(format: string, appOutDir: string, outFile: string): Promise generateName(ext: string | null, arch: Arch, deployment: boolean, classifier?: string | null): string generateName2(ext: string | null, classifier: string | n, deployment: boolean): string getDefaultIcon(ext: string): Promise getTempFile(suffix: string): Promise getFileAssociations(): Array getResource(custom: string | n, name: string): Promise } export function getArchSuffix(arch: Arch): string export interface ArtifactCreated { readonly packager: PlatformPackager readonly file: string readonly artifactName?: string readonly platform: Platform } export function smarten(s: string): string export function normalizeExt(ext: string): string } declare module 'electron-builder/out/publish/bintray' { export interface Version { readonly name: string readonly package: string } export interface File { name: string path: string sha1: string sha256: string } export interface BintrayOptions { readonly user: string readonly package: string readonly repo?: string } export class BintrayClient { user: string packageName: string readonly auth: string | null readonly repo: string constructor(user: string, packageName: string, repo?: string, apiKey?: string | null) getVersion(version: string): Promise getVersionFiles(version: string): Promise> createVersion(version: string): Promise deleteVersion(version: string): Promise } } declare module 'electron-builder/out/publish/BintrayPublisher' { import { Publisher, PublishOptions } from "electron-builder/out/publish/publisher" import { BintrayOptions } from "electron-builder/out/publish/bintray" export class BintrayPublisher implements Publisher { constructor(info: BintrayOptions, version: string, options: PublishOptions) upload(file: string, artifactName?: string): Promise deleteRelease(): Promise } } declare module 'electron-builder/out/publish/gitHubPublisher' { import { PublishOptions, Publisher } from "electron-builder/out/publish/publisher" import { GithubPublishConfiguration } from "electron-builder/out/options/publishOptions" export interface Release { id: number tag_name: string draft: boolean upload_url: string } export class GitHubPublisher implements Publisher { readonly releasePromise: Promise constructor(owner: string, repo: string, version: string, options: PublishOptions, isPublishOptionGuessed?: boolean, config?: GithubPublishConfiguration | null) upload(file: string, artifactName?: string): Promise getRelease(): Promise deleteRelease(): Promise } } declare module 'electron-builder/out/publish/publisher' { export type PublishPolicy = "onTag" | "onTagOrDraft" | "always" | "never" export interface PublishOptions { publish?: PublishPolicy | null githubToken?: string | null bintrayToken?: string | null draft?: boolean prerelease?: boolean } export interface Publisher { upload(file: string, artifactName?: string): Promise } } declare module 'electron-builder/out/publish/restApiRequest' { /// import { RequestOptions } from "https" import { IncomingMessage, ClientRequest } from "http" import { Promise as BluebirdPromise } from "bluebird" export function githubRequest(path: string, token: string | null, data?: { [name: string]: any } | null, method?: string): BluebirdPromise export function bintrayRequest(path: string, auth: string | null, data?: { [name: string]: any } | null, method?: string): BluebirdPromise export function doApiRequest(options: RequestOptions, token: string | null, requestProcessor: (request: ClientRequest, reject: (error: Error) => void) => void): BluebirdPromise export class HttpError extends Error { response: IncomingMessage description: any constructor(response: IncomingMessage, description?: any) } } declare module 'electron-builder/out/publish/uploader' { /// import { Stats } from "fs-extra-p" import { ClientRequest } from "http" export function uploadFile(file: string, fileStat: Stats, fileName: string, request: ClientRequest, reject: (error: Error) => void): void } declare module 'electron-builder/out/repositoryInfo' { import { Info } from "hosted-git-info" import { AppMetadata, Metadata } from "electron-builder/out/metadata" export interface RepositorySlug { user: string project: string } export function getRepositoryInfo(metadata?: AppMetadata, devMetadata?: Metadata): Promise } declare module 'electron-builder/out/targets/appImage' { import { PlatformPackager, TargetEx } from "electron-builder/out/platformPackager" import { LinuxBuildOptions, Arch } from "electron-builder/out/metadata" import { LinuxTargetHelper } from "electron-builder/out/targets/LinuxTargetHelper" export default class AppImageTarget extends TargetEx { constructor(packager: PlatformPackager, helper: LinuxTargetHelper, outDir: string) build(appOutDir: string, arch: Arch): Promise } } declare module 'electron-builder/out/targets/archive' { import { CompressionLevel } from "electron-builder/out/metadata" export function archiveApp(compression: CompressionLevel | n, format: string, outFile: string, dirToArchive: string, withoutDir?: boolean): Promise } declare module 'electron-builder/out/targets/dmg' { import { Target, PlatformPackager } from "electron-builder/out/platformPackager" import { MacOptions } from "electron-builder/out/options/macOptions" export class DmgTarget extends Target { constructor(packager: PlatformPackager) build(appOutDir: string): Promise computeDmgOptions(appOutDir: string): Promise } } declare module 'electron-builder/out/targets/fpm' { import { LinuxBuildOptions, Arch } from "electron-builder/out/metadata" import { PlatformPackager, TargetEx } from "electron-builder/out/platformPackager" import { LinuxTargetHelper } from "electron-builder/out/targets/LinuxTargetHelper" export default class FpmTarget extends TargetEx { constructor(name: string, packager: PlatformPackager, helper: LinuxTargetHelper, outDir: string) build(appOutDir: string, arch: Arch): Promise } } declare module 'electron-builder/out/targets/LinuxTargetHelper' { import { PlatformPackager } from "electron-builder/out/platformPackager" import { LinuxBuildOptions } from "electron-builder/out/metadata" export const installPrefix: string export class LinuxTargetHelper { readonly icons: Promise>> maxIconPath: string | null constructor(packager: PlatformPackager) computeDesktopEntry(platformSpecificBuildOptions: LinuxBuildOptions, exec?: string, extra?: { [key: string]: string }): Promise } } declare module 'electron-builder/out/targets/nsis' { import { WinPackager } from "electron-builder/out/winPackager" import { Arch } from "electron-builder/out/metadata" import { Target } from "electron-builder/out/platformPackager" export default class NsisTarget extends Target { constructor(packager: WinPackager, outDir: string) build(arch: Arch, appOutDir: string): Promise finishBuild(): Promise } } declare module 'electron-builder/out/targets/squirrelPack' { import { WinPackager } from "electron-builder/out/winPackager" export function convertVersion(version: string): string export interface SquirrelOptions { vendorPath: string remoteReleases?: string remoteToken?: string loadingGif?: string productName?: string appId?: string name: string packageCompressionLevel?: number version: string msi?: any owners?: string description?: string iconUrl?: string authors?: string extraMetadataSpecs?: string copyright?: string } export function buildInstaller(options: SquirrelOptions, outputDirectory: string, setupExe: string, packager: WinPackager, appOutDir: string): Promise } declare module 'electron-builder/out/targets/squirrelWindows' { import { WinPackager } from "electron-builder/out/winPackager" import { Target } from "electron-builder/out/platformPackager" import { Arch } from "electron-builder/out/metadata" import { SquirrelOptions } from "electron-builder/out/targets/squirrelPack" export default class SquirrelWindowsTarget extends Target { constructor(packager: WinPackager) build(arch: Arch, appOutDir: string): Promise computeEffectiveDistOptions(): Promise } } declare module 'electron-builder/out/targets/targetFactory' { import { PlatformPackager, Target } from "electron-builder/out/platformPackager" export const commonTargets: string[] export const DEFAULT_TARGET: string export const DIR_TARGET: string export function createTargets(nameToTarget: Map, rawList: Array | n, outDir: string, packager: PlatformPackager, cleanupTasks: Array<() => Promise>): Array export function createCommonTarget(target: string): Target } declare module 'electron-builder/out/util/awaiter' { var _default: (thisArg: any, _arguments: any, ignored: any, generator: Function) => any export = _default } declare module 'electron-builder/out/util/binDownload' { export function getBinFromBintray(name: string, version: string, sha2: string): Promise export function getBin(name: string, dirName: string, url: string, sha2: string): Promise } declare module 'electron-builder/out/util/deepAssign' { export function deepAssign(target: any, ...objects: Array): any } declare module 'electron-builder/out/util/filter' { /// import { Stats } from "fs-extra-p" import { Minimatch } from "minimatch" export function copyFiltered(src: string, destination: string, filter: Filter, dereference: boolean): Promise export function hasMagic(pattern: Minimatch): boolean export type Filter = (file: string, stat: Stats) => boolean export function createFilter(src: string, patterns: Array, ignoreFiles?: Set, rawFilter?: (file: string) => boolean, excludePatterns?: Array | null): Filter export function devDependencies(dir: string): Promise> } declare module 'electron-builder/out/util/httpRequest' { /// import { ClientRequest } from "http" import { Promise as BluebirdPromise } from "bluebird" export interface DownloadOptions { skipDirCreation?: boolean sha2?: string } export function download(url: string, destination: string, options?: DownloadOptions | null): BluebirdPromise export function addTimeOutHandler(request: ClientRequest, callback: (error: Error) => void): void } declare module 'electron-builder/out/util/log' { import { Promise as BluebirdPromise } from "bluebird" export function warn(message: string): void export function log(message: string): void export function subTask(title: string, promise: BluebirdPromise | Promise): BluebirdPromise export function task(title: string, promise: BluebirdPromise | Promise): BluebirdPromise } declare module 'electron-builder/out/util/promise' { /// import { Promise as BluebirdPromise } from "bluebird" export function printErrorAndExit(error: Error): void export function executeFinally(promise: Promise, task: (errorOccurred: boolean) => Promise): Promise export class NestedError extends Error { constructor(errors: Array, message?: string) } export function all(promises: Array>): BluebirdPromise } declare module 'electron-builder/out/util/readPackageJson' { export function readPackageJson(file: string): Promise } declare module 'electron-builder/out/util/tmp' { import { Promise as BluebirdPromise } from "bluebird" export class TmpDir { getTempFile(suffix: string): BluebirdPromise cleanup(): Promise } } declare module 'electron-builder/out/util/util' { /// /// import { ChildProcess, SpawnOptions } from "child_process" import { Promise as BluebirdPromise } from "bluebird" import { Stats } from "fs-extra-p" import debugFactory = require("debug") export const debug: debugFactory.IDebugger export const debug7z: debugFactory.IDebugger export function installDependencies(appDir: string, electronVersion: string, arch?: string, command?: string): BluebirdPromise export function getGypEnv(electronVersion: string, arch: string): any export function spawnNpmProduction(command: string, appDir: string, env?: any): BluebirdPromise export interface BaseExecOptions { cwd?: string env?: any stdio?: any } export interface ExecOptions extends BaseExecOptions { customFds?: any encoding?: string timeout?: number maxBuffer?: number killSignal?: string } export function removePassword(input: string): string export function exec(file: string, args?: Array | null, options?: ExecOptions): BluebirdPromise export function doSpawn(command: string, args: Array, options?: SpawnOptions, pipeInput?: Boolean): ChildProcess export function spawn(command: string, args?: Array | null, options?: SpawnOptions): BluebirdPromise export function handleProcess(event: string, childProcess: ChildProcess, command: string, resolve: ((value?: any) => void) | null, reject: (reason?: any) => void): void export function getElectronVersion(packageData: any, packageJsonPath: string): Promise export function statOrNull(file: string): Promise export function computeDefaultAppDirectory(projectDir: string, userAppDir: string | null | undefined): Promise export function use(value: T | null, task: (it: T) => R): R | null export function debug7zArgs(command: "a" | "x"): Array export function getTempName(prefix?: string | n): string export function isEmptyOrSpaces(s: string | n): boolean export function unlinkIfExists(file: string): BluebirdPromise export function asArray(v: n | T | Array): Array export function isCi(): boolean } declare module 'electron-builder/out/windowsCodeSign' { export function getSignVendorPath(): Promise export interface SignOptions { readonly path: string readonly cert?: string | null readonly subjectName?: string | null readonly name?: string | null readonly password?: string | null readonly site?: string | null readonly hash?: Array | null readonly tr?: string | null } export function sign(options: SignOptions): Promise } declare module 'electron-builder/out/winPackager' { import { PlatformPackager, BuildInfo, Target } from "electron-builder/out/platformPackager" import { Platform, Arch } from "electron-builder/out/metadata" import { SignOptions } from "electron-builder/out/windowsCodeSign" import { WinBuildOptions } from "electron-builder/out/options/winOptions" export interface FileCodeSigningInfo { readonly file?: string | null readonly password?: string | null readonly subjectName?: string | null } export class WinPackager extends PlatformPackager { readonly cscInfo: Promise | null constructor(info: BuildInfo) createTargets(targets: Array, mapper: (name: string, factory: (outDir: string) => Target) => void, cleanupTasks: Array<() => Promise>): void readonly platform: Platform getIconPath(): Promise pack(outDir: string, arch: Arch, targets: Array, postAsyncTasks: Array>): Promise protected computeAppOutDir(outDir: string, arch: Arch): string sign(file: string): Promise protected doSign(options: SignOptions): Promise signAndEditResources(file: string): Promise protected postInitApp(appOutDir: string): Promise protected packageInDistributableFormat(outDir: string, appOutDir: string, arch: Arch, targets: Array, promises: Array>): void } }