import { default as React } from 'react'; import { Root } from 'react-dom/client'; /** * Renders content into a portal root and handles failures by rendering a fallback. * @param {object} params - Hook params. * @param {Root | null} params.root - React root instance. * @param {HTMLElement | null} params.portalElement - Portal element. * @param {boolean} params.isPortalReady - Whether the portal is ready. * @param {boolean} params.isClosed - Whether the drawer is fully closed. * @param {React.ReactNode} params.content - Content to render. * @param {React.ReactNode} params.fallback - Fallback content on render errors. * @returns {void} Nothing. */ export declare const usePortalRenderer: ({ content, fallback, isClosed, isPortalReady, portalElement, root, }: { root: Root | null; portalElement: HTMLElement | null; isPortalReady: boolean; isClosed: boolean; content: React.ReactNode; fallback: React.ReactNode; }) => void; export default usePortalRenderer; //# sourceMappingURL=usePortalRenderer.d.ts.map