export interface ErrorContext { service?: string; operation?: string; userId?: string; metadata?: Record; } export declare class ErrorHandler { private initialized; constructor(); private initializeSentry; handleError(error: unknown, context?: ErrorContext): void; handleWithFallback(error: unknown, fallbackFn: () => T, context?: ErrorContext): T; handleAsyncWithFallback(error: unknown, fallbackFn: () => Promise, context?: ErrorContext): Promise; wrapAsync Promise>(fn: T, context?: ErrorContext): T; private extractErrorInfo; createServiceError(message: string, code: string, statusCode?: number, details?: any): ServiceError; private sanitizeMetadata; private sanitizeValue; private describeValue; } export declare class ServiceError extends Error { code: string; statusCode: number; details?: any | undefined; constructor(message: string, code: string, statusCode?: number, details?: any | undefined); } export declare class RateLimitError extends ServiceError { constructor(message?: string, retryAfter?: number); } export declare class QuotaExceededError extends ServiceError { constructor(service: string); } export declare class ValidationError extends ServiceError { constructor(message: string, fields?: Record); } //# sourceMappingURL=error-handler.d.ts.map