import { CancelToken } from "axios";
export declare class Uploader {
    private constructor();
    /**
     * Upload file to the pre-signed url.
     *
     * @param file File to be uploaded.
     * @param url Url for file upload.
     * @param fields AWS provided authentication fields
     * @param setUploadProgressPercent Callback to update upload progress.
     * @param cancelToken Token to cancel request.
     */
    static postUploadFile(file: File, url: string, fields: Record<string, string>, setUploadProgressPercent: (progress: number) => void, cancelToken?: CancelToken): Promise<void>;
    /**
     * Upload file to the pre-signed url.
     *
     * @param file File to be uploaded.
     * @param url Url for file upload.
     * @param setUploadProgressPercent Callback to update upload progress.
     * @param cancelToken Token to cancel request.
     */
    static putUploadFile(file: File | FormData, url: string, setUploadProgressPercent: (progress: number) => void, cancelToken?: CancelToken): Promise<void>;
}
