import { MorphError } from '../tools/utils/resilience.js'; /** * Single error mapper for the SDK transport. * * Consolidates the per-tool error handling that used to live in every client * (compact, reflex, github, …) into one place, preserving the actionable * 401/429 messaging. Reuses the existing `MorphError` type so callers that * `instanceof MorphError` keep working. */ /** * Turn a non-OK `Response` into a `MorphError`, extracting the API's error * message when present and marking 429/503 as retryable. */ declare function toMorphError(response: Response): Promise; export { toMorphError };