import type { ChildrenFunction, DownshiftProps, GetInputPropsOptions, PropGetters } from 'downshift-legacy'; import type { ComponentType, ReactComponentElement, ReactElement } from 'react'; import { Component } from 'react'; import type { Except } from 'type-fest'; import type { InputTextProps } from '../InputText'; import { ResultsItem } from './ResultsItem'; export interface InputAutocompleteProps extends Except { children?: ReactComponentElement[] | ReactComponentElement; defaultInputValue?: string; isLoading?: boolean; emptyComponent?: ComponentType>; minLengthBeforeAutocomplete?: number; inputProps?: GetInputPropsOptions & Partial>; itemToString?: (item: Item) => string | null; onChange?: (selectedItem: Item) => void; onInputValueChange?: (inputValue: string) => void; } interface InputAutocompleteState { inputValue?: string; } export declare class InputAutocomplete extends Component, InputAutocompleteState> { static defaultProps: { inputProps: {}; defaultInputValue: string; }; static Item: typeof ResultsItem; private cacheSelectedItem; private userInputtedValue; private results; state: { inputValue: string | undefined; }; downshiftStateReducer: DownshiftProps['stateReducer']; setResults: (results: ReactComponentElement[]) => void; handleChange: DownshiftProps['onChange']; handleInputValueChange: DownshiftProps['onInputValueChange']; handleItemToString: DownshiftProps['itemToString']; onUserAction: DownshiftProps['onUserAction']; renderResults: (inputValue: string | null | undefined, getItemProps: PropGetters['getItemProps'], highlightedIndex: number | null, selectedItem: Item) => ReactElement | null; renderDownshift: ChildrenFunction; render(): ReactElement; } export {}; //# sourceMappingURL=index.d.ts.map