/** * Table prompt for inquirer v12. * Standalone implementation (no inquirer/lib) compatible with * inquirer 12 legacy adapter: constructor(question, rl, answers) + run() returns Promise. */ import * as readline from 'readline'; interface ChoiceLike { name?: string; value?: string; } interface TableQuestion { message?: string; name?: string; columns?: ChoiceLike[]; rows?: ChoiceLike[]; selectAll?: boolean; pageSize?: number; } type ReadLine = readline.Interface & { input: NodeJS.ReadableStream; output: NodeJS.WritableStream; }; declare class TablePrompt { private question; private rl; private selectAll; private columns; private rows; private pointer; private horizontalPointer; private values; private pageSize; private spaceKeyPressed; private status; private done; private lastHeight; constructor(question: TableQuestion, rl: ReadLine, _answers: Record); run(): Promise<(string | undefined)[]>; private getCurrentValue; private onSubmit; private onUpKey; private onDownKey; private onLeftKey; private onRightKey; private selectAllValues; private onSpaceKey; private paginate; private getMessage; private render; } export = TablePrompt;