/** The uniform JSON body crtrd returns on any non-2xx response. */ export interface ErrorBody { error: { code: string; message: string; details?: unknown; }; } /** Thrown by `CrtrClient` on a non-2xx response (or a synthesized transport * failure such as an unreachable daemon). Carries the HTTP status, the stable * machine `code` from the `ErrorBody`, and optional structured `details`. */ export declare class APIError extends Error { readonly status: number; readonly code: string; readonly details?: unknown; readonly headers: Headers; constructor(status: number, code: string, message: string, details?: unknown, headers?: HeadersInit); } /** @deprecated Use APIError. Kept as the in-repo compatibility alias. */ export { APIError as ApiError }; /** A local API transport failure has stable status/code identity, independent * of message prose. */ export declare function isDaemonTransportApiError(error: unknown): error is APIError; /** Type guard for an `ErrorBody`-shaped parsed payload. */ export declare function isErrorBody(value: unknown): value is ErrorBody;