import { McpError } from '@mcp-abap-adt/llm-agent'; /** * Map a thrown/returned transport error to an McpError with an availability * code. Shared by McpClientAdapter (catch + returned-error path) and * MCPClientWrapper (throw on retry exhaustion) so both classify identically. * * The default for an UNRECOGNIZED message is the non-availability `MCP_ERROR`, * so a plain tool error never escalates to fail-loud / NOT_READY. Connection / * network / timeout / HTTP-5xx-or-403 signatures DO escalate — including the * Node `fetch failed` shape whose real cause (ECONNREFUSED / ENOTFOUND / …) * lives on `err.cause`. */ export declare function toMcpError(err: unknown): McpError; //# sourceMappingURL=error-mapping.d.ts.map