1 |
|
2 | import debounce from 'lodash/debounce';
|
3 | import throttle from 'lodash/throttle';
|
4 | import { Props, ReactResizeDetectorDimensions } from './ResizeDetector';
|
5 | export declare type patchResizeHandlerType = ReturnType<typeof debounce> | ReturnType<typeof throttle> | ResizeObserverCallback;
|
6 | export declare const patchResizeHandler: (resizeCallback: ResizeObserverCallback, refreshMode: Props['refreshMode'], refreshRate: Props['refreshRate'], refreshOptions: Props['refreshOptions']) => patchResizeHandlerType;
|
7 | export declare const isFunction: (fn: any) => boolean;
|
8 | export declare const isSSR: () => boolean;
|
9 | export declare const isDOMElement: (element: any) => boolean;
|
10 | export declare const createNotifier: (onResize: Props['onResize'], setSize: React.Dispatch<React.SetStateAction<ReactResizeDetectorDimensions>>, handleWidth: boolean, handleHeight: boolean) => ({ width, height }: ReactResizeDetectorDimensions) => void;
|