/** * Synthesis Engine - Report Generation for Research Tool * * Transforms research results into readable markdown reports with sections: * - Executive summary * - Key findings * - Detailed analysis (organized by source/domain) * - Methodology * - Sources (with authority scores) * * Supports multiple report styles: * - executive: Brief summary with key findings * - detailed: Full analysis with all sections (default) * - academic: Detailed + APA citations + methodology details */ import type { ContradictionResult } from './contradiction-detector.js'; export interface ResearchSource { url: string; title: string; domain: string; sourceType: 'government' | 'official' | 'news' | 'reference' | 'developer' | 'blog' | 'unknown'; authorityScore: number; excerpt: string; extractionSuccess: boolean; extractedData?: Record; freshnessScore?: number; mostRecentYear?: number | null; error?: string; } export interface SynthesisInput { scope: string; findings: ResearchSource[]; data?: Record; confidence: number; verification?: { sourcesAgree: boolean; agreementCount: number; totalSources: number; disagreements?: Array<{ field: string; description: string; }>; }; contradictions?: ContradictionResult; style: 'executive' | 'detailed' | 'academic'; searchQueries?: string[]; strategy?: string; durationMs?: number; } export interface MarkdownReport { markdown: string; sections: { title: string; executiveSummary: string; keyFindings: string; detailedAnalysis: string; methodology: string; sources: string; contradictions?: string; }; wordCount: number; } /** * Synthesis Engine - Generates markdown reports from research results */ export declare class SynthesisEngine { /** * Generate a comprehensive markdown report from research results */ synthesizeReport(input: SynthesisInput): MarkdownReport; /** * Generate report title based on scope */ private generateTitle; /** * Generate executive summary - 2-3 sentence overview */ private generateExecutiveSummary; /** * Generate key findings - bullet points from extracted data and top sources */ private generateKeyFindings; /** * Generate detailed analysis - organize findings by domain/source type */ private generateDetailedAnalysis; /** * Generate methodology section - explain how research was conducted */ private generateMethodology; /** * Format sources section with authority scores and types */ private formatSources; /** * Format contradictions section if any alerts exist */ private formatContradictions; /** * Format the complete markdown report */ private formatMarkdown; /** * Get authority badge emoji/text */ private getAuthorityBadge; /** * Get source type badge */ private getSourceTypeBadge; } //# sourceMappingURL=synthesis-engine.d.ts.map