/**
 * @file review-synthesizer.ts
 * @description Intelligent synthesis of multiple review comments and feedback
 *
 * Consolidates feedback from multiple reviewers (security, testing, requirements, etc.)
 * into actionable changes for final artifact generation.
 *
 * @implements NFR-QUAL-001: 100% review comment traceability
 */
import type { ReviewResult, ReviewStatus } from './agent-orchestrator.js';
export interface ConflictResolution {
    conflictType: 'contradictory' | 'overlapping' | 'priority';
    involvedReviewers: string[];
    description: string;
    resolution: string;
    reasoning: string;
}
export interface ConsolidatedComment {
    id: string;
    severity: 'critical' | 'major' | 'minor' | 'info';
    section: string;
    consolidatedText: string;
    sources: Array<{
        reviewer: string;
        originalComment: string;
    }>;
    actionItems: string[];
    resolved: boolean;
}
export interface SynthesisResult {
    reviewCount: number;
    approvedCount: number;
    conditionalCount: number;
    rejectedCount: number;
    overallStatus: ReviewStatus;
    consolidatedComments: ConsolidatedComment[];
    conflicts: ConflictResolution[];
    actionPlan: string[];
    synthesisQuality: number;
}
export interface SynthesisOptions {
    prioritizeByRole?: boolean;
    allowConflicts?: boolean;
    minConsensusThreshold?: number;
}
export declare class ReviewSynthesizer {
    private readonly rolePriorities;
    /**
     * Synthesize multiple review results into consolidated feedback
     */
    synthesize(reviews: ReviewResult[], options?: SynthesisOptions): SynthesisResult;
    /**
     * Determine overall review status based on individual reviews
     */
    private determineOverallStatus;
    /**
     * Consolidate comments from multiple reviewers
     */
    private consolidateComments;
    /**
     * Normalize section names for grouping
     */
    private normalizeSection;
    /**
     * Group similar comments together
     */
    private groupSimilarComments;
    /**
     * Check if two comments are similar enough to consolidate
     */
    private areCommentsSimilar;
    /**
     * Determine the most severe severity from a group
     */
    private determineMostSevereSeverity;
    /**
     * Merge comment texts from similar comments
     */
    private mergeCommentTexts;
    /**
     * Extract action items from comments
     */
    private extractActionItems;
    /**
     * Detect conflicts between reviewer comments
     */
    private detectConflicts;
    /**
     * Check if action items contradict each other
     */
    private areActionsContradictory;
    /**
     * Resolve contradiction between two comments
     */
    private resolveContradiction;
    /**
     * Generate action plan from consolidated comments
     */
    private generateActionPlan;
    /**
     * Calculate synthesis quality score
     */
    private calculateSynthesisQuality;
    /**
     * Generate synthesis report (markdown format)
     */
    generateReport(synthesis: SynthesisResult): string;
}
export default ReviewSynthesizer;
//# sourceMappingURL=review-synthesizer.d.ts.map