import { Dimensions } from '../types'; /** * Hook to listen for a ref element's resize events being triggered. When resized, * it sets state to an object of {width: number, height: number} indicating the contentRect * size of the element at the new resize. * * @param containerRef - Ref element to listen for resize events on * @returns - Size object with width and height attributes */ export default function useSize(containerRef: React.MutableRefObject, shouldResizeCanvasToContainer?: boolean): Dimensions;