import { type ReactNode } from "react"; import type { ToolCallMessagePartComponent } from "@assistant-ui/core/react"; import { type ResourceElement } from "@assistant-ui/tap"; import type { McpAppHostContext, McpAppHostInfo, McpAppSandboxConfig, McpAppsHost } from "./types.js"; export type McpAppRendererOptions = { /** * Provides the data-plane operations the widget can request * (`loadResource`, `callTool`, `readResource`, `listResources`). Use * `McpAppsRemoteHost({ url })` for the default HTTP-route convention. */ host: ResourceElement; /** Sandbox + container styling. Passes through to SafeContentFrame. */ sandbox?: McpAppSandboxConfig; /** * Upper bound (in pixels) applied to the widget-driven auto-resize height. * Defaults to 800. */ maxHeight?: number; /** Identifies the host to the widget in the `ui/initialize` response. */ hostInfo?: McpAppHostInfo; /** Delivered to the widget on initialize and pushed via `notifications/host_context/changed` on change. */ hostContext?: McpAppHostContext; /** Rendered when no MCP app is on the part, or while load is in flight / failed (unless overridden). */ fallback?: ReactNode; /** Rendered while the resource is loading. Defaults to `fallback`. */ loadingFallback?: ReactNode; /** Rendered when the resource load rejects. Defaults to `fallback`. */ errorFallback?: ReactNode | ((error: Error) => ReactNode); }; export declare const McpAppRenderer: (props: McpAppRendererOptions) => ResourceElement<{ readonly render: ToolCallMessagePartComponent; }, McpAppRendererOptions>; //# sourceMappingURL=McpAppRenderer.d.ts.map