import { default as React, ReactNode } from 'react'; import { AutocompleteProps } from '../Autocomplete'; import { Option } from '../option'; export declare const addOptionItemKey = "add-option-item"; export type Props = AutocompleteProps & { /** * Function to render the add option item. It should always return a DropdownItem component. */ renderAddOption(rawValue: string): ReactNode; /** * Handler that is called when an option has been added. */ onAddOption(newOptionLabel: string): T | Promise; }; export declare const AutocompleteWithAddOption: ({ name, value, options, placeholder, isLoading, showClearSelectionButton, renderPrefix, renderOption, renderOptionGroup, renderAddOption, renderNoOptions, onAddOption, onSearch, onSelect, ...comboboxProps }: Props) => React.JSX.Element; //# sourceMappingURL=AutocompleteWithAddOption.d.ts.map