import type { BlockElement, RegionBase } from 'roosterjs-editor-types'; /** * Collapse nodes within this region to their common ancestor node under this region * @param region The region to collapse nodes in. * @param nodesOrBlockElements Nodes or block elements to collapse. When take BlockElement[] as input, * start node of the first BlockElement and end node of the last BlockElement will be used as the nodes. * All nodes not contained by the given region will be ignored. */ export default function collapseNodesInRegion(region: RegionBase, nodesOrBlockElements: Node[] | BlockElement[]): Node[];