/** Standard MCP tool result shape. Compatible with the MCP SDK's CallToolResult type. */ export interface ToolResult { readonly isError?: boolean | undefined; readonly content: ToolResultContent[]; /** Index signature required by the MCP SDK's CallToolResult type. */ readonly [key: string]: unknown; } export interface ToolResultContent { readonly type: "text"; readonly text: string; } /** Creates a successful text result. */ export declare function textResult(text: string): ToolResult; /** Creates an error result. */ export declare function errorResult(message: string): ToolResult; /** Wraps a handler so uncaught errors become error results. */ export declare function formatError(label: string, error: unknown): ToolResult; //# sourceMappingURL=types.d.ts.map