import { InboxApi } from '../api/inbox/InboxApi'; /** * Represents a stream uploader for uploading a file in chunks. */ export declare class InboxFileUploader { private _inboxHandle; private _fileHandle; private _data; private _size; private _offset; private _api; private _type; private _reader; /** * Creates an instance of StreamUploader. * @param {InboxApi} api {@link InboxApi `InboxApi`} instance * @param {number} inboxHandle handle to the Inbox * @param {number} fileHandle file handle * @param {Uint8Array} data The data (file content) to upload. * @param {number} [offset=0] - The starting offset for uploading. */ constructor(api: InboxApi, inboxHandle: number, fileHandle: number, data: Uint8Array | File, 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; private sendFileChunk; private sendDataChunk; }