export type ErrorCode = 'VALIDATION_ERROR' | 'NOT_FOUND' | 'API_KEY_ERROR' | 'RATE_LIMIT' | 'UPSTREAM_TIMEOUT' | 'INTERNAL_ERROR'; export interface CoreErrorShape { code: ErrorCode; message: string; hint?: string; details?: unknown; retryable: boolean; } export declare class CoreError extends Error { readonly code: ErrorCode; readonly hint?: string; readonly details?: unknown; readonly retryable: boolean; constructor(shape: CoreErrorShape); toJSON(): CoreErrorShape; } export declare function apiKeyError(region: string, rawMessage?: string): CoreError; export declare function apiKeyExpiredError(region: string): CoreError; export declare function rateLimitError(region: string): CoreError; export declare function toCoreError(error: unknown): CoreError; //# sourceMappingURL=errors.d.ts.map