/** Stable HTTP range/session error codes. */ export type HttpErrorCode = 'HTTP_RANGE_UNSUPPORTED' | 'HTTP_RESOURCE_CHANGED' | 'HTTP_RANGE_INVALID' | 'HTTP_BAD_RESPONSE' | 'HTTP_SIZE_UNKNOWN' | 'HTTP_CONTENT_ENCODING' | 'HTTP_STRONG_ETAG_REQUIRED'; /** Error thrown for HTTP range session failures. */ export declare class HttpError extends Error { /** Machine-readable error code. */ readonly code: HttpErrorCode; /** Underlying cause, if available. */ readonly cause?: unknown; /** Additional context for serialization. */ readonly context?: Record | undefined; constructor(code: HttpErrorCode, message: string, options?: { context?: Record | undefined; cause?: unknown; }); /** Serialize this error into the stable JSON error contract. */ toJSON(): { name: string; code: HttpErrorCode; message: string; context: Record; }; } export declare function isHttpError(err: unknown): err is HttpError; //# sourceMappingURL=errors.d.ts.map