import { FloatHorizontalRange } from "../../view/renderingContext.js"; import { DomReadingContext } from "./domReadingContext.js"; export declare class RangeUtil { /** * Reusing the same range here * because IE is buggy and constantly freezes when using a large number * of ranges and calling .detach on them */ private static _handyReadyRange; private static _createRange; private static _detachRange; private static _readClientRects; private static _mergeAdjacentRanges; private static _createHorizontalRangesFromClientRects; /** * Reads the horizontal range occupied by a single child element. Unlike a collapsed text * range, this reports the edges of the element's box rather than the edges of its glyphs. */ static readHorizontalRangeForElement(domNode: HTMLElement, childIndex: number, context: DomReadingContext): FloatHorizontalRange | null; static readHorizontalRanges(domNode: HTMLElement, startChildIndex: number, startOffset: number, endChildIndex: number, endOffset: number, context: DomReadingContext): FloatHorizontalRange[] | null; }