import type { ChildProcess } from "node:child_process";
type ChildProcessTreeHandle = Pick<ChildProcess, "exitCode" | "kill" | "pid" | "signalCode">;
export declare const CHILD_PROCESS_TERMINATE_GRACE_MS = 2000;
export declare function markDetachedChildProcess<T extends ChildProcess>(child: T): T;
export declare function signalChildProcessTree(child: ChildProcessTreeHandle, signal: NodeJS.Signals): void;
export declare function terminateChildProcessTree(child: ChildProcessTreeHandle, options?: {
    signal?: NodeJS.Signals;
    killSignal?: NodeJS.Signals;
    graceMs?: number;
}): void;
export {};
//# sourceMappingURL=child-process-tree.d.ts.map