/** * LivenessUploader — thin wrapper around the HttpClient's uploadWithSession() * that adds: * - Progress callbacks (onProgress) * - Upload cancellation via AbortController * - Automatic retry on transient network failure (configurable) * * Used internally by LivenessModule.create() and LivenessModule.submit() when * the caller needs progress reporting (e.g. for a progress bar during video * upload on slow connections). */ import { HttpClient } from "../../client/HttpClient"; export interface UploadOptions { /** Called with a value 0–1 as the upload progresses. */ onProgress?: (fraction: number) => void; /** Optional AbortSignal to cancel the upload mid-flight. */ signal?: AbortSignal; /** Override the default number of retries on transient errors. */ retries?: number; } export declare class LivenessUploader { private http; constructor(http: HttpClient); /** * Upload a FormData payload to `path` with optional progress and * cancellation support. * * Falls back to the standard `uploadWithSession()` on browsers that do not * support XMLHttpRequest upload progress (very rare). */ upload(path: string, formData: FormData, options?: UploadOptions): Promise; private uploadWithProgress; } //# sourceMappingURL=uploader.d.ts.map