import type { CallResultOptions, CallspecClientErrors } from '../clientTypes'; import type { ResolveRouteClientErrorInput } from './types'; /** * Map an HTTP error response to a typed client failure. * * Pipeline: callspec JSON → undeclared `{ error }` → exact phrase → status → fuzzy → UNKNOWN. * See src/content/docs/error-handling.md and skills/callspec/SKILL.md. */ export declare function resolveRouteClientError(input: ResolveRouteClientErrorInput): CallspecClientErrors; /** Same pipeline for non-RPC routes (optional response headers). */ export declare function normalizeClientErrorBody(status: number, body: unknown, options?: CallResultOptions & { responseHeaders?: Headers; }): CallspecClientErrors;