import { RefObject } from 'react'; type ElementSize = { height: number; width: number; }; type ElementSizeOpts = { trackWindowResize?: boolean; }; declare function useElementSize(ref: RefObject, opts?: ElementSizeOpts): ElementSize | null; declare function useScrollOffset(ref: RefObject): number; export { useElementSize, useScrollOffset };