import type { FiltersMap } from '@wix/bex-core';
import type { CellInteractionState } from '../../state/EditableTable/CellInteractionState';
/**
 * Clears cell focus when the user clicks outside the table container.
 *
 * Skips clearFocus() while isEditing=true so that portaled editors (date
 * picker, select dropdown, media manager) can take focus without causing the
 * cell to lose its editing state. Cell types that open external UI are
 * responsible for calling onStartEdit() before the modal opens (which sets
 * isEditing=true) and onCancel()/onCommit() when it closes.
 */
export declare function useClearFocusOnBlur<T, F extends FiltersMap>(cellInteraction: CellInteractionState<T, F>): {
    onFocus: () => void;
    onBlur: (e: React.FocusEvent<HTMLDivElement>) => void;
};
//# sourceMappingURL=useClearFocusOnBlur.d.ts.map