import { ChildProcess, ChildProcessByStdio, ChildProcessWithoutNullStreams, ExecException, ExecFileException, ExecFileOptions, ExecFileOptionsWithBufferEncoding, ExecFileOptionsWithOtherEncoding, ExecFileOptionsWithStringEncoding, ExecFileSyncOptions, ExecFileSyncOptionsWithBufferEncoding, ExecFileSyncOptionsWithStringEncoding, ExecOptions, ExecSyncOptions, ExecSyncOptionsWithBufferEncoding, ExecSyncOptionsWithStringEncoding, ForkOptions, PromiseWithChild, SpawnOptions, SpawnOptionsWithoutStdio, SpawnOptionsWithStdioTuple, SpawnSyncOptions, SpawnSyncOptionsWithBufferEncoding, SpawnSyncOptionsWithStringEncoding, SpawnSyncReturns, StdioNull, StdioPipe } from 'child_process'; import type { ObjectEncodingOptions } from 'fs'; import type { Readable, Writable } from 'stream'; import { WithExternalID } from './spawn-opts.js'; export declare function spawn(command: string, options?: WithExternalID): ChildProcessWithoutNullStreams; export declare function spawn(command: string, options: WithExternalID>): ChildProcessByStdio; export declare function spawn(command: string, options: WithExternalID>): ChildProcessByStdio; export declare function spawn(command: string, options: WithExternalID>): ChildProcessByStdio; export declare function spawn(command: string, options: WithExternalID>): ChildProcessByStdio; export declare function spawn(command: string, options: WithExternalID>): ChildProcessByStdio; export declare function spawn(command: string, options: WithExternalID>): ChildProcessByStdio; export declare function spawn(command: string, options: WithExternalID>): ChildProcessByStdio; export declare function spawn(command: string, options: WithExternalID>): ChildProcessByStdio; export declare function spawn(command: string, options: WithExternalID): ChildProcess; export declare function spawn(command: string, args?: ReadonlyArray, options?: SpawnOptionsWithoutStdio): ChildProcessWithoutNullStreams; export declare function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; export declare function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; export declare function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; export declare function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; export declare function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; export declare function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; export declare function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; export declare function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; export declare function spawn(command: string, args: ReadonlyArray, options: SpawnOptions): ChildProcess; export declare function spawnSync(command: string): SpawnSyncReturns; export declare function spawnSync(command: string, options: WithExternalID): SpawnSyncReturns; export declare function spawnSync(command: string, options: WithExternalID): SpawnSyncReturns; export declare function spawnSync(command: string, options?: WithExternalID): SpawnSyncReturns; export declare function spawnSync(command: string, args: ReadonlyArray): SpawnSyncReturns; export declare function spawnSync(command: string, args: ReadonlyArray, options: WithExternalID): SpawnSyncReturns; export declare function spawnSync(command: string, args: ReadonlyArray, options: WithExternalID): SpawnSyncReturns; export declare function spawnSync(command: string, args?: ReadonlyArray, options?: WithExternalID): SpawnSyncReturns; export type ExecArgs = [ command: string, callback?: (error: ExecException | null, stdout: string, stderr: string) => void ] | [ command: string, options: WithExternalID<{ encoding: 'buffer' | null; } & ExecOptions>, callback?: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void ] | [ command: string, options: WithExternalID<{ encoding: BufferEncoding; } & ExecOptions>, callback?: (error: ExecException | null, stdout: string, stderr: string) => void ] | [ command: string, options: WithExternalID<{ encoding: BufferEncoding; } & ExecOptions>, callback?: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void ] | [ command: string, options: WithExternalID, callback?: (error: ExecException | null, stdout: string, stderr: string) => void ] | [ command: string, options: WithExternalID | undefined | null, callback?: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void ]; export declare function exec(...args: ExecArgs): ChildProcess; export declare namespace exec { function __promisify__(command: string): PromiseWithChild<{ stdout: string; stderr: string; }>; function __promisify__(command: string, options: WithExternalID<{ encoding: 'buffer' | null; } & ExecOptions>): PromiseWithChild<{ stdout: Buffer; stderr: Buffer; }>; function __promisify__(command: string, options: WithExternalID<{ encoding: BufferEncoding; } & ExecOptions>): PromiseWithChild<{ stdout: string; stderr: string; }>; function __promisify__(command: string, options: WithExternalID): PromiseWithChild<{ stdout: string; stderr: string; }>; function __promisify__(command: string, options?: WithExternalID | null): PromiseWithChild<{ stdout: string | Buffer; stderr: string | Buffer; }>; } export declare function execSync(command: string): Buffer; export declare function execSync(command: string, options: WithExternalID): string; export declare function execSync(command: string, options: WithExternalID): Buffer; export declare function execSync(command: string, options?: WithExternalID): string | Buffer; export type ExecFileArgs = [] | [ options: WithExternalID | undefined | null ] | [args?: ReadonlyArray | null] | [ args: ReadonlyArray | undefined | null, options: WithExternalID | undefined | null ] | [ callback: (error: ExecFileException | null, stdout: string, stderr: string) => void ] | [ args: ReadonlyArray | undefined | null, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void ] | [ options: WithExternalID, callback: (error: ExecFileException | null, stdout: Buffer, stderr: Buffer) => void ] | [ args: ReadonlyArray | undefined | null, options: WithExternalID, callback: (error: ExecFileException | null, stdout: Buffer, stderr: Buffer) => void ] | [ options: WithExternalID, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void ] | [ args: ReadonlyArray | undefined | null, options: WithExternalID, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void ] | [ options: WithExternalID, callback: (error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void ] | [ args: ReadonlyArray | undefined | null, options: WithExternalID, callback: (error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void ] | [ options: WithExternalID, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void ] | [ args: ReadonlyArray | undefined | null, options: WithExternalID, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void ] | [ options: WithExternalID | undefined | null, callback: ((error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null ] | [ args: ReadonlyArray | undefined | null, options: WithExternalID | undefined | null, callback: ((error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null ]; export declare function execFile(file: string, ...execFileArgs: ExecFileArgs): ChildProcess; export declare namespace execFile { function __promisify__(file: string): PromiseWithChild<{ stdout: string; stderr: string; }>; function __promisify__(file: string, args: ReadonlyArray | undefined | null): PromiseWithChild<{ stdout: string; stderr: string; }>; function __promisify__(file: string, options: WithExternalID): PromiseWithChild<{ stdout: Buffer; stderr: Buffer; }>; function __promisify__(file: string, args: ReadonlyArray | undefined | null, options: WithExternalID): PromiseWithChild<{ stdout: Buffer; stderr: Buffer; }>; function __promisify__(file: string, options: WithExternalID): PromiseWithChild<{ stdout: string; stderr: string; }>; function __promisify__(file: string, args: ReadonlyArray | undefined | null, options: WithExternalID): PromiseWithChild<{ stdout: string; stderr: string; }>; function __promisify__(file: string, options: WithExternalID): PromiseWithChild<{ stdout: string | Buffer; stderr: string | Buffer; }>; function __promisify__(file: string, args: ReadonlyArray | undefined | null, options: WithExternalID): PromiseWithChild<{ stdout: string | Buffer; stderr: string | Buffer; }>; function __promisify__(file: string, options: WithExternalID): PromiseWithChild<{ stdout: string; stderr: string; }>; function __promisify__(file: string, args: ReadonlyArray | undefined | null, options: WithExternalID): PromiseWithChild<{ stdout: string; stderr: string; }>; function __promisify__(file: string, options: WithExternalID | undefined | null): PromiseWithChild<{ stdout: string | Buffer; stderr: string | Buffer; }>; function __promisify__(file: string, args: ReadonlyArray | undefined | null, options: WithExternalID | undefined | null): PromiseWithChild<{ stdout: string | Buffer; stderr: string | Buffer; }>; } export declare function execFileSync(file: string): Buffer; export declare function execFileSync(file: string, options: WithExternalID): string; export declare function execFileSync(file: string, options: WithExternalID): Buffer; export declare function execFileSync(file: string, options?: WithExternalID): string | Buffer; export declare function execFileSync(file: string, args: ReadonlyArray): Buffer; export declare function execFileSync(file: string, args: ReadonlyArray, options: WithExternalID): string; export declare function execFileSync(file: string, args: ReadonlyArray, options: WithExternalID): Buffer; export declare function execFileSync(file: string, args?: ReadonlyArray, options?: WithExternalID): string | Buffer; export declare function fork(modulePath: string, options?: ForkOptions): ChildProcess; export declare function fork(modulePath: string, args?: ReadonlyArray, options?: WithExternalID): ChildProcess; //# sourceMappingURL=child_process.d.ts.map