import type { ReactNode } from 'react'; import type { SelectProps } from './Select'; import { Option } from './common'; export type SelectInputOptions = Option[] | (() => Promise[]>); export type SelectInputProps = Omit, 'options' | 'selectedOption' | 'onSelectOption' | 'info' | 'onSearchTextChange'> & { options: SelectInputOptions; value: ValueType | null; onSetValue: (nextValue: ValueType | null) => void; noOptionsMessage?: ReactNode; };