import { default as React } from 'react'; export type { TableAutocompleteItemProps } from './Item'; export type TableAutocompleteItem = React.ReactElement; export interface TableAutocompleteProps { /** Input label for accessibility */ label: string; /** * TableAutocomplete.Item children * Children must be an array of TableAutocomplete.Item components. */ children: TableAutocompleteItem[]; /** Selection change event callback - called with value of selected item */ onChange?: (value: string) => void; /** Input change event callback */ onInputChange?: (value: string) => void; /** Optional custom filter function for items. Signature: (items, inputValue) => filteredItems[] */ filterItemsByInput?: (items: TableAutocompleteItem[], inputValue: string) => TableAutocompleteItem[]; /** Optional pinned footer content; use for action buttons */ footerContent?: React.ReactNode; /** Input placeholder text */ placeholder?: string; /** Whether the input is disabled */ isDisabled?: boolean; /** Optional controlled input value */ inputValue?: string; /** Whether the input has an error */ hasError?: boolean; } export declare const itemToString: (item: TableAutocompleteItem | null) => any; export declare const filterItems: (items: TableAutocompleteItem[], inputValue: string) => TableAutocompleteItem[]; /** * A simplified Combobox component for table inline editing. * Useful for inline editing of table items where we want to * provide an autocomplete of possible values with a native input. * * Allows single selection only. */ declare const TableAutocomplete: { ({ label, children, onChange, onInputChange, filterItemsByInput, footerContent, placeholder, isDisabled, hasError, inputValue, }: TableAutocompleteProps): React.JSX.Element; Item: React.FC; }; export default TableAutocomplete; //# sourceMappingURL=index.d.ts.map