import { RefObject } from 'react';
interface Size {
    width?: number;
    height?: number;
}
type ResizeCallback = (entry?: ResizeObserverEntry) => void;
export declare const useResizeObserver: <T extends HTMLElement>(target: RefObject<T | null> | T | null, onResize?: ResizeCallback) => Size;
export {};
