import { type Getter } from "svelte-toolbelt"; export declare class SvelteResizeObserver { #private; /** * `onResize` runs a frame after the report, so its state writes can't resize observed nodes * mid-delivery. Layout reads belong in `measure`, which runs in the report while layout is * clean; in the frame, the DOM may have changed again and reading forces a layout. * `measure` runs inside the shared delivery loop, so it must not throw: a throw would stop * delivery to every later subscriber in that window. */ constructor(node: Getter, onResize: () => void, measure?: () => void); handler(): (() => void) | undefined; }