import { DownloaderBase, DownloadOptions, StatusCode, DownloadEventData } from './downloader.common'; import { DownloadsData } from './enums'; export declare class Downloader extends DownloaderBase { private fetch; downloadsData: Map; private manager; private worker; downloadRequests: Map; taskIds: Map; constructor(); static init(): void; static setTimeout(timeout: number): void; createDownload(options: DownloadOptions): string; getStatus(id: string): StatusCode; start(id: string, progress?: Function): Promise; resume(id: string): void; cancel(id: string): void; pause(id: string): void; getPath(id: string): string; }