declare type OnProgressFn = (percent: number, status?: string, file?: File) => void; /** * Uploads the given file to the S3 storage and returns it's public url * @param file - single file entity from the file input * @param onProgress - optional callback to track upload progress */ /** * S3 low-level upload, using PUT to the pre-signed URL * XHR is used because fetch doesn't support progress tracking. * * Resolves without a URL on purpose: the public file address must be taken from the * `s3SignUpload.publicUrl` response. The presigned URL is signed for the S3 API host, * while anonymous reads are served from a different public host (Selectel * `.selstorage.ru`), so an address derived from it answers 403. */ export declare const uploadToS3: (file: File & any, uploadUrl: string, onProgress?: OnProgressFn | undefined) => Promise; export {};