export interface McpToolResult { content: Array<{ type: "text"; text: string; }>; isError?: boolean; [key: string]: unknown; } /** Wraps a JSON-serializable value in the MCP text-content envelope. */ export declare function jsonResult(value: unknown): McpToolResult; /** * Converts thrown errors into an MCP error result. Keeps the API-specific * information (status, endpoint, body) in the text so the LLM can react. */ export declare function errorResult(error: unknown): McpToolResult;