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.

13 lines (12 loc) 551 B
import { BaseDownloadEngineEvents } from "./base-download-engine.js"; import { EventEmitter } from "eventemitter3"; import { FormattedStatus } from "../../transfer-visualize/format-transfer-status.js"; export declare class DownloadEngineRemote extends EventEmitter<BaseDownloadEngineEvents> { private _latestStatus; get status(): FormattedStatus; get downloadStatues(): FormattedStatus[]; get downloadSize(): number; get fileName(): string; download(): Promise<void>; emitRemoteProgress(progress: FormattedStatus): void; }