import { type OpenGeniText } from "./messages/runtime.js"; export { inlineHtmlDocument } from "./components/artifacts/inline-html-document.js"; export { loadSiteSnapshot, type SiteDisplayContent, type SiteSnapshotReadClient, } from "./site-snapshot.js"; export { paintPreviewLoading, PREVIEW_LOADING_COLORS } from "./preview-loading-paint.js"; /** Fence languages the assistant uses for interactive previews. */ export type InteractivePreviewKind = "html" | "site"; export declare function interactivePreviewKind(language: string): InteractivePreviewKind | null; /** A Site fence body: `{"siteId": "…", "versionId"?: "…"}`; null when malformed. */ export declare function parseSiteFence(content: string): { siteId: string; versionId?: string; } | null; /** * Script source of `paintPreviewLoading` (kept in lockstep by a test), for * documents that run outside this bundle. Release React Native builds compile * functions to bytecode, so `Function.prototype.toString` cannot be used. */ export declare const PREVIEW_LOADING_PAINT_SCRIPT = "function paintPreviewLoading(context,width,height,time,ink,glowColor){\ncontext.clearRect(0,0,width,height);\nconst cx=width*(0.5+0.13*Math.sin(time*0.21));\nconst cy=height*(0.5+0.12*Math.cos(time*0.27));\nconst glow=context.createRadialGradient(cx,cy,0,cx,cy,Math.max(width,height)*0.65);\nglow.addColorStop(0,glowColor);glow.addColorStop(1,\"transparent\");\ncontext.globalAlpha=0.09;context.fillStyle=glow;context.fillRect(0,0,width,height);\nconst rows=Math.ceil(height/18)+7;const cols=Math.ceil(width/18)+7;\nconst points=Array.from({length:rows},(_row,r)=>Array.from({length:cols},(_col,c)=>{\nconst x=(c-3)*18;const y=(r-3)*18;const dist=Math.hypot((x-cx)*0.8,y-cy);\nconst wave=Math.sin(dist*0.032-time*0.95);\nreturn {x:x+((x-cx)/Math.max(dist,1))*wave*4,y:y+((y-cy)/Math.max(dist,1))*wave*4,l:Math.pow((wave+1)/2,5)};}));\ncontext.strokeStyle=ink;context.fillStyle=ink;context.lineWidth=0.65;\npoints.forEach((row,r)=>row.forEach((p,c)=>{\ncontext.globalAlpha=0.035+p.l*0.055;context.beginPath();\nif(c+1