import type { IOutput } from './io/output'; /** * Command history. Also maintains a current index in the history for scrolling through it. */ export declare class History { add(command: string): void; at(index: number): string | null; clear(): void; scrollCurrent(next: boolean): string | null; setMaxSize(maxSize: number): void; write(output: IOutput): void; private _history; private _current; private _ignoreInitialWhitespace; private _ignoreDuplicates; private _maxSize; }