import { Coords } from "./types"; /** * This util is used to get the "true" `element.getBoundingClientRect()` that * ensures that transitions using tarnsforms don't mess up the sizing so that * position calculations are easier to do. * * @param element The element to get a rect for. * @param coords An optional object of coordinates to apply to the positioning * styles. This should be used when the coords might resize the element since it * needs to try to fit within the viewport. * @return either a DOMRect or ClientRect for the element * @private */ export default function getElementRect(element: HTMLElement, coords?: Coords): DOMRect | ClientRect;