import React from 'react'; import { GetInputPropsOptions } from 'downshift'; export type AutoCompleteItem = { id: string; subtitleText: string; titleText: string; value: string; extraData?: T; }; export type AutoCompleteProps = { data: AutoCompleteItem[]; customEmptyState?: React.ReactNode; emptyState?: { titleText: string; descriptionText: string; testID?: string; }; listFooterComponent?: () => React.ReactNode; loading?: boolean; loadingTestID?: string; noResults?: boolean; onInputValueChange: (inputValue: string) => void; onOuterPress?: () => void; onSelect: (item: AutoCompleteItem | null) => void; open: boolean; renderInput: (options: GetInputPropsOptions) => React.ReactNode; selectedItem?: AutoCompleteItem; testID?: string; inputValue: string; }; declare function AutoComplete({ data, customEmptyState, emptyState, listFooterComponent, loading, loadingTestID, onInputValueChange, onOuterPress, onSelect, open, renderInput, selectedItem, testID, inputValue, }: AutoCompleteProps): React.JSX.Element; export default AutoComplete;