/** * Tool call hooks — wired into OpenClaw's before_tool_call / after_tool_call events. */ import type { ContextGraph } from "@clawtrail/context-graph"; import type { MapperRegistry } from "../mappers/MapperRegistry.js"; import type { OpenClawSessionContext } from "./lifecycle.js"; export interface ToolCallEvent { toolName: string; params: Record; result?: Record; error?: Error; durationMs?: number; } export declare function createToolCallHandlers(cg: ContextGraph, mappers: MapperRegistry): { onBeforeToolCall(event: ToolCallEvent, ctx: OpenClawSessionContext): Promise; onAfterToolCall(event: ToolCallEvent, ctx: OpenClawSessionContext): Promise; }; //# sourceMappingURL=toolCall.d.ts.map