/** * Common types for tool results */ export type ToolResult = { success: true; data: string | string[]; structuredContent?: Record; error?: undefined; } | { success: false; error: string; data?: undefined; structuredContent?: undefined; }; /** * Convert a ToolResult to MCP tool response format. * When data is a string[], each element becomes a separate content block. * When structuredContent is provided, it's included for clients that support outputSchema. */ export declare function toMcpResponse(result: ToolResult): { content: { type: "text"; text: string; }[]; structuredContent?: Record; isError?: boolean; };