import { SelectFieldOption } from '../../beta/components/SelectField/types';
import { NormalizedPinnedSection } from './usePinnedOptions';
type UseToggleSelectionParams = {
    options: SelectFieldOption[];
    pinnedSections: NormalizedPinnedSection[];
    selectedOptions: SelectFieldOption[];
    onSelectedOptionsChange: (options: SelectFieldOption[]) => void;
};
/**
 * Shared multi-select toggle logic: computes allPinnedOptions and provides
 * handleItemClick to add/remove an option from the selection.
 * Used by both useComboMultiple and useSelectModeMultiple.
 */
export declare const useToggleSelection: ({ options, pinnedSections, selectedOptions, onSelectedOptionsChange, }: UseToggleSelectionParams) => {
    handleItemClick: (option: {
        id: string | number;
        label: string;
    }) => void;
    allPinnedOptions: SelectFieldOption[];
};
export {};
