import { ITag, IBasePickerStyleProps, IBasePickerStyles, ICalloutProps, IPickerItemProps, IStyleFunction } from 'office-ui-fabric-react'; export interface IAutocompleteSearchProps { /** * Tag Picker Styles */ tagPickerStyles?: IStyleFunction | Partial; /** * Callout props */ calloutProps?: ICalloutProps; /** * Max number of autocomplete items to display (default: 8) */ itemLimit?: number; /** * Callback to get the items which match the given filter */ resolveSuggestions?: resolveSuggestionsType; /** * Given an item, return the string value */ getTextFromItem?: (item: ITag, currentValue?: string) => string; /** * Debounce limit in ms (default: 500) */ resolveDelay?: number; /** * Text to display in drop-down when no results are found */ noResultsFoundText?: string; /** * Aria label on input */ inputAriaLabel?: string; /** * Aria labelled-by Id */ inputAriaLabelledById?: string; /** * Should the user be allowed to select the same entry multiple times? * (Default: true) */ allowDuplicateSelections: boolean; /** * Placeholder */ placeholder?: string; /** * University specific list of majors */ suggestions?: ITag[]; /** * The default selected items */ defaultSelectedItems?: ITag[]; /** * The selected items. Only use if the calling component will manage the state instead of this componment */ selectedItems?: ITag[]; /** * Render a selected item */ onRenderItem?: (props: IPickerItemProps) => any; /** * On Change */ onChange?: (items?: ITag[]) => void; } export declare type filterDuplicatesFromOptionsType = (options: ITag[], items: ITag[]) => ITag[]; export declare type resolveSuggestionsType = (filter: string, selectedItems?: ITag[] | undefined) => ITag[];