import { RefCallback } from 'react'; import { GroupBase, Props, PropsValue, SelectInstance } from 'react-select'; import { AsyncProps } from 'react-select/async'; import { CreatableProps } from 'react-select/creatable'; type SelectAsyncCreatableProps> = Props & AsyncProps & CreatableProps; export type SelectProps> = Omit, "value" | "onChange"> & { value?: PropsValue; creatable?: CreatableProps; valueOnly?: boolean; outset?: string; hasSearchStyles?: boolean; maxLength?: number; onChange?: (e: { target: { name: string; value: unknown; }; } | PropsValue