interface OpenAIComponentRendererProps { componentUrl: string; toolName: string; toolArgs: Record; toolResult: any; serverId: string; readResource: (uri: string) => Promise; className?: string; noWrapper?: boolean; showConsole?: boolean; customProps?: Record; /** When provided, used directly instead of looking up via useMcpClient(). * This avoids the dependency on McpClientProvider context. */ serverBaseUrl?: string; /** Status text shown while the tool is running (shimmer). Shown when toolResult is null. */ invoking?: string; /** Status text shown after the tool completes (static muted). Shown when toolResult is present. */ invoked?: string; onUpdateGlobals?: (updates: { displayMode?: "inline" | "pip" | "fullscreen"; theme?: "light" | "dark"; maxHeight?: number; locale?: string; safeArea?: { insets: { top: number; bottom: number; left: number; right: number; }; }; userAgent?: any; }) => void; } /** * Render an OpenAI Apps SDK component inside an iframe and provide a host ↔ iframe OpenAI API bridge. * * Manages widget lifecycle, resource storage, sizing and centering, theme syncing, display modes (inline / pip / fullscreen), * postMessage handling for tool calls and followups, and optional console/inspector controls. * * @param componentUrl - URI of the widget/resource to load into the iframe * @param serverId - MCP server identifier used to resolve server connection and dev proxy URLs * @param readResource - Function to fetch resource data (HTML) for the provided `componentUrl` * @param noWrapper - When true, do not render the default background wrapper around the iframe * @param showConsole - When true and same-origin, show the iframe console and inspector controls * @returns The rendered React element tree that embeds and manages the OpenAI App widget */ declare function OpenAIComponentRendererBase({ componentUrl, toolName, toolArgs, toolResult, serverId, readResource, className, noWrapper, showConsole, customProps, serverBaseUrl: serverBaseUrlProp, invoking, invoked, onUpdateGlobals, }: OpenAIComponentRendererProps): import("react/jsx-runtime").JSX.Element; export declare const OpenAIComponentRenderer: import("react").MemoExoticComponent; export {}; //# sourceMappingURL=OpenAIComponentRenderer.d.ts.map