/** * Central class for JSON validation with extended debug functions * Replaces all distributed isValidJson() implementations in the code */ export declare class JsonValidationHelper { private static readonly DEBUG_MODE; private static stats; /** * MAIN METHOD: Validates JSON with extended debug functions * Replaces all isValidJson() calls in the code */ static isValid(jsonStr: string, context?: string): boolean; /** * Extended string analysis before parsing */ private static analyzeJsonString; /** * Detailed error logging with context information */ private static logValidationResult; /** * Detailed error logging with position and context */ private static logDetailedError; /** * Analyze context around an error position */ private static logPositionContext; /** * Extended context logging method (when original string is available) */ static logPositionContextWithString(position: number, jsonStr: string, context?: string): void; /** * Detects string encoding problems */ private static detectStringEncoding; /** * Finds suspicious positions in the string */ private static findSuspiciousPositions; /** * Validates the parsed object */ private static validateParsedObject; /** * Tracks common error patterns for analysis */ private static trackCommonError; /** * Cleans a string from common problems before validation */ static sanitizeBeforeValidation(jsonStr: string): string; /** * Extended validation with automatic sanitization */ static isValidWithSanitization(jsonStr: string, context?: string): { isValid: boolean; sanitized: string; sanitizationApplied: boolean; }; /** * Returns validation statistics */ static getStats(): { total: number; successful: number; failed: number; successRate: number; commonErrors: Array<{ error: string; count: number; }>; }; /** * Reset statistics (for tests or restart) */ static resetStats(): void; /** * Debug helper method: Complete analysis of a JSON string */ static debugAnalyze(jsonStr: string, context?: string): void; } //# sourceMappingURL=json-validation.helper.d.ts.map