import * as React from "react"; import { ViewProps } from "../View"; interface Options { label: string; value: any; [key: string]: any; } interface AutocompleteProps extends ViewProps { lookupMethod: (evt: any) => void; options: Options[]; onSelectOption: (evt: any) => void; defaultText?: string; defaultSelected?: boolean; optionRenderer?: (option: Options) => React.ReactNode; optionFormatter?: (option: any) => Options; showStatus?: boolean; statusRenderer?: () => React.ReactNode; } /** * A generic autocomplete component. For a realistic implementation, see https://code.go1.com.au/apps/search-provider/blob/GO1P-21911/src/search-provider/components/LocationFilter/index.tsx */ declare class Autocomplete extends React.Component { constructor(props: any); handleOnChange: (event: any) => void; handleOnClick: () => void; handleOnBlur: () => void; selectOption: (selection: any) => () => void; clear: () => void; getBorderColor(colors: any): any; render(): JSX.Element; } export default Autocomplete;