import React, { Component, RefObject } from 'react'; import { SelectOption } from '../../utils/select-utils'; import { Locale } from '../../types/common-types'; type Props = { disabled?: boolean; debounceTime: number; hideTooltip?: boolean; id?: string; inputMaxLength?: number; labelKey?: string; loadOptions?: (value: string) => any; locale?: Locale; name?: string; onBlur?: (value?: SelectOption) => void; onChange?: (newValue?: SelectOption, event?: React.SyntheticEvent) => void; onFocus?: (event: React.FocusEvent) => void; options: SelectOption[]; placeholder?: { [index in Locale]: string; }; syncModeShowsOptionsWithoutSearchTerm?: boolean; value?: SelectOption; valueKey?: string; }; type State = { dropdownOpen: boolean; options: SelectOption[]; prevPropsOptions?: SelectOption[]; selectedIndex: number; target?: HTMLElement; value?: SelectOption; }; export declare class AutoComplete extends Component { searchRef: React.RefObject; timer: number | undefined; static defaultProps: { debounceTime: number; hideTooltip: boolean; inputMaxLength: number; labelKey: string; locale: string; placeholder: { et: string; en: string; ru: string; }; syncModeShowsOptionsWithoutSearchTerm: boolean; valueKey: string; }; state: { value: SelectOption | undefined; options: SelectOption[]; dropdownOpen: boolean; selectedIndex: number; target: undefined; }; static getDerivedStateFromProps(newProps: Props, prevState: State): { prevPropsOptions: SelectOption[]; options: SelectOption[]; value: SelectOption; } | { prevPropsOptions?: undefined; options?: undefined; value: SelectOption; } | { prevPropsOptions: SelectOption[]; options: SelectOption[]; value?: undefined; } | { prevPropsOptions?: undefined; options?: undefined; value?: undefined; } | null; componentDidMount(): void; componentWillUnmount(): void; handleOutsideEvent: () => void; closeDropdown: () => void; handleBlur: () => void; handleSearchKeyDown: (event: React.KeyboardEvent) => void; focusOption: (index: number) => void; getOptions: () => import("react/jsx-runtime").JSX.Element[]; getOption: (item: SelectOption, index: number) => import("react/jsx-runtime").JSX.Element; handleSelectValue: (value: SelectOption, event: React.SyntheticEvent) => void; handleKeyDown: (event: React.KeyboardEvent, value: SelectOption, index: number) => void; handleSearchClick: (event: React.MouseEvent) => void; renderSearchInput: (ref: RefObject) => import("react/jsx-runtime").JSX.Element; handleChange: (value: SelectOption, event: React.SyntheticEvent) => void; handleSearchChange: (event: React.ChangeEvent) => void; fetchOptions: (value: string) => void; filterOptions: (value: string) => void; getSyncOptions: (value: string) => SelectOption[]; renderDropdownList: (ref: RefObject) => import("react/jsx-runtime").JSX.Element; hasValue: () => any; renderClearButton: () => import("react/jsx-runtime").JSX.Element | null; resetValue: () => void; renderDisabledValue: () => import("react/jsx-runtime").JSX.Element; render(): import("react/jsx-runtime").JSX.Element; } export {};