/**
 * Shared child-process lifecycle management.
 *
 * Handles timeout, abort, stream piping, error/close events, and
 * the settle flag that prevents double-resolution. Used by both
 * local bash (createDefaultBashOperations) and sandbox executor.
 */
import type { ChildProcess } from 'child_process';
export interface ProcessLifecycleOptions {
    onData: (data: Buffer) => void;
    signal?: AbortSignal;
    /** Timeout in seconds */
    timeout?: number;
}
/**
 * Manage a spawned child process through its full lifecycle.
 * Returns when the process exits (or is killed by timeout/abort).
 */
export declare function manageChildProcess(child: ChildProcess, { onData, signal, timeout }: ProcessLifecycleOptions): Promise<{
    exitCode: number | null;
}>;
//# sourceMappingURL=lifecycle.d.ts.map