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 session-error-recovery built-in hook. * * Intercepts `session.error` events and delegates to the recovery engine * for chain-based recovery. If recovery fails with a message, falls back * to direct injection as a reminder. * * @param engine - Recovery engine dependency (must expose `recover()`) * @returns A configured BuiltInHookDefinition */ export declare function createSessionErrorRecoveryHook(engine: RecoveryEngineLike): BuiltInHookDefinition; //# sourceMappingURL=session-error-recovery.d.ts.map