1 | import { useRef, MutableRefObject } from 'react';
|
2 | import { Props, ReactResizeDetectorDimensions } from './ResizeDetector';
|
3 | interface FunctionProps extends Props {
|
4 | targetRef?: ReturnType<typeof useRef>;
|
5 | }
|
6 | declare function useResizeDetector<T = any>(props?: FunctionProps): UseResizeDetectorReturn<T>;
|
7 | export default useResizeDetector;
|
8 | export interface UseResizeDetectorReturn<T> extends ReactResizeDetectorDimensions {
|
9 | ref: MutableRefObject<T | null>;
|
10 | }
|