import React from 'react'; import { ComboboxValue } from './ComboboxOption'; type ComboboxContext = { autocomplete: 'none' | 'manual' | 'automatic'; inputValue: ComboboxValue; formValues: ComboboxValue[]; selectedValues: ComboboxValue[]; removeOptionLabels: string[]; setRemoveOptionLabels: React.Dispatch>; matchingOptions: Map; setMatchingOptions: React.Dispatch>>; setFormValues: React.Dispatch>; matches: ((value: T) => boolean) | boolean; }; export type ComboboxOptionState = { selected: boolean; value: ComboboxValue; displayValue: ComboboxValue; }; type ComboboxProvider = { children: React.ReactNode; matches: ((inputValue: string, value: string) => boolean) | boolean; } & Omit; declare const ComboboxContext: React.Context; declare function ComboboxProvider({ autocomplete, inputValue, formValues, selectedValues, removeOptionLabels, setRemoveOptionLabels, matches, matchingOptions, setMatchingOptions, setFormValues, children }: ComboboxProvider): React.JSX.Element; declare function useComboboxContext(): ComboboxContext; export { ComboboxProvider, useComboboxContext };