/** The serialized form of a failed tool call. `nextActions` are tool calls or commands, in * the order worth trying; absent when the failure class is unrecognized (never invented). */ export interface ErrorEnvelope { error: string; hint?: string; nextActions?: string[]; } /** A known failure class and the way out of it. */ export interface RecoveryRule { re: RegExp; hint?: string; nextActions: string[]; } /** * Known failure classes → what to do about them. Every dotted `avcs.*` name here must be a * REGISTERED tool — a hint pointing at a tool that does not exist is worse than prose, * because the agent follows it and fails. A test pins this against the live tool list. */ export declare const RECOVERY: RecoveryRule[]; /** * Normalize a caller-supplied limit against a default (Phase 16 M1.2). A missing, negative, * zero, or non-finite value falls back to the default rather than returning nothing or * everything — an unbounded read is the failure mode this layer exists to prevent. */ export declare function boundedLimit(raw: unknown, fallback: number): number; /** Serialize a successful tool result. Compact unless a human asked for readability. */ export declare function serializeResult(result: unknown, opts?: { verbose?: boolean; }): string; /** Translate a thrown value into the failure envelope the transport sends. */ export declare function errorEnvelope(e: unknown): ErrorEnvelope; //# sourceMappingURL=respond.d.ts.map