import type { ProgramIO } from '../cli-helpers.js'; import { type AstGateContext } from '../../services/rd/ast-gate.js'; import { type ImplOutput, type StrategyOutput } from '../../services/rd/types.js'; export declare class CommandRefusal extends Error { readonly code: string; readonly remedy: string; constructor(code: string, remedy: string, message: string); } export declare function emitOk(io: ProgramIO, json: boolean, payload: Record, human: string[]): void; /** Run an action body, turning a named refusal into the CLI's error surface. */ export declare function guarded(io: ProgramIO, json: boolean, command: string, body: () => Promise): Promise; /** Resolve `--out` and enforce the one-axis layout. */ export declare function requireSessionAxis(project: string, sessionId: string, out: string): string; export declare function readStrategy(path: string): Promise; export declare function readImpl(path: string): Promise; export declare function parseAstContext(raw: string | undefined): AstGateContext;