/**
 * Confidence Scoring System for Consensus Pipeline
 * Implements mathematical confidence calculation based on stage agreement and content quality
 */
interface StageResult {
    output: string;
    confidence?: number;
    stage_name: string;
    provider: string;
    model: string;
    processing_time?: number;
    word_count?: number;
}
interface ConfidenceMetrics {
    content_quality: number;
    stage_agreement: number;
    provider_reliability: number;
    context_utilization: number;
    final_confidence: number;
    agreement_matrix: number[][];
}
export declare class ConfidenceCalculator {
    /**
     * Calculate confidence for an individual stage
     */
    calculateStageConfidence(stageResult: StageResult, contextQuality?: number, providerReliability?: number): number;
    /**
     * Calculate overall consensus confidence from all stages
     */
    calculateConsensusConfidence(stageResults: StageResult[]): ConfidenceMetrics;
    /**
     * Analyze content quality based on various factors
     */
    private analyzeContentQuality;
    /**
     * Calculate agreement matrix between all stages
     */
    private calculateAgreementMatrix;
    /**
     * Calculate semantic similarity between two outputs
     */
    private calculateSemanticSimilarity;
    /**
     * Calculate weighted confidence with progressive stage weighting
     */
    private calculateWeightedConfidence;
    /**
     * Calculate overall agreement score from agreement matrix
     */
    private calculateOverallAgreement;
    /**
     * Calculate provider reliability score
     */
    private calculateProviderReliability;
    /**
     * Calculate content quality progression through stages
     */
    private calculateContentQualityProgression;
    /**
     * Calculate context utilization score
     */
    private calculateContextUtilization;
    /**
     * Helper methods for content analysis
     */
    private hasGoodStructure;
    private hasTechnicalContent;
    private isComplete;
    private hasGoodClarity;
    private calculateTechnicalDepth;
    private extractKeywords;
    /**
     * Generate confidence report for debugging and transparency
     */
    generateConfidenceReport(metrics: ConfidenceMetrics, stageResults: StageResult[]): string;
    private formatAgreementMatrix;
}
export declare const confidenceCalculator: ConfidenceCalculator;
export {};
//# sourceMappingURL=confidence-calculator.d.ts.map