/** * Sentori Runtime ToolCallInterceptor * Wraps a tool object with a Proxy to emit events before/after each tool call. */ import type { RuntimeEvent } from './event-schema'; export declare class ToolCallInterceptor { private emitter; constructor(); /** * Wrap a tools object so every property function is intercepted. * Returns a Proxy of the same type T. */ wrap unknown>>(tools: T): T; on(event: 'tool_call_start' | 'tool_call_end' | 'tool_call_error', handler: (e: RuntimeEvent) => void): void; off(event: string, handler: (...args: unknown[]) => void): void; } //# sourceMappingURL=interceptor.d.ts.map