/**
 * 问题十九: Metric / Governance Action Binding — 指标契约与治理动作绑定。
 *
 * 强制执行:
 * - metrics 不得把 skipped / manual_required / degraded / plan_only 算 passed
 * - governance action 不得由指标自动触发高风险动作
 */
import type { MetricContract, MetricSample, GovernanceFinding, GovernanceActionBinding } from "./extension_platform_contracts.js";
export interface MetricValidationResult {
    valid: boolean;
    violations: string[];
}
export interface MetricEvaluationResult {
    passed: boolean;
    falsified_count: number;
    degraded_count: number;
    skipped_count: number;
    actual_pass_count: number;
    total_count: number;
}
export interface GovernanceActionResult {
    allowed: boolean;
    auto_triggered: boolean;
    requires_human: boolean;
    reason: string;
}
/**
 * 创建指标契约。
 */
export declare function createMetricContract(overrides: Partial<MetricContract> & Pick<MetricContract, "id">): MetricContract;
/**
 * 验证指标样本 — 禁止将 skipped/degraded/manual_required/plan_only 算作 passed。
 */
export declare function validateMetricSamples(samples: MetricSample[]): MetricValidationResult;
/**
 * 评估指标样本集合 — 真实计算通过率，不含伪装。
 */
export declare function evaluateMetrics(samples: MetricSample[]): MetricEvaluationResult;
/**
 * 创建治理发现。
 */
export declare function createGovernanceFinding(metric: MetricContract, severity: GovernanceFinding["severity"], evidenceRefs: string[]): GovernanceFinding;
/**
 * 评估治理动作 — 禁止自动触发高风险动作。
 */
export declare function evaluateGovernanceAction(finding: GovernanceFinding, action: string): GovernanceActionResult;
/**
 * 绑定治理动作到发现。
 */
export declare function bindGovernanceAction(finding: GovernanceFinding, action: string, evidenceIds: string[]): GovernanceActionBinding;
//# sourceMappingURL=metric_governance.d.ts.map