import { StoreApi } from '../api/store/StoreApi'; /** * Represents a file stream uploader for uploading a Browser FileHandle in chunks. */ export declare class FileUploader { private _handle; private _offset; private _size; private _api; private _reader; /** * Creates an instance of FileUploader. * * @param {number} handle - The file handle. * @param {File} file - The data (file content) to upload. * @param {StoreApi} api {@link StoreApi `StoreApi`} instance * @param {number} [offset=0] - The starting offset for uploading. */ constructor(handle: number, file: File, api: StoreApi, offset?: number); /** * Gets the progress of uploading the file as a percentage. * * @returns {number} The progress percentage. */ get progress(): number; /** * Sends the next chunk of the file data to the server. * * @returns {Promise} A promise that resolves to true if there are more chunks to send, or false if all data has been sent. */ sendNextChunk(): Promise; /** * Aborts the uploading process, closes the file handle, and deletes the uploaded part of the file. * * @returns {Promise} A promise that resolves when the file handle is closed and the uploaded part is deleted. */ abort(): Promise; /** * Closes the file handle. * * @returns {Promise} A promise that resolves when the file handle is closed and returns file ID. */ close(): Promise; }