import { RefObject } from 'react';
export type SizeProps = {
    width?: number;
    height?: number;
};
/**
 * Easily gets the width and height of referenced component
 * Example:
 *
 ```
   const buttonWrapperEl = useRef(null);
   const [width, height] = useElementsSize(buttonWrapperEl);
   <button ref={ref}></button>
   <div style={width}></div>
 ```
 * @param {object} ref - The `ref` to measure
 */
export declare function useElementsSize(ref: RefObject<HTMLElement>, checkOnRerender?: boolean): (number | undefined)[];
