/** Archived MCP App data. Credentials and executable server configuration are excluded. */ export interface McpAppData { sourceId: string; resourceUri: string; mimeType: string; resourceMeta: Record; toolInput: Record; toolResult: Record; } export interface McpAppArchive extends McpAppData { html: string; plugin: string; /** Restore the last successful view before delivering a saved failure. */ previousToolInput?: Record; previousToolResult?: Record; } export declare function isMcpAppData(value: unknown): value is McpAppData; /** Latest model-context state one MCP App saved for its own card. */ export interface McpAppContextState { revision: string; content: string; plugin: string | null; server_alias: string | null; } export interface McpAppContextUpdate { request_id: string; /** null on the first save; the server rejects a stale revision. */ expected_revision: string | null; content: string; }