import { type z } from "zod"; interface ToolResult { [key: string]: unknown; content: Array<{ type: "text"; text: string; }>; isError?: boolean; } /** * Wrap an MCP tool handler with schema validation and consistent error formatting. * Keeps tool registration terse while making user-facing failures less cryptic. */ export declare function toolHandler(schema: T, handler: (params: z.infer) => Promise): (params: unknown) => Promise; export {};