import type { FilesError } from "../internal/errors.js"; export type FileUploadStatus = "pending" | "uploading" | "success" | "error" | "aborted"; export interface FileUploadState { file: Blob; name: string; size: number; type: string; key?: string; status: FileUploadStatus; loaded: number; total: number; /** 0–1. */ progress: number; error?: FilesError; } export interface AggregateProgress { loaded: number; total: number; /** 0–1 across all files. */ fraction: number; } export declare const aggregate: (states: readonly FileUploadState[]) => AggregateProgress; export declare const fileName: (file: Blob) => string; export declare const initialState: (file: Blob) => FileUploadState; //# sourceMappingURL=progress.d.ts.map