import type { Tool, ToolCall } from "../types"; /** * Finds a tool by name and validates the tool call arguments against its schema. * @param tools Array of tool definitions * @param toolCall The tool call from the LLM * @returns The validated arguments * @throws Error if tool is not found or validation fails */ export declare function validateToolCall(tools: Tool[], toolCall: ToolCall): ToolCall["arguments"]; /** * Validates tool call arguments against the tool's schema (Zod or plain JSON * Schema). Applies LLM-quirk coercions (numeric strings, JSON-string * containers, null/invalid-empty-string-for-optional, null-for-default) before * declaring failure. * * @throws Error with a formatted message when validation cannot be reconciled. */ export declare function validateToolArguments(tool: Tool, toolCall: ToolCall): ToolCall["arguments"];