import { type MultipleSelectBoxOption, type AllowedValueTypes } from '../MultipleSelectBox.types'; type UseApplyControlsProps = Record> = { /** * All currently available options (flattened). Used to look up full option objects * when building the temporaryOptionsMap. */ options: MultipleSelectBoxOption[]; /** * Callback function called when values are applied. * Receives full option objects so that options selected from previous search queries * are preserved even when they are no longer visible in the current results. */ onValuesChange: (options: MultipleSelectBoxOption[]) => void; /** * Handler function to close the option panel */ closeOptionPanel: () => void; }; /** * Hook to manage the apply controls functionality * Manages temporary selection state and notifies parent component when confirmed */ export declare function useApplyControls = Record>({ options, onValuesChange, closeOptionPanel }: UseApplyControlsProps): { temporaryValues: Set["value"]>; updateTemporaryValues: (values: MultipleSelectBoxOption["value"][]) => void; openWithSelectedOptions: (selectedOptions: MultipleSelectBoxOption[]) => void; initializeTemporaryValues: () => void; handleCancelButtonClick: () => void; handleApplyButtonClick: () => void; }; export {};