export interface Choice { name: string; value: T; } /** Strings are used as both the name and value */ export type ChoiceInput = Choice | (T & string); export interface SelectOptions { /** The choice that is initially highlighted */ default?: T; /** The most choices shown at once */ pageSize?: number; } export interface MultiSelectOptions { /** The choices that are initially selected */ default?: T[]; /** The most choices shown at once */ pageSize?: number; } /** * Ask the user to pick one of `choices`, using the arrow keys and enter. * When stdin or stdout isn't a TTY, the choices are listed and picked by number or name. */ export declare function select(question: string, choices: readonly ChoiceInput[], options?: SelectOptions): Promise; /** * Ask the user to pick any number of `choices`, using the arrow keys, space, and enter. * When stdin or stdout isn't a TTY, the choices are listed and picked by number or name. */ export declare function multiSelect(question: string, choices: readonly ChoiceInput[], options?: MultiSelectOptions): Promise;