import { type MutableRefObject } from 'react';
/**
 * given a reference to an actual HTML element, gives us access to its size
 * even through resizes and zoom
 * @param {MutableRefObject<HTMLElement>} ref
 * @returns {Array} tuple - return tuple
 * @returns {DOMRect | null} tuple[0]
 *          DOMRect object with the sizes of the passed ref, or null if no ref
 * @returns {() => void} tuple[1]
 *          Manual refresh function, to call if the size needs to be recomputed
 *          for whatever reason (e.g. content changed)
 */
declare function useSize(ref: MutableRefObject<Element | null>): [rect: DOMRect | undefined, onResize: () => void];
export default useSize;
//# sourceMappingURL=useSize.d.ts.map