/** Stable, documented exit codes. */ export declare const EXIT: { readonly GENERIC: 1; readonly AUTHENTICATION: 10; readonly PERMISSION: 11; readonly NOT_FOUND: 12; readonly CONFLICT: 13; readonly VALIDATION: 14; readonly CARD: 15; readonly RATE_LIMIT: 16; readonly API: 17; readonly CONNECTION: 18; }; /** The `{ error: { code, message, params } }` envelope returned by the API. */ export interface ErrorEnvelope { error?: { code?: string; message?: string; params?: unknown; displayMessage?: string; reversible?: boolean; }; } /** Thrown by the raw escape-hatch client on a non-2xx response. */ export declare class ApiRequestError extends Error { readonly status: number; readonly code?: string; readonly body?: unknown; readonly requestId?: string; constructor(status: number, message: string, opts?: { code?: string; body?: unknown; requestId?: string; }); } interface Formatted { message: string; exitCode: number; } export declare function formatError(err: unknown): Formatted; export {};