import type { RunLimits } from "../../runtime/ipc.js"; /** Substituted argv must fit the OS argument-size limit; the raw failure is * an opaque E2BIG from spawn. Conservative cap, checked before spawning. */ export declare const MAX_COMMAND_BYTES: number; /** * Run a command target: spawn (not fork — no IPC channel) in the workdir, * with the statelog handoff in the env. Every compiled Agency process the * command starts — directly or through descendants — reads * AGENCY_CONFIG_OVERRIDES at startup and writes its statelog to the * harness's expected path, and AGENCY_TRACE_ID keeps the whole tree on one * trace id (including descendants started without IPC). Never throws; * failures settle as { ok: false }. */ export declare function runCommandInSpawn(args: { argv: string[]; cwd: string; statelogPath: string; traceId: string; pipeOutput: boolean; limits: RunLimits; maxCostUsd: number; }): Promise<{ ok: true; } | { ok: false; errorMessage: string; }>;