import { default as React } from 'react'; /** * Props for the `PortalProvider` component. */ export type PortalProviderProps = { /** The children elements to be wrapped by the provider. */ children: React.ReactNode; /** A reference to the container element where portals will be rendered. */ containerRef: React.RefObject; }; /** * A provider component that supplies a `createPortal` function and container reference to its children. * This allows components to create portals within the specified container. * * This provider is compatible with Next.js and will not throw errors during the first render on the server * because it uses fallback functionality when the container is not available. This ensures that the server-side * render process is not disrupted by missing DOM elements. * * @param {PortalProviderProps} props - The props for the `PortalProvider` component. * @returns {React.ReactElement} - The provider wrapping the children. */ export declare const PortalProvider: React.FC;