import { Editor } from 'slate'; /** * Hook that provides a helper function to preserve selection when toolbar actions are executed. * This prevents losing text selection when interacting with toolbar buttons and menus. * * TODO: This works for toggle buttons, but not for menus. * * @param editor - The Slate editor instance * @returns A function that wraps actions to preserve selection and focus */ export declare const usePreservedSelection: (editor: Editor) => (action: () => void) => () => void;