/**
 * 问题五十一: Test-First / Constraint-Guided Implementation — 编码准备门与测试优先。
 *
 * 强制执行:
 * - coding 不能作为第一步，必须先通过 CodingReadinessGate 和 TestFirstPlan
 * - readiness_status=blocked/manual_required 时不得写实现代码
 * - 有测试框架且行为可断言时必须先写失败测试或回归测试
 * - VerificationPlan 必须从 RequirementGapAnalysis 生成
 */
import type { CodingReadinessContract, TestFirstPlan, ConstraintConsumptionReport, MainlineConsumptionCheck, CodingCompletionReview, CodingReadinessStatus } from "./extension_platform_contracts.js";
export interface ReadinessEvaluationResult {
    allowed: boolean;
    status: CodingReadinessStatus;
    missing_preconditions: string[];
    reason: string;
}
/**
 * 创建编码准备契约。
 */
export declare function createCodingReadinessContract(overrides: Partial<CodingReadinessContract> & Pick<CodingReadinessContract, "task_id">): CodingReadinessContract;
/**
 * 创建测试优先计划。
 */
export declare function createTestFirstPlan(hasTestFramework: boolean, behaviorAssertable: boolean, taskType: string): TestFirstPlan;
/**
 * 评估编码准备状态。
 * - blocked / manual_required 时不得写实现代码
 */
export declare function evaluateCodingReadiness(contract: CodingReadinessContract, hasGapAnalysis: boolean, _hasArchitectureDesign: boolean, hasVerificationPlan: boolean): ReadinessEvaluationResult;
/**
 * 创建约束消费报告。
 */
export declare function createConstraintConsumptionReport(constraints: Array<{
    id: string;
    source: string;
    required: boolean;
}>): ConstraintConsumptionReport;
/**
 * 执行主线消费检查。
 */
export declare function performMainlineConsumptionCheck(newFiles: string[], componentsRouted: string[], apiBound: string[]): MainlineConsumptionCheck;
/**
 * 编码完成审查。
 */
export declare function reviewCodingCompletion(readinessContract: CodingReadinessContract, testFirstSatisfied: boolean, implementationDone: boolean, mainlineIntegrated: boolean, verificationExecuted: boolean): CodingCompletionReview;
//# sourceMappingURL=coding_readiness_gate.d.ts.map