import type { NodePosition } from 'roosterjs-editor-types'; /** * * @param root the contentDiv of the ditor * @param nodeToInsert the node to be inserted * @param position the position of the node to be inserted * @param range the range current or cached range of the editor * @returns the adjusted position of the inserted node */ export default function adjustInsertPositionBySteps(root: HTMLElement, nodeToInsert: Node, position: NodePosition, range: Range): NodePosition;