import { AxiosProgressEvent, AxiosResponse } from 'axios'; type UploadData = Blob | (() => Promise); interface UploadDataOptions { /** The abort signal */ signal: AbortSignal; /** Upload progress event callback */ onUploadProgress?: (event: AxiosProgressEvent) => void; /** Request retry callback (e.g. network error of previous try) */ onUploadRetry?: () => void; /** The final destination file (for chunked uploads) */ destinationFile?: string; /** Additional headers */ headers?: Record; /** Number of retries */ retries?: number; } /** * Upload some data to a given path * * @param url the url to upload to * @param uploadData the data to upload * @param uploadOptions upload options */ export declare function uploadData(url: string, uploadData: UploadData, uploadOptions: UploadDataOptions): Promise; /** * Get chunk of the file. * Doing this on the fly give us a big performance boost and proper garbage collection * * @param file File to upload * @param start Offset to start upload * @param length Size of chunk to upload */ export declare function getChunk(file: File, start: number, length: number): Promise; /** * Create a temporary upload workspace to upload the chunks to * * @param destinationFile The file name after finishing the chunked upload * @param retries number of retries * @param isPublic whether this upload is in a public share or not * @param customHeaders Custom HTTP headers used when creating the workspace (e.g. X-NC-Nickname for file drops) */ export declare function initChunkWorkspace(destinationFile?: string | undefined, retries?: number, isPublic?: boolean, customHeaders?: Record): Promise; export {};