import { EnsureShadowMountOptions } from '../../types/shadow/EnsureShadowMountOptions'; import { ShadowMount } from '../../types/shadow/ShadowMount'; /** * Ensures a ShadowRoot mount exists on the host element for a widget. * * Creates stable React-mount and portal-container nodes, injects the widget's CSS * into the shadow root only (never into the document), and configures an Emotion * cache scoped to the shadow root. All internal ids are namespaced by `cacheKey` * so editor and runtime mounts on the same host never collide. * @param {HTMLElement} host - The host element to attach the shadow root to. * @param {EnsureShadowMountOptions} options - The cache key and the widget's CSS text. * @returns {ShadowMount} The shadow root, mount nodes and the scoped Emotion cache. */ export declare const ensureShadowMount: (host: HTMLElement, { cacheKey, cssText }: EnsureShadowMountOptions) => ShadowMount; //# sourceMappingURL=ensureShadowMount.d.ts.map