import { type RefObject } from 'react'; /** * Element size dimensions */ export type ElementSize = { width: number; height: number; }; /** * Hook that tracks the size of an element * * @template T - The type of the HTML element * @returns Tuple of [ref, size] * * @example * ```tsx * const Component = () => { * const [ref, { width, height }] = useElementSize(); * return
Size: {width}x{height}
; * }; * ``` */ export declare function useElementSize(): [RefObject, ElementSize]; //# sourceMappingURL=useElementSize.d.ts.map