import { type SiteBridgeToolHandlers } from "@opengeni/sdk/site-bridge-host"; import type { OpenGeniSiteSignInResult, OpenGeniSiteViewer } from "@opengeni/sdk/site"; import { type CSSProperties } from "react"; export { SiteBridgeDocumentLease, SiteBridgeRequestRegistry, handleSiteBridgeRequest, openGeniSiteBridgePortFromBootstrap, siteBridgeError, siteBridgeReadyMessage, } from "@opengeni/sdk/site-bridge-host"; export declare const PUBLISHED_HTML_ARTIFACT_IFRAME_SANDBOX: string; export type PublishedHtmlArtifactFrameProps = { html: string; autoHeight?: boolean; theme?: "light" | "dark"; title: string; className?: string; style?: CSSProperties; toolBridge?: PublishedHtmlArtifactToolBridge; /** * The signed-in member viewing the Site, answered to `site.viewer`. When * omitted the frame does not advertise viewers and the SDK resolves `null`. */ viewer?: OpenGeniSiteViewer; /** * Answer `site.auth.signIn()`. The console viewer is already signed in, so * the default resolves `{ started: false }`. */ onSignIn?: () => Promise | OpenGeniSiteSignInResult; }; /** Host handlers for Site tools and the Site HTTP channel (see `@opengeni/sdk/site-bridge-host`). */ export type PublishedHtmlArtifactToolBridge = SiteBridgeToolHandlers; export declare function publishedHtmlArtifactDocument(html: string, toolBridgeEnabled: boolean): string; /** * Render exact published HTML in an opaque-origin iframe. Artifact scripts, * external resources, forms, popups, downloads, and the host-filtered tool * bridge work without granting parent-origin authority, shared cookies/storage, * or top-level navigation. */ export declare function PublishedHtmlArtifactFrame(props: PublishedHtmlArtifactFrameProps): import("react").JSX.Element;