import { type MaybeRef } from './_shared'; import type { Ref } from '@stacksjs/stx'; /** * Reactive element dimensions. * Uses ResizeObserver to track the width and height of an element. * * @param target - The element to observe (or a Ref to one) * @param options - Configuration with optional initial size * @returns Reactive width, height, and a stop function */ export declare function useElementSize(target: MaybeRef, options?: UseElementSizeOptions): UseElementSizeReturn; export declare interface UseElementSizeOptions { initialSize?: { width: number, height: number } } export declare interface UseElementSizeReturn { width: Ref height: Ref stop: () => void }