import React from 'react'; import { DOMElement } from 'ink'; export interface SelectInputProps { items: Item[]; initialItems?: Item[]; onChange?: (item: Item | undefined) => void; enableShortcuts?: boolean; focus?: boolean; emptyMessage?: string; defaultValue?: T; highlightedTerm?: string; loading?: boolean; errorMessage?: string; hasMorePages?: boolean; morePagesMessage?: string; availableLines?: number; onSubmit?: (item: Item) => void; inputFixedAreaRef?: React.Ref; ref?: React.Ref; groupOrder?: string[]; } export interface Item { label: string; value: T; key?: string; group?: string; helperText?: string; disabled?: boolean; } declare function SelectInput({ items: rawItems, initialItems, onChange, enableShortcuts, focus, emptyMessage, defaultValue, highlightedTerm, loading, errorMessage, hasMorePages, morePagesMessage, availableLines, onSubmit, inputFixedAreaRef, ref, groupOrder, }: SelectInputProps): React.ReactElement | null; export { SelectInput };