import React from "react"; import { DropzoneManager } from "./DropzoneManager"; import { UploadingFileState } from "./types"; export declare class UploadingFile { file: File; manager: DropzoneManager; /** * File id */ id: string; /** * Uploading file state */ state: UploadingFileState; /** * Upload progress */ uploadProgress: number; /** * Error message if uploading failed */ error: React.ReactNode; /** * File url */ url: string; /** * File index in the queue */ fileIndex: number; /** * Abort controls list */ abortControls: AbortController[]; /** * Constructor */ constructor(file: File, manager: DropzoneManager); /** * Start uploading file */ upload(): Promise; /** * Cancel uploading file */ cancel(): Promise; /** * Update file state */ updateState(state: UploadingFileState): void; /** * Update file progress */ updateFileProgress(progress: number): void; /** * Listen to file progress */ onProgress(callback: (progress: number) => void): import("@mongez/events").EventSubscription; /** * On state change */ onStateChange(callback: (file: UploadingFile) => void): import("@mongez/events").EventSubscription; /** * Re upload file */ reupload(): Promise; } //# sourceMappingURL=UploadingFile.d.ts.map