/** * Backend Error Mapper * * Single entry-point mapper that normalizes all errors into UnifiedError structure. * Based on patterns from mayya_player backend error handling. */ import type { ErrorData } from 'hls.js'; import { UnifiedError, UnifiedErrorType, ErrorContext } from './types'; /** * Determines the business context of an error based on type and status code. * This encapsulates business rules for error interpretation. */ export declare function determineErrorContext(type: UnifiedErrorType, statusCode?: number | null, errorDetails?: any): ErrorContext; /** * Main error mapper - maps any error to UnifiedError */ export declare function mapError(error: unknown): UnifiedError; /** * Map HLS.js specific errors */ export declare function mapHlsError(errorData: ErrorData): UnifiedError; /** * Create a custom error from HTTP response * Based on backend_error_parser.dart implementation */ export declare function createErrorFromResponse(response: Response): Promise; //# sourceMappingURL=mapper.d.ts.map