import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { FunctionT, FunctionT$Outbound } from "./function.js"; import { ToolTypes } from "./tooltypes.js"; export type Tool = { type?: ToolTypes | undefined; function: FunctionT; }; /** @internal */ export declare const Tool$inboundSchema: z.ZodType; /** @internal */ export type Tool$Outbound = { type?: string | undefined; function: FunctionT$Outbound; }; /** @internal */ export declare const Tool$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Tool$ { /** @deprecated use `Tool$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Tool$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Tool$Outbound` instead. */ type Outbound = Tool$Outbound; } export declare function toolToJSON(tool: Tool): string; export declare function toolFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=tool.d.ts.map