import type { JsonValue } from "./types.js"; export interface InterceptToolOptions { toolName: string; toolArguments: string; result: JsonValue; sessionId: string; apiKey?: string; baseUrl?: string; } /** * Report one real tool call + its result to Red at the tool boundary, and return * the result the agent should use. Module-level so it can be dropped into any tool * wrapper (including MCP-client boundaries) without threading a client through. * * No-op returning `result` unchanged when LAKERA_RED_TOOL_INTERCEPT is off. When on, the * response's `toolResult` is returned — the same value in observe mode, a replaced * one once poisoning ships (no call-site change). * * Observe-only tracing is best-effort: it must never break the agent's tool call, so * any failure (missing config, HTTP error, network/parse error) is warned and the * original `result` is returned unchanged. */ export declare function interceptTool(opts: InterceptToolOptions): Promise; //# sourceMappingURL=interceptTool.d.ts.map