/** Spawn outcome as plain data. The promise always resolves; the service * layer owns failure typing and message shaping (redaction, truncation). */ export type OpCliResult = { readonly ok: true; readonly stdout: string; } | { readonly ok: false; /** True when the child was killed by the spawn timeout. */ readonly timedOut: boolean; readonly message: string; }; export interface OpCliInvocation { readonly args: readonly string[]; readonly env: Readonly>; /** Hard deadline for the child; on expiry it is killed and the result * carries `timedOut: true`. */ readonly timeoutMs: number; /** Fiber interruption reaches the child through this signal. */ readonly signal: AbortSignal; } /** Run `op` once. stdout carries the successful payload; stderr carries the * CLI's human-readable diagnostics, so a non-zero exit reports stderr when * present (falling back to the spawn error, e.g. `spawn op ENOENT`). */ export declare const opCliExec: ({ args, env, timeoutMs, signal, }: OpCliInvocation) => Promise;