13 lines
434 B
TypeScript
13 lines
434 B
TypeScript
|
import EventEmitter from 'eventemitter3';
|
||
|
import { Queue } from './queue';
|
||
|
import { AssetStorage } from './storage';
|
||
|
export declare class Downloader extends EventEmitter {
|
||
|
private storage;
|
||
|
private queue;
|
||
|
private basePath;
|
||
|
constructor(storage: AssetStorage, queue: Queue, basePath?: string);
|
||
|
setBasePath(path: string): void;
|
||
|
download(): Promise<any>;
|
||
|
downloadItem(path: string): Promise<any>;
|
||
|
}
|