import { default as React } from 'react'; export type AutoCompleteItem = React.ReactElement; export interface AutoCompleteProps { /** Input label */ label: string; /** ComboboxModal.Item children */ items: AutoCompleteItem[]; selectedItem: AutoCompleteItem | null; /** Selection change event callback */ onChange?: (item: AutoCompleteItem) => void; /** Input change event callback */ onInputChange?: (e: string) => void; /** Optional pinned footer content; use for action buttons */ footerContent?: React.ReactNode; } export declare const itemToString: (item: AutoCompleteItem) => any; export declare const filterItems: (items: AutoCompleteItem[], inputValue: string) => AutoCompleteItem[]; /** * A simplified Combobox component that renders in a Popup. * Useful for inline editing of things like table items where we want to * provide an autocomplete of possible values. * * Allows single selection only. The selected value is controlled, allowing the selection to render in the trigger. * trigger area. */ declare const AutoComplete: ({ label, items: allItems, selectedItem: selectedItemProp, onChange, onInputChange, footerContent, }: AutoCompleteProps) => React.JSX.Element; export default AutoComplete; //# sourceMappingURL=AutoComplete.d.ts.map