import type { CreatableProps } from "react-select/creatable"; import type { ReactNode } from "react"; import type { OptionsOrGroups } from "react-select"; import type { IOption, IGroup, IGroupBase, IsMulti, IComponentProps, IComboboxProps, IComboboxBase } from "../Combobox/Combobox.types"; export declare type IIsValidNewOptionFunction = (inputValue: string, value: readonly IOption[], options: OptionsOrGroups>) => boolean; export interface ICreatableComboboxProps extends IComboboxProps { onAddItem?: (inputValue: string, options: IOption[]) => void; isValidNewOption?: IIsValidNewOptionFunction; formatCreateLabel?: (inputValue: string) => ReactNode; } export interface IReactSelectCreatableProps extends Omit, "backspaceRemovesValue" | "onChange" | "placeholder">, IComboboxBase { componentProps?: IComponentProps; ref?: any; backspaceRemovesValue?: boolean; }