import type { CallToolResult } from '@modelcontextprotocol/sdk/types.js'; /** * Standard MCP tool response. * Uses the SDK's CallToolResult type for full compatibility. */ export type ToolResponse = CallToolResult; /** * Create a success response with the given text. */ export declare function success(text: string): ToolResponse; /** * Create an error response with the given message. */ export declare function error(message: string): ToolResponse; /** * Wrap a handler function with standard try/catch error handling. * Ensures all tool handlers follow the same error pattern. */ export declare function withErrorHandling>(handler: (args: TArgs) => ToolResponse): (args: TArgs) => ToolResponse; //# sourceMappingURL=shared.d.ts.map