/**
 * 治理健康报告 — 汇总 audit pool、escape reports、capability action decisions、sample decisions。
 * P2-5+P2-6 范围: 只读报告，不改状态。
 */
import type { AuditItem, AuditPoolStats } from "./audit_pool.js";
import type { EscapeReport, EscapeReportStats } from "../contracts/escape_report.js";
import type { ActionDecision } from "../contracts/capability_action_advisor.js";
import type { SamplingDecision } from "./risk_sampler.js";
import type { DualLayerGovernanceFinding } from "../../types/index.js";
import { type OutputArtifact, type ArtifactGovernanceFinding } from "../contracts/artifact_contract_registry.js";
import { type ConfigResolutionReport, type ConfigEvidenceEntry, type ConfigPrecedenceGovernanceFinding } from "../config/config_precedence_contract.js";
import { type CorePrinciplesReport } from "./core_engineering_principles.js";
import { type ContractGovernanceFinding } from "../contracts/contract_registry.js";
export interface PolicySummary {
    policy_id: string;
    escape_count: number;
    false_positive_count: number;
    action: ActionDecision;
}
export interface TopFix {
    escape_id: string;
    policy_id: string;
    failure_type: string;
    fix_required: string;
    owner: string;
    due_date: string;
}
export interface DualLayerSummary {
    total_mechanisms: number;
    dual_layer_enforced_count: number;
    hard_fail_count: number;
    advisory_count: number;
    findings: DualLayerGovernanceFinding[];
}
export interface GovernanceReport {
    generated_at: string;
    total_tasks: number;
    audit_by_risk: Record<string, number>;
    sampled_count: number | null;
    total_escapes: number;
    total_false_positives: number;
    escape_by_type: Record<string, number>;
    danger_policies: PolicySummary[];
    downgrade_candidates: PolicySummary[];
    top_fixes: TopFix[];
    dual_layer_summary?: DualLayerSummary;
    artifact_governance?: {
        artifact_count: number;
        hard_fail_count: number;
        advisory_count: number;
        findings: ArtifactGovernanceFinding[];
    };
    config_precedence_governance?: {
        hard_fail_count: number;
        advisory_count: number;
        findings: ConfigPrecedenceGovernanceFinding[];
    };
    core_principles_governance?: {
        task_level: string;
        overall_passed: boolean;
        principles: Array<{
            principle_id: string;
            status: string;
            findings: string[];
        }>;
    };
    contract_governance?: {
        total_contracts: number;
        hard_fail_count: number;
        warning_count: number;
        advisory_count: number;
        findings: ContractGovernanceFinding[];
    };
}
/**
 * 生成治理健康报告。
 * 汇总审计池、逃逸报告、能力决策和抽样决策的统计数据，识别危险策略和降级候选。
 * 支持双层机制、制品契约、配置优先级契约和核心原则的治理检查。
 * @param auditStats - 审计池统计数据
 * @param auditItems - 审计条目列表
 * @param escapeReports - 逃逸报告列表
 * @param escapeStats - 逃逸报告统计数据
 * @param decisions - 能力动作决策列表
 * @param now - 报告生成时间（可选，默认当前时间）
 * @param sampleDecisions - 抽样决策列表（可选）
 * @param dualLayerFindings - 双层机制发现列表（可选）
 * @param dualLayerMechanismCount - 双层机制总数（可选）
 * @param artifacts - 输出制品列表（可选，用于制品契约检查）
 * @param configReports - 配置解析报告列表（可选）
 * @param configEntries - 配置优先级证据条目列表（可选）
 * @param corePrinciples - 核心原则遵循性报告列表（可选）
 * @returns 完整的治理健康报告
 */
/**
 * 生成治理健康报告。
 * @param options - 报告选项，包含审计池和能力状态存储
 * @returns 治理报告，包含任务统计、逃逸分析和降级建议
 */
export declare function generateReport(auditStats: AuditPoolStats, _auditItems: AuditItem[], escapeReports: EscapeReport[], escapeStats: EscapeReportStats, decisions: ActionDecision[], now?: Date, sampleDecisions?: SamplingDecision[], dualLayerFindings?: DualLayerGovernanceFinding[], dualLayerMechanismCount?: number, artifacts?: OutputArtifact[], configReports?: ConfigResolutionReport[], configEntries?: ConfigEvidenceEntry[], corePrinciples?: CorePrinciplesReport[], contractFindings?: ContractGovernanceFinding[], totalRegistryContracts?: number): GovernanceReport;
//# sourceMappingURL=governance_report.d.ts.map