import { default as React, ReactNode, FocusEventHandler } from 'react'; import { Option, OptionGroup } from './option'; import { Placement } from '../../utils'; export type AutocompleteMultipleProps = { /** * className for the element */ className?: string; /** * Maximum height of the dropdown menu. */ dropdownMenuContentMaxHeight?: string; /** * Whether the AutocompleteMultiple should fit its parents or content. * @default content */ fit?: 'content' | 'parent'; /** * Whether the AutocompleteMultiple is disabled. */ isDisabled?: boolean; /** * Whether the AutocompleteMultiple is invalid. */ isInvalid?: boolean; /** * Whether the AutocompleteMultiple is loading. */ isLoading?: boolean; /** * The name of the Combobox, used when submitting an HTML form. */ name?: string; /** * The current value. */ values: T[]; /** * The list of ComboBox options. */ options: (T | OptionGroup)[]; /** * Temporary text that occupies the Combobox when it is empty. */ placeholder?: string; /** * Whether the combobox should show a clear button. * @default false */ showClearSelectionButton?: boolean; /** * Translations for the selected states of the AutocompleteMultiple. */ translations: { selectAll?: string; selected: string; }; /** * Handler that is called when the input changes. */ onSearch(value: string | undefined): void | Promise; /** * Handler that is called when a option is selected. */ onSelect(values: T[]): void; /** * Handler that is called when the element receives focus. */ onFocus?: FocusEventHandler; /** * Handler that is called when the element loses focus. */ onBlur?: FocusEventHandler; /** * Function to render option group. */ renderOptionGroup?(optionGroup: OptionGroup): ReactNode; /** * Function to render when no options are available */ renderNoOptions?(rawValue: string): ReactNode; /** * Placement the menu will render relative to the field */ placement?: Placement; }; export declare const AutocompleteMultiple: ({ className, isDisabled, isInvalid, isLoading, fit, name, values, options, placeholder, showClearSelectionButton, translations, onSearch, onSelect, onFocus, onBlur, renderNoOptions, renderOptionGroup, placement, ...rest }: AutocompleteMultipleProps) => React.JSX.Element; //# sourceMappingURL=AutocompleteMultiple.d.ts.map