import { HttpContext } from '@angular/common/http'; import { Observable } from 'rxjs'; import * as i0 from '@angular/core'; interface UploadCapabilities { uploadEnabled: boolean; maxFileSizeBytes: number; useChunkedUpload: boolean; } interface UploaderUploadedFile { fileId: string; fileName: string; contentType: string; size: number; payload: Readonly>; } interface UploaderUploadEvent { progress: number; completed: boolean; file?: UploaderUploadedFile; } type UploaderPolicyErrorCode = 'UPLOAD_DISABLED' | 'FILE_TOO_LARGE' | 'INVALID_CAPABILITIES' | 'INVALID_SESSION'; declare class UploaderPolicyError extends Error { readonly code: UploaderPolicyErrorCode; readonly maxFileSizeBytes?: number | undefined; constructor(code: UploaderPolicyErrorCode, message: string, maxFileSizeBytes?: number | undefined); } declare class UploaderService { private readonly http; private readonly defaultCapabilitiesCache; private readonly contextualCapabilitiesCaches; getCapabilities(endpoint?: string, context?: HttpContext): Observable; upload(file: File, endpoint?: string, context?: HttpContext): Observable; cancelSession(endpoint: string, sessionId: string, context?: HttpContext): Observable; private uploadDirect; private uploadChunked; private createSession; private getSessionStatus; private parseCapabilities; private parseSession; private parseSessionProgress; private resolveNextOffset; private normalizeUploadedFile; private unwrapResponse; private contextOptions; private resolveCapabilitiesCache; private retryTransient; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export { UploaderPolicyError, UploaderService }; export type { UploadCapabilities, UploaderPolicyErrorCode, UploaderUploadEvent, UploaderUploadedFile };