import type { ReactNode } from "react"; /** * Render `children` into `document.body` (via a portal) when `active`, else * in place. * * The point tools' mobile readout is a `position: fixed` bottom sheet. When * the tool overlay is mounted inside the page-view substrate, it lives under * react-zoom-pan-pinch's CSS `transform`, and a transformed ancestor becomes * the containing block for `position: fixed` descendants — so the sheet * anchors to the (scaled, scrolled) page instead of the viewport and renders * off-screen. Portaling it to `document.body` escapes the transform so * `fixed` resolves against the viewport again. On desktop the readout is a * click-anchored `position: absolute` tooltip that *should* stay with the * page, so it's left in place (`active={false}`). */ export declare function MaybePortal({ active, children }: { active: boolean; children: ReactNode; }): import("react").JSX.Element; //# sourceMappingURL=MaybePortal.d.ts.map