import { CleanedJsonResult } from './json-cleaner'; /** * Service for processing AI model responses * Handles JSON cleaning, content extraction, and response validation */ export declare class ResponseProcessorService { /** * Process the raw AI response by cleaning JSON and extracting thinking content * Uses the modern Recipe System for better results * @param response The raw response from the AI model * @returns Processed content with thinking extracted */ static processResponseAsync(response: string): Promise; /** * Extract only the thinking content from a response * @param response The raw response from the AI model * @returns Extracted thinking content or empty string */ static extractThinking(response: string): string; /** * Extract only the non-thinking content from a response * @param response The raw response from the AI model * @returns Response without thinking blocks */ static extractContent(response: string): string; /** * Extract content from multiple thinking tag types * @param response The raw response from the AI model * @returns Object with different types of extracted content */ static extractAllThinkingTypes(response: string): { thinking: string; reasoning: string; analysis: string; planning: string; }; /** * Extract content by specific tag * @param response The response text * @param tag The tag name to extract * @returns Extracted content or empty string */ private static extractByTag; /** * Validate if a response contains valid JSON * @param response The response to validate * @returns True if the response contains valid JSON */ static hasValidJson(response: string): boolean; /** * Try to parse JSON from response with fallback handling * @param response The response to parse * @returns Parsed object or null if parsing fails */ static tryParseJson(response: string): Promise; /** * Process response and return both raw and processed versions * @param response The raw response * @returns Object containing both raw and processed versions */ static processResponseDetailed(response: string): Promise<{ raw: string; cleaned: CleanedJsonResult; parsedJson: any | null; hasThinking: boolean; thinking: string; contentOnly: string; isValidJson: boolean; stats: { originalLength: number; cleanedLength: number; thinkingLength: number; contentLength: number; }; }>; /** * Clean and format response for human readability * @param response The response to format * @returns Formatted response */ static formatForHuman(response: string): string; /** * Extract metadata from response headers or structured content * @param response The response to analyze * @returns Extracted metadata */ static extractMetadata(response: string): { hasThinkingTags: boolean; thinkingTagCount: number; contentType: 'json' | 'text' | 'mixed'; estimatedTokens: number; language: 'en' | 'de' | 'unknown'; }; /** * Validate response structure and content quality * @param response The response to validate * @returns Validation results */ static validateResponse(response: string): { isValid: boolean; issues: string[]; quality: 'high' | 'medium' | 'low'; suggestions: string[]; }; } //# sourceMappingURL=response-processor.service.d.ts.map