assassin-bug/framework/asset-manager/downloader.d.ts

13 lines
434 B
TypeScript
Raw Permalink Normal View History

2022-11-26 01:22:02 +00:00
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>;
}