import { type WebViewConnectionBridgeMessage } from "./webview-connection-bridge-message.js"; export type ViewWebViewBridgeMessage = WebViewConnectionBridgeMessage; export declare const parseViewWebViewBridgeMessage: (value: unknown) => ViewWebViewBridgeMessage; export declare const buildViewWebViewBridgeScript: (input: { bridgeId: string; phase: "documentStart"; } | { bridgeId: string; epoch: number; phase: "afterLoad"; }) => string; export declare const toExternalViewSource: (input: { bridgeId: string; srcdoc: string; }) => { html: string; baseUrl: string; }; export declare const buildViewWebViewHostMessageScript: (input: { bridgeId: string; connectionId: string; epoch: number; generation: number; message: unknown; }) => string;