import type { CommonOptions } from './common'; export declare function select(opts: SelectOptions): void; export declare interface SelectOptions extends CommonOptions { message: string options: Option[] initialValue?: Value maxItems?: number } declare type Primitive = Readonly; export type Option = Value extends Primitive ? { /** * Internal data for this option. */ value: Value /** * The optional, user-facing text for this option. * * By default, the `value` is converted to a string. */ label?: string /** * An optional hint to display to the user when * this option might be selected. * * By default, no `hint` is displayed. */ hint?: string } : { /** * Internal data for this option. */ value: Value /** * Required. The user-facing text for this option. */ label: string /** * An optional hint to display to the user when * this option might be selected. * * By default, no `hint` is displayed. */ hint?: string }