1 | declare class ProgressBar {
|
2 | size: number;
|
3 | tickSize: number;
|
4 | value: number;
|
5 | startTime: number;
|
6 | lastRemainingTimes: number[];
|
7 | silent: boolean;
|
8 | terminalWidth: number;
|
9 | callback: Function;
|
10 | constructor(size?: number, { tickSize, silent, terminalWidth }?: {
|
11 | tickSize?: number | undefined;
|
12 | silent?: boolean | undefined;
|
13 | terminalWidth?: number | undefined;
|
14 | });
|
15 | getEllapsed(): number;
|
16 | getRemaining(): number;
|
17 | setValue(value: number): string;
|
18 | tick(): string;
|
19 | onFinish(callback: Function): void;
|
20 | write(text: string): void;
|
21 | print(): string;
|
22 | }
|
23 | export default ProgressBar;
|