/** * Action object embedded in `structuredContent` so MCP clients that support * rich rendering (Claude Code, future Claude.ai, Cursor) can show a real * button. Clients that don't render `structuredContent` still see the URL * in the text fallback. */ export interface ToolAction { type: 'open_url'; label: string; url: string; } interface RenderedError { content: Array<{ type: 'text'; text: string; }>; structuredContent?: { actions: ToolAction[]; }; isError: true; } /** * Render an SDK error as an MCP tool execution result. * * Credit exhaustion gets a human-readable message AND a structured `actions` * payload (per MCP spec 2025-11-25) so clients can render a button. Clients * without structured-content support still see the URL in the text fallback. * * All other errors fall through to the existing `Error: ` format. */ export declare function renderToolError(err: unknown): RenderedError; export {}; //# sourceMappingURL=errors.d.ts.map