import React from 'react'; import { CollectionState, Filter, FiltersMap, KeyedItem } from '@wix/bex-core'; import { AutoCompleteProps, DropdownLayoutOption } from '@wix/design-system'; import { ListItem } from '../../hooks'; import { SingleSelectFilterBaseProps } from '../SingleSelectFilterBase'; import { FilterProps } from '../../model'; export type KeyedItemOption = DropdownLayoutOption & { keyedItem: KeyedItem; }; export interface CollectionAutoCompleteProps extends Omit, FilterProps { /** * [ArrayFilter](./?path=/story/features-filter-factories--arrayfilter) state object */ filter: Filter; /** * Function that returns a [ListItemSelectProps](https://www.docs.wixdesignsystem.com/?path=/story/components-form-dropdownlistitems--listitemselect) extended by `{section?: string}`. */ renderItem?: (item: V, index: number) => ListItem; /** * A function that returns [ListItemSectionProps](https://www.docs.wixdesignsystem.com/?path=/story/components-form-dropdownlistitems--listitemsection)
* According to make it works you need return `sectionId` in `renderItem` method.
* ⚠️ Server should return section items sorted by sections in strict order. Otherwise, when using infinite scrolling the behavior of the sections will be unexpected.
* (Optional) */ renderSection?: SingleSelectFilterBaseProps['renderSection']; /** * A collection state object to fetch the dropdown items.
* Typically, a collection created using [useFilterCollection](./?path=/story/features-filter-hooks--usefiltercollection) hook. */ collection: CollectionState; } declare function _CollectionAutoComplete(props: CollectionAutoCompleteProps): React.JSX.Element; export declare const CollectionAutoComplete: typeof _CollectionAutoComplete & { displayName: string; }; export {}; //# sourceMappingURL=CollectionAutoComplete.d.ts.map