UNPKG

ipull

Version:

The only file downloader you'll ever need. For node.js and the browser, CLI and library for fast and reliable file downloads.

17 lines (16 loc) 622 B
import BaseDownloadProgram from "./download-programs/base-download-program.js"; import DownloadEngineFile from "./download-engine-file.js"; export declare class DownloaderProgramManager { protected _program: BaseDownloadProgram; protected _download: DownloadEngineFile; private _speedHistory; private _lastResumeDate; private _lastAverageSpeed; private _increasePaused; protected _removeEvent?: () => void; constructor(_program: BaseDownloadProgram, _download: DownloadEngineFile); private _initEvents; private _calculateAverageSpeed; private _checkAction; close(): void; }