import React, { type ReactNode } from 'react'; /** * Resolve the container to render portalled UI into: the shadow container when * shadow mode is on, `document.body` otherwise, null during SSR (caller must * guard). Anything new that portals resolves its container here rather than * hardcoding `document.body`, or it escapes the boundary in shadow mode. */ export declare function useShadowContainer(): HTMLElement | null; /** * Resolve the DOM root for id lookups of nodes that live inside the portal * (modal bottom bars, dropdown scroll targets): the shadow root when shadow * mode is on, `document` otherwise. `document.getElementById` cannot see into * a shadow root, so portal-internal lookups must go through this. */ export declare function useRootNode(): Document | ShadowRoot; interface FunkitShadowHostProviderProps { themeId: string; selector: string; useStyleRefForTheme: boolean; children: ReactNode; } /** * Overlay-only shadow mode, activated entirely by the `enable-shadow-dom` * Statsig gate — integrators opt in to nothing. When the gate is on, a * body-level open shadow root is mounted and portalled UI (modals, dropdowns) * targets it via the container context, isolating the overlay from host-page * CSS. Inline content and the host app are untouched. Gate off, or the * stylesheet failing to load, means light DOM exactly as before. */ export declare function FunkitShadowHostProvider({ themeId, selector, useStyleRefForTheme, children, }: FunkitShadowHostProviderProps): React.JSX.Element; export {};