import type { Logger } from 'pino'; import { AppError } from '../../../core/errors/app-error.js'; import type { MCPWebSocketConnection, PendingRequest } from './types.js'; export declare class WebSocketErrorHandler { private readonly logger; constructor(logger: Logger); handleConnectionError(connectionId: string, error: Error, userId?: string): Promise; handleParseError(connectionId: string, data: string, error: Error): void; handleAuthError(connectionId: string, error: Error, authType?: string): Promise; handleOperationError(operation: string, error: Error, sessionId?: string, metadata?: Record): Promise; handleRequestTimeout(connectionId: string, requestId: string): AppError; handleSubscriptionError(connectionId: string, subscriptionId: string, error: Error): void; cleanupPendingRequests(pendingRequests: Map, error: Error): void; handleConnectionClose(connection: MCPWebSocketConnection, code: number, reason: string): void; isRecoverableError(error: Error): boolean; createErrorResponse(error: Error, requestId?: string): { type: string; id?: string; error: { code: string; message: string; details?: unknown; }; }; } //# sourceMappingURL=error-handler.d.ts.map