1 | import { ChildProcess, ExecFileOptions, SpawnOptions } from "child_process";
|
2 | import _debug from "debug";
|
3 | export { safeStringifyJson } from "builder-util-runtime";
|
4 | export { TmpDir } from "temp-file";
|
5 | export * from "./log";
|
6 | export { Arch, getArchCliNames, toLinuxArchString, getArchSuffix, ArchType, archFromString, defaultArchFromString } from "./arch";
|
7 | export { AsyncTaskManager } from "./asyncTaskManager";
|
8 | export { DebugLogger } from "./DebugLogger";
|
9 | export { httpExecutor, NodeHttpExecutor } from "./nodeHttpExecutor";
|
10 | export * from "./promise";
|
11 | export * from "./arch";
|
12 | export * from "./fs";
|
13 | export { asArray } from "builder-util-runtime";
|
14 | export { deepAssign } from "./deepAssign";
|
15 | export { getPath7za, getPath7x } from "./7za";
|
16 | export declare const debug7z: _debug.Debugger;
|
17 | export declare function serializeToYaml(object: any, skipInvalid?: boolean, noRefs?: boolean): string;
|
18 | export declare function removePassword(input: string): string;
|
19 | export declare function exec(file: string, args?: Array<string> | null, options?: ExecFileOptions, isLogOutIfDebug?: boolean): Promise<string>;
|
20 | export interface ExtraSpawnOptions {
|
21 | isPipeInput?: boolean;
|
22 | }
|
23 | export declare function doSpawn(command: string, args: Array<string>, options?: SpawnOptions, extraOptions?: ExtraSpawnOptions): ChildProcess;
|
24 | export declare function spawnAndWrite(command: string, args: Array<string>, data: string, options?: SpawnOptions): Promise<any>;
|
25 | export declare function spawn(command: string, args?: Array<string> | null, options?: SpawnOptions, extraOptions?: ExtraSpawnOptions): Promise<any>;
|
26 | export declare class ExecError extends Error {
|
27 | readonly exitCode: number;
|
28 | alreadyLogged: boolean;
|
29 | constructor(command: string, exitCode: number, out: string, errorOut: string, code?: string);
|
30 | }
|
31 | type Nullish = null | undefined;
|
32 | export declare function use<T, R>(value: T | Nullish, task: (value: T) => R): R | null;
|
33 | export declare function isEmptyOrSpaces(s: string | null | undefined): s is "" | null | undefined;
|
34 | export declare function isTokenCharValid(token: string): boolean;
|
35 | export declare function addValue<K, T>(map: Map<K, Array<T>>, key: K, value: T): void;
|
36 | export declare function replaceDefault(inList: Array<string> | null | undefined, defaultList: Array<string>): Array<string>;
|
37 | export declare function getPlatformIconFileName(value: string | null | undefined, isMac: boolean): string | null | undefined;
|
38 | export declare function isPullRequest(): boolean | "" | undefined;
|
39 | export declare function isEnvTrue(value: string | null | undefined): boolean;
|
40 | export declare class InvalidConfigurationError extends Error {
|
41 | constructor(message: string, code?: string);
|
42 | }
|
43 | export declare function executeAppBuilder(args: Array<string>, childProcessConsumer?: (childProcess: ChildProcess) => void, extraOptions?: SpawnOptions, maxRetries?: number): Promise<string>;
|
44 | export declare function retry<T>(task: () => Promise<T>, retryCount: number, interval: number, backoff?: number, attempt?: number, shouldRetry?: (e: any) => boolean): Promise<T>;
|