import type { AnyCommandDef, CLIResult, CommandFlags } from "./command-registry.js"; /** * Guarded-mode ceremony (opt-in via ARCS_GUARDED=1): mutating commands demand * an explicit --token from the orchestrator before writes proceed. By default * (no ARCS_GUARDED) writes go through without ceremony. * * Returns null when the write may proceed; otherwise a failure result the * handler must propagate. */ export declare function requireWriteGate(token: string | undefined): CLIResult | null; /** * Single invocation choke point for registry commands. Mutating commands * (declared via `mutation: true`) are gated through requireWriteGate before * their handler runs, so guarded mode is enforced uniformly regardless of * which dispatcher (index router, DAG shell, test runner) drives the command. * * All entry points MUST route handler calls through this function. */ export declare function invokeCommand(cmd: AnyCommandDef, params: Record, flags: CommandFlags): Promise; //# sourceMappingURL=write-gate.d.ts.map