import { useRef, MutableRefObject } from 'react'; import { Props } from './ResizeDetector'; interface FunctionProps extends Props { targetRef?: ReturnType; } declare function useResizeDetector(props?: FunctionProps): { height?: number; width?: number; ref: MutableRefObject; }; export default useResizeDetector;