UNPKG

asciitorium

Version:

an ASCII ui framework for web + cli

18 lines (17 loc) 559 B
import { Component, ComponentProps } from '../core/Component'; import type { State } from '../core/State'; export interface ProgressBarOptions extends Omit<ComponentProps, 'height'> { percent: State<number>; showPercentage?: boolean; durationMs?: number; height?: number; } export declare class ProgressBar extends Component { private value; private readonly showPercentage; private animationInterval?; private readonly durationMs; constructor(options: ProgressBarOptions); private animateTo; draw(): string[][]; }