/** * Eventbrite API Error * Represents an error from the Eventbrite API with structured error information */ export declare class EventbriteAPIError extends Error { readonly errorCode: string; readonly errorDescription: string; readonly statusCode: number; readonly details?: any | undefined; constructor(errorCode: string, errorDescription: string, statusCode: number, details?: any | undefined); toJSON(): { name: string; errorCode: string; errorDescription: string; statusCode: number; details: any; message: string; }; } /** * MCP Tool Error Response * Standardized error response format for MCP tools */ export interface MCPErrorResponse { success: false; error: { code: string; message: string; statusCode?: number; details?: any; stack?: string; }; tool: string; timestamp: string; } /** * Create an MCP-compatible error response */ export declare function createMCPErrorResponse(toolName: string, error: unknown): MCPErrorResponse; /** * Parse Eventbrite API error from response */ export declare function parseEventbriteError(statusCode: number, responseData: any): EventbriteAPIError; /** * Handle tool execution with proper error propagation */ export declare function handleToolExecution(toolName: string, executor: () => Promise): Promise; /** * Check if a value is an MCP error response */ export declare function isMCPErrorResponse(value: any): value is MCPErrorResponse; /** * Format error for user-friendly display */ export declare function formatErrorForDisplay(error: MCPErrorResponse): string; //# sourceMappingURL=mcp-error-handler.d.ts.map