import { type ComponentType, type ReactElement } from "react"; import { type ViewWebViewHostConnection } from "./view-webview-host-controller.js"; export type ViewWebViewHostProps = { viewId: string; generation: number; srcdoc: string; onConnected: (connection: ViewWebViewHostConnection) => void; onDisconnected?: () => void; onActivationRetryExhausted?: (error: Error) => void; onInvalidMessage?: (error: Error, value: unknown) => void; webViewComponent?: ComponentType>; }; export declare function ViewWebViewHost(props: ViewWebViewHostProps): ReactElement;