import { RefObject, RefCallback } from "react"; export declare type ObservedSize = { width: number | undefined; height: number | undefined; }; export declare type ResizeHandler = (size: ObservedSize) => void; declare type HookResponse = { ref: RefCallback; } & ObservedSize; export declare type ResizeObserverBoxOptions = "border-box" | "content-box" | "device-pixel-content-box"; declare global { interface ResizeObserverEntry { readonly devicePixelContentBoxSize: ReadonlyArray; } } export declare type RoundingFunction = (n: number) => number; declare function useResizeObserver(opts?: { ref?: RefObject | T | null | undefined; onResize?: ResizeHandler; box?: ResizeObserverBoxOptions; round?: RoundingFunction; }): HookResponse; export default useResizeObserver;