import type { AsyncProps } from "react-select/async"; import type { ReactNode } from "react"; import type { IOption, IGroup, IsMulti, IComponentProps, IComboboxBase, IGroupBase } from "../Combobox/Combobox.types"; import type { OptionsOrGroups } from "react-select"; export interface IAsyncPropsBase extends AsyncProps { } export declare type IIsValidNewOptionFunction = (inputValue: string, value: readonly IOption[], options: OptionsOrGroups>) => boolean; export interface IReactSelectAsyncProps extends Omit { ref?: any; componentProps?: IComponentProps; onAddItem?: (inputValue: string, options?: OptionsOrGroups>) => void; isValidNewOption?: IIsValidNewOptionFunction; formatCreateLabel?: (inputValue: string) => ReactNode; } export interface IAsyncProps extends Omit, IComboboxBase { backspaceRemovesValue?: boolean; }