import { RefObject } from 'react';
import { SelectComponents } from 'react-select/dist/declarations/src/components';
import { FieldWrapperProps } from '@parlor/components/select-v4';
import { FormAwareProps } from '@parlor/ui/form';
import { Option } from '../../select';
import { Selectable } from '../../utils/types';
export type FormSearchSelectorBoxProps<T extends Option, IsMulti extends boolean> = SearchSelectorBoxProps<T, IsMulti> & FormAwareProps & FieldWrapperProps;
export interface SearchSelectorBoxPropsInner<T extends Option = Option, IsMulti extends boolean = false> extends Selectable<T, IsMulti> {
    components?: Partial<SelectComponents<T, IsMulti, any>>;
    isMulti?: boolean;
    menuReferenceElement?: RefObject<HTMLDivElement>;
}
export type SearchSelectorBoxProps<T extends Option = Option, IsMulti extends boolean = false> = Omit<SearchSelectorBoxPropsInner<T, IsMulti>, 'selectMenuRef'>;
