export declare const isDomRectEqual: (a: DOMRect, b: DOMRect) => boolean; /** * Observes the bounding client box rectangle of the given element for changes. * * This solution only works for 2 scenarios, though could be updated to support more * (e.g. via polling). * * MutationObserver will only pick up changes to bounds if they are specified via fixed * style rules in the element's attribtues. * * ResizeObserver will pick up all changes to an element's width and height but will not capture * any changes to position. * * @param element The element to observe the bounding box for (i.e. position, width, height) * @param onChange Called every time the bounding box changes. * @returns Function which disposes the observers when invoked. * @ignore */ export declare const observeBounds: (element: Element, onChange: (bounds: DOMRect) => Promise | void) => (() => void);