import React from "react"; import { ComboboxOption, ComboboxProps } from "../types.js"; type SelectedOptionsContextValue = { addSelectedOption: (option: ComboboxOption) => void; isMultiSelect?: boolean; removeSelectedOption: (option: ComboboxOption) => void; prevSelectedOptions?: ComboboxOption[]; selectedOptions: ComboboxOption[]; maxSelected: { limit: number | undefined; isLimitReached: boolean; }; setSelectedOptions: (any: any) => void; toggleOption: (option: ComboboxOption, event: React.KeyboardEvent | React.PointerEvent) => void; }; declare const useSelectedOptionsContext: (strict?: S | undefined) => S extends true ? SelectedOptionsContextValue : SelectedOptionsContextValue | undefined; declare const SelectedOptionsProvider: ({ children, value, }: { children: any; value: Pick & { options: ComboboxOption[]; selectedOptions?: ComboboxOption[]; }; }) => React.JSX.Element; export { SelectedOptionsProvider, useSelectedOptionsContext };