import type { Path, LegacySmartSelection } from "smartrte-core/legacy"; export declare const isEditorOnlyElement: (node: Element) => boolean; /** Returns the semantic model path for a DOM element at the adapter boundary. */ export declare const pathForDomElement: (element: Element, editor: HTMLElement) => Path | null; /** Converts browser selection into a core selection without exposing editor UI nodes. */ export declare const selectionFromDom: (editor: HTMLElement, selection: Selection | null) => LegacySmartSelection | null; /** Restores a text selection from core paths after the editor DOM is rebuilt. */ export declare const restoreSelectionToDom: (editor: HTMLElement, smartSelection: LegacySmartSelection) => boolean;