/**
 * pipeline/gap-analysis.ts
 *
 * Expected impact estimation for identified gaps.
 *
 * Phase 3b of the Scenario Matrix implementation.
 *
 * Given failure modes and scores, estimates the score lift that fixing
 * each gap would produce. Gaps are prioritized by estimated lift × task count
 * to produce an actionable remediation plan.
 *
 * The estimation model is conservative: it assumes fixing a gap raises the
 * bottleneck dimension to the median of non-bottlenecked dimensions (not 100).
 * This produces realistic estimates rather than theoretical maximums.
 *
 * @see docs/archive/exec-plans/scenario-matrix-implementation/phase-3-gap-analysis.md
 */
import type { FailureModeReport, FeatureScore, GapAnalysisReport, GapEstimate } from "./types.js";
/**
 * Build a complete gap analysis report.
 *
 * @param failureModeReport - Classified failure modes from Phase 3a
 * @param scores - Per-area feature scores
 * @param weights - Dimension weights
 * @returns Gap analysis report with prioritized remediation plan
 */
export declare function buildGapAnalysisReport(failureModeReport: FailureModeReport, scores: FeatureScore[], weights?: Record<string, number>): GapAnalysisReport;
/**
 * Estimate the impact of fixing each identified gap.
 *
 * For each area with failure modes, calculates the potential score lift
 * from fixing the identified issues. Uses a conservative estimation model
 * that targets the median of non-bottlenecked dimensions rather than 100.
 *
 * @param failureModeReport - Classified failure modes from Phase 3a
 * @param scores - Per-area feature scores
 * @param weights - Dimension weights (defaults to rubrics config weights)
 * @returns Gap estimates sorted by priority (highest first)
 */
export declare function estimateImpact(failureModeReport: FailureModeReport, scores: FeatureScore[], weights?: Record<string, number>): GapEstimate[];
/**
 * Format a gap analysis report for console output.
 */
export declare function formatGapAnalysisConsole(report: GapAnalysisReport): string;
/**
 * Format a gap analysis report as markdown for PR comments.
 */
export declare function formatGapAnalysisMarkdown(report: GapAnalysisReport): string;
