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 { log, debug } from "./log";
|
6 | export { Arch, getArchCliNames, toLinuxArchString, getArchSuffix, ArchType, archFromString } from "./arch";
|
7 | export { AsyncTaskManager } from "./asyncTaskManager";
|
8 | export { DebugLogger } from "./DebugLogger";
|
9 | export { copyFile } from "./fs";
|
10 | export { asArray } from "builder-util-runtime";
|
11 | export { deepAssign } from "./deepAssign";
|
12 | export declare const debug7z: _debug.Debugger;
|
13 | export declare function serializeToYaml(object: any, skipInvalid?: boolean, noRefs?: boolean): string;
|
14 | export declare function removePassword(input: string): string;
|
15 | export declare function exec(file: string, args?: Array<string> | null, options?: ExecFileOptions, isLogOutIfDebug?: boolean): Promise<string>;
|
16 | export interface ExtraSpawnOptions {
|
17 | isPipeInput?: boolean;
|
18 | }
|
19 | export declare function doSpawn(command: string, args: Array<string>, options?: SpawnOptions, extraOptions?: ExtraSpawnOptions): ChildProcess;
|
20 | export declare function spawnAndWrite(command: string, args: Array<string>, data: string, options?: SpawnOptions): Promise<any>;
|
21 | export declare function spawn(command: string, args?: Array<string> | null, options?: SpawnOptions, extraOptions?: ExtraSpawnOptions): Promise<any>;
|
22 | export declare class ExecError extends Error {
|
23 | readonly exitCode: number;
|
24 | alreadyLogged: boolean;
|
25 | constructor(command: string, exitCode: number, out: string, errorOut: string, code?: string);
|
26 | }
|
27 | export declare function use<T, R>(value: T | null, task: (it: T) => R): R | null;
|
28 | export declare function isEmptyOrSpaces(s: string | null | undefined): s is "" | null | undefined;
|
29 | export declare function isTokenCharValid(token: string): boolean;
|
30 | export declare function addValue<K, T>(map: Map<K, Array<T>>, key: K, value: T): void;
|
31 | export declare function replaceDefault(inList: Array<string> | null | undefined, defaultList: Array<string>): Array<string>;
|
32 | export declare function getPlatformIconFileName(value: string | null | undefined, isMac: boolean): string | null | undefined;
|
33 | export declare function isPullRequest(): boolean | "" | undefined;
|
34 | export declare function isEnvTrue(value: string | null | undefined): boolean;
|
35 | export declare class InvalidConfigurationError extends Error {
|
36 | constructor(message: string, code?: string);
|
37 | }
|
38 | export declare function executeAppBuilder(args: Array<string>, childProcessConsumer?: (childProcess: ChildProcess) => void, extraOptions?: SpawnOptions, maxRetries?: number): Promise<string>;
|