import type { Rect } from 'roosterjs-editor-types'; /** * Get the intersected Rect of elements provided * * @example * The result of the following Elements Rects would be: { top: Element2.top, bottom: Element1.bottom, left: Element2.left, right: Element2.right } +-------------------------+ | Element 1 | | +-----------------+ | | | Element2 | | | | | | | | | | +-------------------------+ | | +-----------------+ * @param elements Elements to use. * @param additionalRects additional rects to use * @returns If the Rect is valid return the rect, if not, return null. */ export default function getIntersectedRect(elements: HTMLElement[], additionalRects?: Rect[]): Rect | null;