import { type ParserConfig } from './parser.js'; import type { DocFragment, Position, PositionRange, SelectionSnapshot } from '../doc/types.js'; export { defaultIsBlockNode } from './default.js'; /** * @internal */ export declare const getCurrentDocument: (node: Element) => Document; /** * @internal */ export declare const getDOMSelection: (element: Element) => Selection; /** * @internal */ export declare const getSelectionRangeInEditor: (selection: Selection, root: Element) => Range | void; /** * @internal */ export declare const setSelectionToDOM: (document: Document, root: Element, [anchor, focus]: SelectionSnapshot, config: ParserConfig) => boolean; /** * @internal */ export declare const serializeRange: (root: Element, config: ParserConfig, { startOffset, startContainer, endOffset, endContainer }: AbstractRange) => PositionRange; /** * @internal */ export declare const getEmptySelectionSnapshot: () => SelectionSnapshot; /** * @internal */ export declare const takeSelectionSnapshot: (root: Element, config: ParserConfig) => SelectionSnapshot; /** * @internal */ export declare const readDom: (root: Node, config: ParserConfig, serializeVoid: (node: Element) => Record | void, option?: { _end: [Node, number]; _start: [Node, number] | undefined; }) => DocFragment; /** * @internal */ export declare const getPointedCaretPosition: (document: Document, root: Element, { clientX, clientY }: MouseEvent, config: ParserConfig) => Position | void;