import type { TaskContext } from "../../types/index.js";
/** 技术选型/架构/数据库/框架/高影响决策 → 需 decision sovereignty gate */
export declare function requiresDecisionSovereignty(ctx: TaskContext | null, route?: string): boolean;
/** 多步骤/不确定/高风险任务 → 需 detail discipline gate */
export declare function requiresDetailDiscipline(ctx: TaskContext | null, route?: string): boolean;
/** 高影响任务/架构设计/复杂编码/跨模块变更 → 需 first principles gate */
export declare function requiresFirstPrinciples(ctx: TaskContext | null, route?: string): boolean;
/** 不确定项/方案选择/多选项 → 需 brainstorm gate */
export declare function requiresBrainstorm(ctx: TaskContext | null, route?: string): boolean;
/**
 * 技术选型决策门 — 高影响技术决策需用户确认。
 * Decision Sovereignty enforcement。
 * 不依赖 hasInstructionContract — 触发由 requiresDecisionSovereignty 判定。
 */
export declare function checkDecisionSovereigntyGate(params: {
    ctx: TaskContext | null;
    route?: string;
}): Promise<{
    allowed: boolean;
    reason_zh?: string;
    requires_human_gate?: boolean;
    not_applicable_with_reason?: string;
    expected_schema?: Record<string, unknown>;
}>;
/**
 * 细节纪律门 — 复杂任务缺关键细节维度时阻断。
 * Detail Discipline enforcement。
 * 不依赖 hasInstructionContract — 触发由 requiresDetailDiscipline 判定。
 */
export declare function checkDetailDisciplineGate(params: {
    ctx: TaskContext | null;
    route?: string;
}): Promise<{
    allowed: boolean;
    reason_zh?: string;
    missing_details?: string[];
    not_applicable_with_reason?: string;
}>;
/**
 * 第一性原理门 — 高影响任务需目标/约束/本质问题/权衡。
 * First Principles enforcement。
 * 不依赖 hasInstructionContract — 触发由 requiresFirstPrinciples 判定。
 */
export declare function checkFirstPrinciplesGate(params: {
    ctx: TaskContext | null;
    route?: string;
}): Promise<{
    allowed: boolean;
    reason_zh?: string;
    failures?: string[];
    not_applicable_with_reason?: string;
    expected_schema?: Record<string, unknown>;
}>;
/**
 * 脑暴/方案探索门 — 不确定项需多方案+推荐理由+用户确认。
 * Brainstorm Contract enforcement。
 * 不依赖 hasInstructionContract — 触发由 requiresBrainstorm 判定。
 */
export declare function checkBrainstormGate(params: {
    ctx: TaskContext | null;
    route?: string;
}): Promise<{
    allowed: boolean;
    reason_zh?: string;
    violations?: string[];
    not_applicable_with_reason?: string;
    expected_schema?: Record<string, unknown>;
}>;
/**
 */
export declare function assessCepAfterVerification(params: {
    task_id: string;
    has_verification_evidence: boolean;
    has_failures?: boolean;
    hard_fail_downgraded?: boolean;
    failed_but_marked_done?: boolean;
}): Promise<{
    passed: boolean;
    violations: Array<{
        principle: string;
        severity: string;
        reason_zh: string;
        required_action?: string;
    }>;
    evaluated_principles: string[];
}>;
/**
 * CEP 集成: 交付前 false completion 检查 — 从 sf_deliver handler 提取的真实主链路函数。
 * 返回 CEP 决策（blocked/repair_reverify/allowed），由 handler 和 gate 共用。
 */
export declare function assessCepBeforeDelivery(params: {
    task_id: string;
    verification_passed: boolean;
    build_passed: boolean;
    browser_acceptance_passed: boolean;
    guard_passed: boolean;
    evidence_sufficient: boolean;
    current_status: string;
}): Promise<{
    decision: string;
    reason_zh: string;
    passed: boolean;
}>;
/**
 * CEP 集成: 工作流解析后评估 — 检查机制是否接入真实主链路、用户路径是否过短。
 */
export declare function assessCepAfterWorkflowResolve(params: {
    task_id: string;
    workflow_resolved: boolean;
    route: string;
    execution_shape: string;
    mutation_allowed: boolean;
}): Promise<{
    passed: boolean;
    violations: Array<{
        principle: string;
        severity: string;
        reason_zh: string;
    }>;
    evaluated_principles: string[];
}>;
/**
 * CEP 集成: 护栏评估后检查 — 硬规则是否被降级、低风险是否过重。
 */
export declare function assessCepAfterGuardEvaluation(params: {
    task_id: string;
    guard_passed: boolean;
    guard_type: string;
    hard_fail_downgraded: boolean;
    is_low_risk: boolean;
}): Promise<{
    passed: boolean;
    violations: Array<{
        principle: string;
        severity: string;
        reason_zh: string;
    }>;
    evaluated_principles: string[];
}>;
/**
 * CEP 集成: 修复重验证决策 — 检查是否假完成、是否进入正确修复路径。
 */
export declare function assessCepForRepairReverify(params: {
    task_id: string;
    has_failure: boolean;
    current_status: string;
    entered_repair: boolean;
    repair_reverified: boolean;
    verification_passed: boolean;
    build_passed: boolean;
    evidence_sufficient: boolean;
}): Promise<{
    decision: string;
    reason_zh: string;
    passed: boolean;
}>;
/**
 * CEP 集成: 用户反馈输出质量 — 检查结论优先、摘要清晰、不隐藏失败、中文语义。
 */
export declare function assessCepForUserFeedback(params: {
    task_id: string;
    has_conclusion_first: boolean;
    has_clear_summary: boolean;
    hides_critical_failure: boolean;
    chinese_semantic_first: boolean;
    has_actionable_next_step: boolean;
    exposes_internal_noise: boolean;
}): Promise<{
    passed: boolean;
    issues_zh: string[];
}>;
//# sourceMappingURL=cep_assessment.d.ts.map