export interface Options { url: string; body?: BodyInit; onDownloadProgress?: (receivedLength: number, contentLength: number) => void; fetchOptions?: RequestInit | ((fetchOptions: RequestInit) => Promise); } export declare function downloadFile(options: Options): Promise<{ fileName: string; blob: Blob; }>; export interface DownloadAndSaveFileOptions extends Options { defaultFileName: string; } export declare function downloadAndSaveFile(options: DownloadAndSaveFileOptions, downloadFileEnable?: boolean): Promise;