import React from "react";
import type { ComboboxOption, ComboboxProps } from "../types";
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: <S extends boolean = true>(strict?: S | undefined, errorMessageOverride?: string) => S extends true ? SelectedOptionsContextValue : SelectedOptionsContextValue | undefined;
declare const SelectedOptionsProvider: ({ children, value, }: {
    children: any;
    value: Pick<ComboboxProps, "allowNewValues" | "isMultiSelect" | "onToggleSelected" | "maxSelected"> & {
        options: ComboboxOption[];
        selectedOptions?: ComboboxOption[];
    };
}) => React.JSX.Element;
export { SelectedOptionsProvider, useSelectedOptionsContext };
