/**
 * @deprecated [DC-1] 无运行时消费方。类型被其他模块导入，运行时函数标记废弃。
 *
 * 交付就绪报告 — 问题十二 (Delivery Readiness Gate)。
 *
 * 核心规则:
 * - DeliveryReadinessReport 只判断 readiness，不隐式执行 commit/push/PR/deploy
 * - delivery_allowed=true 不等于 delivery executed
 * - 未验证不得 delivered
 * - blocking human confirmation 存在时 delivery_allowed 必须为 false
 */
import type { VerificationResult } from "../contracts/verification_contract.js";
import type { GuardFinding } from "../contracts/enforcement_guard.js";
import type { MetricSample, FinalLocalReviewAccess } from "../contracts/extension_platform_contracts.js";
export type DeliveryReadinessStatus = "pending" | "ready" | "not_ready" | "blocked" | "manual_required";
export interface DeliveryReadinessReport {
    report_id: string;
    task_id: string;
    delivery_readiness_status: DeliveryReadinessStatus;
    delivery_allowed: boolean;
    verification_result_id?: string;
    scope_check_passed: boolean;
    lease_check_passed: boolean;
    privacy_check_passed: boolean;
    artifact_acceptance_passed: boolean;
    blocking_findings: Array<{
        rule: string;
        message_zh: string;
    }>;
    warnings: Array<{
        rule: string;
        message_zh: string;
    }>;
    evaluated_at: string;
    /** 交付是否已执行 — 必须独立于 readiness 判断 */
    delivery_executed: boolean;
}
export interface DeliveryExecutionRecord {
    execution_id: string;
    task_id: string;
    trigger: "联调验证" | "manual";
    commit_sha?: string;
    pr_url?: string;
    changelog_entry?: string;
    executed_at: string;
    rolled_back: boolean;
}
/**
 * 评估交付就绪状态。
 * 只做判断，不执行任何交付动作。
 */
export declare function evaluateDeliveryReadiness(taskId: string, verificationResult: VerificationResult | undefined, guardFindings: GuardFinding[], scopeCheckPassed: boolean, leaseCheckPassed: boolean, privacyCheckPassed: boolean, artifactAcceptancePassed: boolean, metricsData?: MetricSample[], acceptanceConfig?: {
    final_access: FinalLocalReviewAccess;
    project_run_mode: "not_applicable" | "docker_compose" | "dockerfile" | "local_dev_server";
}): DeliveryReadinessReport;
/**
 * 创建交付执行记录。
 * 必须由 sf_deliver 或手动触发，不能由 readiness 自动触发。
 */
export declare function createDeliveryExecutionRecord(taskId: string, trigger: "联调验证" | "manual", details: {
    commit_sha?: string;
    pr_url?: string;
    changelog_entry?: string;
}): DeliveryExecutionRecord;
/**
 * 验证: delivery_readiness 不得触发 delivery_execution。
 */
export declare function validateDeliverySeparation(report: DeliveryReadinessReport, executionRecord: DeliveryExecutionRecord | undefined): Array<{
    error: string;
    severity: "hard_fail" | "warning";
}>;
//# sourceMappingURL=delivery_readiness.d.ts.map