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.

18 lines (17 loc) 1.42 kB
import DownloadEngineBrowser, { DownloadEngineOptionsBrowser } from "./download-engine/engine/download-engine-browser.js"; import DownloadEngineMultiDownload, { DownloadEngineMultiDownloadOptions } from "./download-engine/engine/download-engine-multi-download.js"; import { DownloadEngineRemote } from "./download-engine/engine/DownloadEngineRemote.js"; export type DownloadFileBrowserOptions = DownloadEngineOptionsBrowser; export type DownloadSequenceBrowserOptions = DownloadEngineMultiDownloadOptions; /** * Download one file in the browser environment. */ export declare function downloadFileBrowser(options: DownloadFileBrowserOptions): Promise<DownloadEngineBrowser<import("./download-engine/streams/download-engine-write-stream/download-engine-write-stream-browser.js").default>>; /** * Stream events for a download from remote session, doing so by calling `emitRemoteProgress` with the progress info. */ export declare function downloadFileRemoteBrowser(): DownloadEngineRemote; /** * Download multiple files in the browser environment. */ export declare function downloadSequenceBrowser(options?: DownloadSequenceBrowserOptions | DownloadEngineBrowser | Promise<DownloadEngineBrowser>, ...downloads: (DownloadEngineBrowser | Promise<DownloadEngineBrowser>)[]): Promise<DownloadEngineMultiDownload<import("./download-engine/engine/download-engine-multi-download.js").DownloadEngineMultiAllowedEngines>>;