export declare type IResizeSubscriber = () => void; export declare type ResizeCallback = (rect: DOMRect) => void | Promise; export interface IOnSizeChangedOptions { debounceMs: number; } /** * Determines whether the resize observer API is available. */ export declare const CAN_USE_RESIZE_OBSERVER: boolean; /** * Invokes the given callback for all ResizeEntries that are triggered when the size of the target element changes. * @param $elem * @param cb * @param options */ export declare function onSizeChanged($elem: Element, cb: ResizeCallback, { debounceMs }?: Partial): IResizeSubscriber;