import { createRoot as origCreateRoot } from "react-dom/client"; /** * Behaves like `createRoot` but instead of creating a new root, * it puts the children in returned `portals`, which binds them to their context. * * Usage example: * ``` * const { createRoot, portals } = useInTreeCreateRoot(); * * const root = createRoot(document.body); * root.render(); * * return <>{portals} * ``` */ export declare function useInTreeCreateRoot(): { createRoot: typeof origCreateRoot; portals: import("react").ReactPortal[]; };