import type { McpUiHostContext } from "@modelcontextprotocol/ext-apps"; import { type ReactNode } from "react"; import type { McpAppRuntime } from "./view-runtime.js"; /** * Provide a {@link McpAppRuntime} to the view tree. * * Connection is started by {@link bootstrapView} before render. Model-context * delivery is owned by the runtime's {@link McpAppRuntime.modelContextStore}; * this provider only exposes the runtime through context. * * @param props - Provider props. * @param props.runtime - Runtime created by bootstrap for this mount. * @param props.children - View tree. * * @internal */ export declare function ViewRuntimeProvider({ runtime, children, }: { runtime: McpAppRuntime; children: ReactNode; }): import("react").JSX.Element; /** * Read the current {@link McpAppRuntime} from context. * * @throws When called outside a {@link bootstrapView}-mounted tree. * * @internal */ export declare function useViewRuntime(): McpAppRuntime; /** * Subscribe to host context only — re-renders when `hostContext` identity * changes (connection-only updates that keep the same context object do not). * * Used by {@link ThemeProvider} for theme, style variables, and fonts. * * @internal */ export declare function useHostContextSubscription(): McpUiHostContext | undefined;