import { McpError } from '@modelcontextprotocol/sdk/types.js'; export declare function mapErrorToMcp(toolName: string, error: unknown): McpError; export declare function wrapTool(toolName: string, fn: () => Promise): () => Promise; export declare function wrapTool(toolName: string, fn: (args: TArgs) => Promise): (args: TArgs) => Promise; //# sourceMappingURL=tool-errors.d.ts.map