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 edit-error-recovery built-in hook. * * Intercepts tool execution results for edit/write/hashline_edit and * delegates detected failures 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 createEditErrorRecoveryHook(engine: RecoveryEngineLike): BuiltInHookDefinition; //# sourceMappingURL=edit-error-recovery.d.ts.map