import { CleanedJsonResult } from './json-cleaner.types'; import { JsonCleanerOrchestrator } from './json-cleaner.orchestrator'; /** * Main service for cleaning JSON strings * Delegates complex logic to specialized helper classes with control character awareness */ export declare class JsonCleanerService { private static orchestrator; /** * Initializes the JsonCleanerOrchestrator with optimized strategy order */ private static initialize; /** * Process and clean JSON using the modern Recipe System with legacy fallback */ static processResponseAsync(response: string): Promise; /** * Analyzes JSON problems using the analyzer */ static analyzeJsonProblems(jsonStr: string): { isValid: boolean; errors: string[]; suggestions: string[]; canBeFixed: boolean; severity: "low" | "medium" | "high"; specificIssues: { hasCommaIssues: boolean; hasControlCharIssues: boolean; hasBracketIssues: boolean; hasQuoteIssues: boolean; }; repairStrategy: string[]; errorPosition?: number; problemContext?: string; }; /** * Fixes specific problems with targeted strategies */ static fixSpecificProblem(jsonStr: string, problemType: 'comma' | 'control-chars' | 'quotes' | 'brackets'): string; /** * Configures the logger */ static configureLogger(config: { logOnly?: 'all' | 'failures' | 'none'; verbosity?: 'minimal' | 'standard' | 'verbose' | 'debug'; }): void; /** * Inspects JSON for issues */ static inspectJson(json: string): string; /** * Saves JSON inspection to file */ static saveJsonInspection(json: string, filename?: string): Promise; /** * Generates failure report */ static generateFailureReport(): void; /** * Provides access to the orchestrator */ static getOrchestrator(): JsonCleanerOrchestrator; /** * Gets service statistics */ static getServiceStats(): { initialized: boolean; strategiesCount: number; fallbackStrategiesCount: number; parsersCount: number; controlCharacterSupport: { available: boolean; diagnosticsEnabled: boolean; quickRepairEnabled: boolean; advancedRepairEnabled: boolean; }; }; /** * Extended service statistics with control character info */ static getExtendedServiceStats(): { initialized: boolean; strategiesCount: number; fallbackStrategiesCount: number; parsersCount: number; controlCharacterSupport: { available: boolean; diagnosticsEnabled: boolean; quickRepairEnabled: boolean; advancedRepairEnabled: boolean; }; }; } //# sourceMappingURL=json-cleaner.service.d.ts.map