/**
 * External dependencies
 */
import type { ReactElement } from 'react';
export type ObservedSize = {
    width: number | null;
    height: number | null;
};
/**
 * Hook which allows to listen to the resize event of any target element when it changes size.
 * _Note: `useResizeObserver` will report `null` sizes until after first render.
 *
 * @example
 *
 * ```js
 * const App = () => {
 * 	const [ resizeListener, sizes ] = useResizeObserver();
 *
 * 	return (
 * 		<div>
 * 			{ resizeListener }
 * 			Your content here
 * 		</div>
 * 	);
 * };
 * ```
 */
export default function useLegacyResizeObserver(): [
    ReactElement,
    ObservedSize
];
//# sourceMappingURL=index.d.ts.map