export declare function moveToEnd(obj: HTMLDivElement): void;
export declare function selectTextContent(ele: HTMLElement): void;
export declare function selectTextContentCross(sEle: HTMLElement, eEle: HTMLElement): void;
/**
* Flat character offset (normalized newlines) of the selection **focus** within `element`.
* Use for insert position when opening link UI so appended text goes where the caret was.
*/
export declare function getFocusCharacterOffset(element: HTMLElement): number | null;
/** Returns character offsets of the current selection within the element, or null if collapsed/outside. */
export declare function getSelectionCharacterOffsets(element: Node): {
start: number;
end: number;
} | null;
/** Sets the selection in the element to the character range [start, end] and focuses it. */
export declare function setSelectionByCharacterOffset(element: HTMLDivElement, start: number, end: number): void;
/**
* Returns the bounding client rects for a character range in the element.
* Does not change the current selection. Used to draw a persistent highlight
* (e.g. when the link modal is open and focus moved away from the input).
*/
export declare function getRangeRectsByCharacterOffset(element: HTMLDivElement, start: number, end: number): DOMRect[];