/** * the HighlightRange Class(HRange) * It's a special object called HRange in Highlighter, * represents for a piece of chosen dom */ import HighlightSource from '../source/index'; import type { DomNode, HookMap, SelectionDirection } from '../../types'; import type Hook from '../../util/hook'; declare class HighlightRange { static removeDomRange: () => void; start: DomNode; end: DomNode; text: string; id: string; frozen: boolean; direction: SelectionDirection; constructor(start: DomNode, end: DomNode, text: string, id: string, direction: SelectionDirection, frozen?: boolean); static fromSelection($root: Node, idHook: Hook): HighlightRange; serialize($root: Document | HTMLElement, hooks: HookMap): HighlightSource; } export default HighlightRange;