import { InferZodType, ZodTypeAny } from "./zod.js"; export interface ToolDefinition { description?: string; params: TParamsSchema; result: TResultSchema; } export type ToolBox = Record>; export type InferToolParams = T[K] extends ToolDefinition ? InferZodType

: never; export type InferToolResult = T[K] extends ToolDefinition ? InferZodType : never; export type ToolImplementations = { [K in keyof T]: { execute: (params: InferToolParams) => InferToolResult | Promise>; }; }; export declare function createToolBox(definitions: T): T; export declare function executeExternalTool(toolBox: T, toolName: K, params: InferToolParams): Promise>; //# sourceMappingURL=external-tools.d.ts.map