import { spawn } from 'node:child_process'; export interface ProcessTreeRunOptions { cwd?: string; env?: NodeJS.ProcessEnv; encoding?: BufferEncoding; timeoutMs?: number; killSignal?: NodeJS.Signals; sigkillGraceMs?: number; maxOutputBytes?: number; maxProcessCount?: number; processLimitPollMs?: number; cleanupOnParentExit?: boolean; platform?: NodeJS.Platform; spawnImpl?: typeof spawn; existsImpl?: (path: string) => boolean; } export interface ProcessTreeRunResult { stdout: string; stderr: string; status: number | null; signal: NodeJS.Signals | null; timedOut: boolean; processLimitExceeded: boolean; outputLimitExceeded: boolean; error?: NodeJS.ErrnoException; } export declare function runProcessTreeWithTimeout(command: string, args: string[], options?: ProcessTreeRunOptions): Promise; //# sourceMappingURL=process-tree.d.ts.map