/** * Tool wrapper - wraps tools with hook callbacks for interception. */ import type { AgentTool, AgentToolContext, AgentToolUpdateCallback } from "@oh-my-pi/pi-agent-core"; import type { Static, TSchema } from "@oh-my-pi/pi-ai"; import type { HookRunner } from "./runner"; /** * Wraps an AgentTool with hook callbacks for interception. * * Features: * - Emits tool_call event before execution (can block) * - Emits tool_result event after execution (can modify result) * - Forwards onUpdate callback to wrapped tool for progress streaming */ export declare class HookToolWrapper implements AgentTool { private tool; private hookRunner; name: string; description: string; parameters: TParameters; label: string; strict: boolean; constructor(tool: AgentTool, hookRunner: HookRunner); execute(toolCallId: string, params: Static, signal?: AbortSignal, onUpdate?: AgentToolUpdateCallback, context?: AgentToolContext): Promise>; }