1 | import { AbortableTask } from "@xmcl/task";
|
2 | import { Download, DownloadOptions } from "./http/download";
|
3 | import { StatusController } from "./http/status";
|
4 | export declare class DownloadTask extends AbortableTask<void> implements StatusController {
|
5 | readonly download: Download;
|
6 | protected abort: (isCancelled: boolean) => void;
|
7 | constructor(options: DownloadOptions);
|
8 | reset(progress: number, total: number): void;
|
9 | onProgress(chunkSize: number, progress: number): void;
|
10 | protected process(): Promise<void>;
|
11 | protected isAbortedError(e: any): boolean;
|
12 | }
|
13 | //# sourceMappingURL=downloadTask.d.ts.map |
\ | No newline at end of file |