import { spawn } from 'node:child_process';
export type ExecResult = {
    stdout: string;
    stderr: string;
};
export type ExecOptions = {
    timeoutMs?: number;
    maxBuffer?: number;
    cwd?: string;
    env?: NodeJS.ProcessEnv;
};
/** Run a subprocess and capture stdout/stderr (OpenClaw-aligned). */
export declare function runExec(file: string, args: string[], opts?: ExecOptions): Promise<ExecResult>;
export declare function spawnDetached(file: string, args: string[], opts: {
    stdio?: 'ignore' | 'pipe';
}): ReturnType<typeof spawn>;
