/** 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; constructor(status: number, code: string, message: string, details?: unknown); } /** Type guard for an `ErrorBody`-shaped parsed payload. */ export declare function isErrorBody(value: unknown): value is ErrorBody;