/** * Shared HTTP error handling for model adapters. * * Converts HTTP error responses into structured ONI errors: * - 429 → ModelRateLimitError (with retry-after header parsing) * - 4xx → ModelAPIError (not recoverable) * - 5xx → ModelAPIError (recoverable) */ /** * Parse retry-after from response headers. * Supports: * - `retry-after` (seconds, per HTTP spec) * - `retry-after-ms` (milliseconds, used by some providers) */ export declare const MAX_RETRY_AFTER_MS: number; /** * Throw a structured error for a non-OK HTTP response. * Call this after `const text = await res.text()` on a failed response. */ export declare function throwModelHttpError(provider: string, status: number, body: string, headers?: { get(name: string): string | null; } | null): never; //# sourceMappingURL=http-error.d.ts.map