import { CharmColor } from 'charm'; export interface ProgressOptions { total: number; pattern?: string; textColor?: CharmColor; title?: string; updateFrequency?: number; } declare class Progress { private _total; private _textColor?; private _title?; private _updateFrequency; private _barSize; private _percent; private _percentIncrease; private _current; private _start; private _elapsed; private _remaining; private _now; private _cycle; private _timer; private _padding; private _message; private _pattern; private _regex; /** * Creates new progress object * @param options * @returns {Progress} */ static create(options: ProgressOptions): Progress; /** * * @deprecated use Progress.create(options: ProgressOptions) */ constructor(_total: number, pattern?: string, _textColor?: CharmColor, _title?: string, _updateFrequency?: number); /** * Update process * @param current [optional] update process to current value. * @param message [optional] progress message * @returns current {number} */ update(current?: number, message?: string): string | number; /** * Updates progress */ _update(): void; /** * Finishes progress */ done(): void; start: () => void; private stop; private write; private renderElapsed; private renderRemaining; private renderMemory; private renderPercent; private renderCurrent; private renderTotal; private renderMessage; private renderBar; private _patternMapping; private renderPattern; private renderItem; private renderText; private renderTitle; private skipStep; } export { Progress };