/** * some dom operations about HighlightRange */ import type { DomMeta, DomNode } from '../../types'; export declare const getDomMeta: ($node: HTMLElement | Text, offset: number, $root: Document | HTMLElement) => DomMeta; /** * an element boundary (e.g. the end of a range is
|text
) can't be serialized, * so convert it to the equivalent boundary of its closest text node */ export declare const formatDomNode: (n: DomNode, isStart: boolean) => DomNode;