/** * Resize Observer Registry & Callbacks * * Provides global registry for element sizes and optional callback subscriptions. */ export interface ElementSize { width: number; height: number; } export type ResizeCallback = (size: ElementSize) => void; /** * Get current size for element by ID (sync query) * * @example * const size = getSize('parent-container') * if (size) console.log(`Width: ${size.width}px`) */ export declare function getSize(id: string): ElementSize | undefined; /** * Subscribe to size changes for element by ID * Returns unsubscribe function * * @example * const unsubscribe = onResize('parent', ({ width, height }) => { * console.log(`Resized to ${width}x${height}`) * }) * // Later: unsubscribe() */ export declare function onResize(id: string, callback: ResizeCallback): () => void; /** * Get all registered sizes (for debugging/window API) */ export declare function getAllSizes(): Record; /** * Internal: Update size in registry and notify callbacks */ export declare function updateSize(id: string, width: number, height: number): void; /** * Internal: Remove size from registry and cleanup callbacks */ export declare function removeSize(id: string): void; //# sourceMappingURL=resize-observer.d.ts.map