export declare class ChildCommandCleanupError extends AggregateError { readonly processGroupId: number; readonly completion: Promise; constructor(processGroupId: number, completion: Promise, errors: unknown[]); } export declare function runChildCommand(file: string, args: string[], cwd: string, remaining?: () => number): Promise;