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 empty-response-detector built-in hook. * * Intercepts all tool execution results and detects outputs that are * empty or contain only whitespace (fewer than 5 meaningful characters). * 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 createEmptyResponseDetectorHook(engine: RecoveryEngineLike): BuiltInHookDefinition; //# sourceMappingURL=empty-response-detector.d.ts.map