import { ProcessingError, FileSystemError, ParsingError, TranslationError, IntegrationError, ErrorReport } from '../types'; /** * Error handling utilities for the i18n integration tool */ export declare class ErrorHandler { private errors; /** * Handle file system errors */ handleFileSystemError(error: FileSystemError): void; /** * Handle parsing errors */ handleParsingError(error: ParsingError): void; /** * Handle translation errors */ handleTranslationError(error: TranslationError): void; /** * Handle integration errors */ handleIntegrationError(error: IntegrationError): void; /** * Handle any processing error */ handleError(error: ProcessingError): void; /** * Type guards for error types */ private isFileSystemError; private isParsingError; private isTranslationError; private isIntegrationError; /** * Get all collected errors */ getErrors(): ProcessingError[]; /** * Clear all errors */ clearErrors(): void; /** * Check if there are any errors */ hasErrors(): boolean; /** * Get error count by type */ getErrorStats(): Record; /** * Create comprehensive error report */ createErrorReport(): ErrorReport; /** * Generate suggestions based on error patterns */ private generateSuggestions; /** * Attempt to recover from specific error types */ static recoverFromFileError(error: FileSystemError): boolean; /** * Suggest fixes for common errors */ static suggestFix(error: ProcessingError): string[]; } /** * Global error handler instance */ export declare const errorHandler: ErrorHandler; //# sourceMappingURL=error-handler.d.ts.map