/** * Backend Error Mapper * * Single entry-point mapper that normalizes all errors into UnifiedError structure. * Based on patterns from mayya_player backend error handling. */ 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 Shaka Player specific errors * Based on Shaka error categories and codes * Reference: https://shaka-project.github.io/shaka-player/docs/api/shaka.util.Error.html */ export declare function mapShakaError(shakaError: any): 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