import React, { Component, ComponentType, MouseEventHandler } from 'react'; import DropdownList from './dropdown-list'; import { IntlShape } from 'react-intl'; interface StyledDropdownSelect { inputTheme?: string; size?: string; } export declare const StyledDropdownSelect: import("styled-components").StyledComponent<"div", any, { className: "item-selector__dropdown"; } & StyledDropdownSelect, "className">; export declare const preventCloseSelector = "prevent__close__selector"; type ItemSelectorProps = { selectedItems?: ReadonlyArray | string | number | boolean | object | null; options: ReadonlyArray; onChange: (items: ReadonlyArray | string | number | boolean | object | null) => void; fixedOptions?: ReadonlyArray | null; erasable?: boolean; showArrow?: boolean; searchable?: boolean; displayOption?: string | ((opt: any) => any); getOptionValue?: string | ((opt: any) => any); filterOption?: string | ((opt: any) => any); placement?: string; disabled?: boolean; isError?: boolean; isLoading?: boolean; multiSelect?: boolean; inputTheme?: string; size?: string; onBlur?: () => void; onFocus?: () => void; placeholder?: string; closeOnSelect?: boolean; typeaheadPlaceholder?: string; DropdownHeaderComponent?: ComponentType | null; DropDownRenderComponent?: ComponentType; DropDownLineItemRenderComponent?: ComponentType; CustomChickletComponent?: ComponentType; intl: IntlShape; withSubOptions?: boolean; }; declare class ItemSelector extends Component { static defaultProps: { multiSelect: boolean; placeholder: string; closeOnSelect: boolean; searchable: boolean; DropDownRenderComponent: typeof DropdownList; DropDownLineItemRenderComponent: ({ value, displayOption, light }: { value: any; displayOption?: (d: any) => any; light: any; }) => React.JSX.Element; withSubOptions: boolean; }; state: { showTypeahead: boolean; }; handleClickOutside: (e: any) => void; _hideTypeahead(): void; _onBlur: () => void; _removeItem: (item: any, e: any) => void; _selectItem: (item: any) => void; _onErase: MouseEventHandler; _showTypeahead: MouseEventHandler; _renderDropdown(intl: IntlShape): React.JSX.Element; render(): React.JSX.Element; } export declare const ItemSelectorListen: import("react-onclickoutside").WrapperClass; declare const _default: React.ForwardRefExoticComponent & { multiSelect?: boolean; placeholder?: string; withSubOptions?: boolean; searchable?: boolean; closeOnSelect?: boolean; DropDownRenderComponent?: React.ComponentType; DropDownLineItemRenderComponent?: React.ComponentType; } & {}>, "intl"> & { forwardedRef?: React.Ref; } & React.RefAttributes> & { WrappedComponent: React.ComponentType & { multiSelect?: boolean; placeholder?: string; withSubOptions?: boolean; searchable?: boolean; closeOnSelect?: boolean; DropDownRenderComponent?: React.ComponentType; DropDownLineItemRenderComponent?: React.ComponentType; } & {}>>; }; export default _default;