import type { BlockElement } from 'roosterjs-editor-types'; /** * Get the first/last BlockElement of under the root node. * If no suitable BlockElement found, returns null * @param rootNode The root node to get BlockElement from * @param isFirst True to get first BlockElement, false to get last BlockElement */ export default function getFirstLastBlockElement(rootNode: Node, isFirst: boolean): BlockElement | null;