/** * resizeObserverService.ts */ /** * Reads sizes and may return a function that writes to the DOM. Every read * runs before any write, so a write never makes the next read lay out again. */ type ResizeCallback = () => void | (() => void); /** * Register an element to the SINGLE global observer. The observer reports a * newly observed element once, after its first layout, so subscribing is also * how a subscriber gets its first measurement. */ export declare const subscribe: (el: Element, callback: ResizeCallback) => () => void; export {};