import type { BuiltInHookDefinition } from "../types.ts"; /** * Minimal interface for the recovery engine dependency. * Avoids circular dependency on the full engine type. */ export interface RecoveryEngineLike { recover(sessionID: string, error: unknown, category?: string): Promise<{ recovered: boolean; message?: string; }>; } /** * Creates the json-error-recovery built-in hook. * * Intercepts tool execution results and detects JSON parse/serialization * errors. Delegates to the recovery engine for chain-based recovery. * Falls back to direct injection when the engine does not fully recover. * * @param engine - Recovery engine dependency * @returns A configured BuiltInHookDefinition */ export declare function createJsonErrorRecoveryHook(engine: RecoveryEngineLike): BuiltInHookDefinition; //# sourceMappingURL=json-error-recovery.d.ts.map