import { Root } from 'react-dom/client'; /** * Ensures the portal root is unmounted and its container is cleaned up on unmount. * @param {object} params - Hook params. * @param {Root | null} params.root - React root. * @param {() => void} params.cleanupPortal - Cleanup callback from `usePortal`. * @returns {void} Nothing. */ export declare const usePortalCleanupOnUnmount: ({ cleanupPortal, root, }: { root: Root | null; cleanupPortal: () => void; }) => void; export default usePortalCleanupOnUnmount; //# sourceMappingURL=usePortalCleanupOnUnmount.d.ts.map