import { DownloadOptions, ProgressController } from '@xmcl/file-transfer'; import { AbortableTask } from '@xmcl/task'; export declare class DownloadTask extends AbortableTask implements ProgressController { protected options: DownloadOptions; protected abort: (isCancelled: boolean) => void; constructor(options: DownloadOptions); onProgress(url: URL, chunkSize: number, progress: number, total: number): void; protected process(): Promise; protected isAbortedError(e: any): boolean; } //# sourceMappingURL=downloadTask.d.ts.map