UNPKG

helios-core

Version:

A library containing core mechanisms for Helios Launcher

8 lines (7 loc) 398 B
import { Progress } from 'got'; import { Asset } from './Asset'; export declare function getExpectedDownloadSize(assets: Asset[]): number; export declare function downloadQueue(assets: Asset[], onProgress: (received: number) => void): Promise<{ [id: string]: number; }>; export declare function downloadFile(url: string, path: string, onProgress?: (progress: Progress) => void): Promise<void>;