export interface UploadingFileHandler<T = unknown> {
    readonly promise: Promise<T>;
    readonly abort: () => void;
    /**
     * This variable is writable.
     */
    onProgress?: (progress: number) => void;
}
export declare function httpUpload<T = unknown>(options: {
    url: string;
    method: "POST" | "PUT";
    data: FormData;
}): UploadingFileHandler<T>;
export type HttpUpload = typeof httpUpload;
