import { ReactNode } from "react"; import { GroupBase, OptionsOrGroups } from "react-select"; import { ISelectDropdownProps } from "../SelectDropdown/SelectDropdown.interface"; import { IDropdownOption } from "../../Dropdown.interface"; export interface IAsyncSelectProps extends Omit { id: string; cacheOptions?: boolean; loadingMessage?: ReactNode; defaultOptions?: OptionsOrGroups> | boolean; loadOptions?: (inputValue: string, callback: (options: OptionsOrGroups>) => void) => void | Promise; }