import * as React from "react"; export interface Item { value: string; label: React.ReactNode; disabled?: boolean; } export interface TypeaheadProps { /** * items to render into the menu */ items: Item[]; /** * the text input element */ textField: React.ReactElement; /** * what is displayed when there are no items */ menuEmptyState?: React.ReactElement; /** * maximum height the menu can grow to */ menuMaxHeight?: number; /** * whether more than one item can be selected */ multiSelect?: boolean; /** * callback for when an item is selected */ onSelect?: (selectedItems: string[], lastSelectedItem?: string) => void; /** * which DOM node the dropdown menu will attach to */ overlayRoot?: HTMLElement; /** * an array of item values that are selected */ selectedItems?: string[]; /** * whether the menu stays open on select */ keepOpenOnSelect?: boolean; /** * whether the selected item's value is set as the input's value */ resetInputOnSelect?: boolean; /** * Whether the dropdown node should be portalled to document.body, or open in it's parent DOM node */ disablePortal?: boolean; } declare const _default: ({ disablePortal, items, menuEmptyState, menuMaxHeight, overlayRoot, textField, selectedItems, multiSelect, keepOpenOnSelect, resetInputOnSelect, onSelect }: TypeaheadProps) => JSX.Element; export default _default;