import type { AnyAgentTool } from "./tools/common.js"; import { isPlainObject } from "../utils.js"; type HookContext = { agentId?: string; sessionKey?: string; }; type HookOutcome = { blocked: true; reason: string; } | { blocked: false; params: unknown; }; export declare function runBeforeToolCallHook(args: { toolName: string; params: unknown; toolCallId?: string; ctx?: HookContext; }): Promise; export declare function wrapToolWithBeforeToolCallHook(tool: AnyAgentTool, ctx?: HookContext): AnyAgentTool; export declare const __testing: { runBeforeToolCallHook: typeof runBeforeToolCallHook; isPlainObject: typeof isPlainObject; }; export {};