/**
 * Confidence Scoring System
 *
 * Entry point for the confidence scoring system. Provides:
 * - scoreFindings() — score a batch of findings
 * - buildConfidenceLog() — structured logging for debugging/tuning
 * - buildAdjustmentContext() — build context for adjustment rules
 * - DEPTH_CONFIGS — threshold configs for each scan depth
 */
import type { Vulnerability, ScanDepth } from '../shared/types';
import type { ScoredFinding, ConfidenceLog, AdjustmentContext, DepthConfig } from './types';
import type { ContextEngineResult } from '../model/taint-types';
/**
 * Score thresholds per scan depth.
 *
 * - local:    Only high-confidence findings surface. No AI.
 * - verified: High-confidence surface directly; medium goes to AI.
 * - deep:     High-confidence surface; nearly everything goes to AI.
 */
export declare const DEPTH_CONFIGS: Record<ScanDepth, DepthConfig>;
/**
 * Build adjustment context for a finding from file + project info.
 */
export declare function buildAdjustmentContext(finding: Vulnerability, ceResult: ContextEngineResult): AdjustmentContext;
/**
 * Score a batch of findings with confidence scoring.
 *
 * Each finding gets a ConfidenceComputation attached as `confidence_score`.
 * The routing field indicates whether the finding should be surfaced,
 * validated by AI, or suppressed.
 */
export interface ScoringDiagnostics {
    /** How many times each adjustment rule fired */
    ruleHitCounts: Record<string, number>;
    /** Score distribution buckets */
    scoreDistribution: {
        '0.0-0.2': number;
        '0.2-0.4': number;
        '0.4-0.6': number;
        '0.6-0.8': number;
        '0.8-1.0': number;
    };
    /** Average score per category */
    categoryAvgScores: Record<string, {
        avg: number;
        count: number;
    }>;
    /** Taint rule hits specifically */
    taintRuleHits: Record<string, number>;
}
export declare function scoreFindings(findings: Vulnerability[], depth: ScanDepth, ceResult: ContextEngineResult): {
    scored: ScoredFinding[];
    diagnostics: ScoringDiagnostics;
};
/**
 * Build structured confidence logs for a batch of scored findings.
 * Used for debugging, tuning, and comparing with tier-based routing.
 */
export declare function buildConfidenceLog(scored: ScoredFinding[]): ConfidenceLog[];
export type { ScoredFinding, ConfidenceComputation, ConfidenceAdjustment, ConfidenceLog, AdjustmentRule, AdjustmentContext, DepthConfig, } from './types';
//# sourceMappingURL=index.d.ts.map