/** * MCP tool error handling. * Returns structured errors that MCP clients can display to users. */ export interface ToolError { isError: true; content: Array<{ type: 'text'; text: string; }>; } export declare function toolError(message: string): ToolError; export declare function toolResult(data: T): { content: Array<{ type: 'text'; text: string; }>; }; //# sourceMappingURL=errors.d.ts.map