/** @packageDocumentation * @module Utilities */ import * as React from "react"; /** Uses ResizeObserver API to notify about element bound changes. * @internal */ export declare function useResizeObserver(onResize?: (width: number, height: number) => void): (instance: Element | null) => void; /** React hook that uses ResizeObserver API to notify about element bound changes. Note: to work similar to ReactResizeDetector * width and height are initialized as undefined and only set during after mount if bounds are non-zero. This implementation properly * handles observing element in pop-out/child windows. * @internal */ export declare function useLayoutResizeObserver(inElement: HTMLElement | null, onResize?: (width?: number, height?: number) => void): (number | undefined)[]; /** Prop the ElementResizeObserver sends to the render function. * @public */ export interface RenderPropsArgs { width?: number; height?: number; } /** ElementResizeObserver provides functionality similar to ReactResizeDetector when a render function is specified. This implementation properly handles * observing element in pop-out/child windows. * @public */ export declare function ElementResizeObserver({ watchedElement, render }: { watchedElement: HTMLElement | null; render: (props: RenderPropsArgs) => JSX.Element; }): JSX.Element; /** ResizableContainerObserver is a component that provides the functionality similar to the ReactResizeDetector option that call a function when * the observed element is resized. This implementation properly handles observing element in pop-out/child windows. If children nodes are defined then * the div added by the component is considered the container whose size will be observed. If no children are provided then the component will report * size changes from its parent container. * @public */ export declare function ResizableContainerObserver({ onResize, children }: { onResize: (width: number, height: number) => void; children?: React.ReactNode; }): JSX.Element; //# sourceMappingURL=useResizeObserver.d.ts.map