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