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.
19 lines (18 loc) • 757 B
TypeScript
import { TransferProgressInfo } from "./transfer-statistics.js";
import { Options as PrettyMsOptions } from "pretty-ms";
import { ProgressStatus } from "../download-engine/download-file/progress-status-file.js";
export type CliInfoStatus = TransferProgressInfo & {
fileName?: string;
comment?: string;
};
export type FormattedStatus = ProgressStatus & CliInfoStatus & {
formattedSpeed: string;
formatTransferred: string;
formatTotal: string;
formatTransferredOfTotal: string;
formatTimeLeft: string;
formattedPercentage: string;
formattedComment: string;
};
export declare const PRETTY_MS_OPTIONS: PrettyMsOptions;
export declare function createFormattedStatus(status: ProgressStatus | FormattedStatus): FormattedStatus;