import { RefObject } from 'react'; /** * Subscribes to `selectionchange` while editing a formula so components that * derive UI from caret position (e.g. nested function hints) re-render when * the user only moves the caret without changing React state. * * `onAfterCaretMove` runs after the bump (e.g. refresh `formulaRangeHighlight` * — `input` does not fire on caret-only clicks). */ export declare function useRerenderOnFormulaCaret(editorRef: RefObject, editSessionActive: boolean, onAfterCaretMove?: () => void): void;