/** * MCP transport actions — require server roundtrip via MCP protocol. */ import type { Action, ActionJSON } from './types.js'; export interface CallToolOpts { arguments?: Record; resultKey?: string; onSuccess?: Action | Action[]; onError?: Action | Action[]; } /** * Invoke an MCP tool from the UI. * Used in Form.onSubmit or Button.onClick to call backend tools. */ export declare class CallTool implements Action { readonly tool: string; private readonly opts?; constructor(tool: string, opts?: CallToolOpts | undefined); toJSON(): ActionJSON; } export declare class SendMessage implements Action { readonly message: string; constructor(message: string); toJSON(): ActionJSON; } export declare class UpdateContext implements Action { readonly context: Record; constructor(context: Record); toJSON(): ActionJSON; } export type DisplayMode = 'inline' | 'fullscreen' | 'pip'; export declare class RequestDisplayMode implements Action { readonly mode: DisplayMode; constructor(mode: DisplayMode); toJSON(): ActionJSON; } //# sourceMappingURL=mcp.d.ts.map