/** * Creates a stable `
` DOM element on first * render and returns the same element on every subsequent render. * * The element is created lazily on first access via `useRef`, not via * `useMemo`, so StrictMode / cache-eviction cannot cause it to be recreated * and break referential stability for callers that capture it * (e.g. `createPortal`). * * @internal */ export declare function useStableHost(): HTMLDivElement; /** * Places a host node from `useStableHost` into the DOM at this component's * mount point. Uses `appendChild` in a `useLayoutEffect` so the host node is * moved (not cloned) when `TeleportTarget` remounts in a different position, * preserving the React subtree portaled into the host. * * Together with `createPortal(children, host)` this lets a subtree survive the * layout switching between split / overlay / collapsed / drawer modes: React * never unmounts it, because only the DOM node moves. * * @internal */ export declare function TeleportTarget({ host }: { host: HTMLDivElement; }): import("react").JSX.Element; //# sourceMappingURL=teleport.d.ts.map