/// import { ChildProcess } from "child_process"; export declare class Spawner { cmd: string; args: string[]; cwd: string; env?: Record | undefined; static children: Map; output: string; buffer: string; exitCode: number | undefined; onData: (data: string) => void; onLine: (line: string) => void; onError: (error: Error) => Error; onExit: (code: number) => Error; constructor(cmd: string, args?: string[], cwd?: string, env?: Record | undefined); spawn(raw?: boolean): Promise; static exit(_reason: string): void; }