export declare class KeelError extends Error { readonly status: number; readonly code?: string; readonly field?: string; readonly details?: unknown; /** Retry-After value in seconds, parsed from the response header when available. */ retryAfter?: number; constructor(status: number, message: string, details?: unknown, code?: string, field?: string); /** Returns `true` when the HTTP status code is commonly retryable (408, 429, 5xx server errors). */ get isRetryable(): boolean; } /** * Raised when the server returns HTTP 429 (rate-limit throttle) and all * retry attempts have been exhausted. Exposes the throttle-specific fields * from the response body so callers can implement custom back-off or * surface meaningful messages to end-users. */ export declare class ThrottledError extends KeelError { /** Seconds the server asked the client to wait before retrying. */ readonly retryAfterSeconds: number; /** Permit ID associated with the throttled request, if available. */ readonly permitId?: string; /** Shape-D reason code, e.g. "budget.rate_limit_throttled". */ readonly reasonCode?: string; constructor(opts: { message: string; retryAfterSeconds: number; permitId?: string; reasonCode?: string; details?: unknown; }); }