import cliProgress from 'cli-progress'; import type { IProgress, IProgressItem } from '../types'; export declare class ProgressBar { bookPath: string; progressFilePath: string; progressInfo: IProgress; curr: number; total: number; isDownloadInterrupted: boolean; bar: cliProgress.SingleBar | null; completePromise: Promise | null; incremental: boolean; disableProgressJSON: boolean; constructor(bookPath: string, total: number, incremental?: boolean, disableProgressJSON?: boolean); init(): Promise; getProgress(): Promise; updateProgress(progressItem: IProgressItem, isSuccess: boolean): Promise; pause(): void; continue(): void; clearLine(line: number): void; }