export interface MenuOptions { layout?: 'grid' | 'row'; clearAfter?: boolean; } export interface MenuChoice { text: string; id?: string | number; } export declare class TerminalMenu { private question; private options; private onSelect; static ask(question: string, choices: MenuChoice[] | string[], options?: MenuOptions): Promise; private choices; private y; private layout; private questionHeight; private selected; private scrollOffset; constructor(question: string, choices: MenuChoice[] | string[], options: MenuOptions, onSelect: (selection: MenuChoice) => void); private start; private end; private get menuTop(); private scrollSelectionIntoView; private setSelection; private onResize; private onKeyPress; private getOffset; private getCoordinates; private render; private rerender; private cursorToSelected; private layoutChoices; }