/**
 * 冲突合并门 — 统一 diff ownership CAS 冲突 + scope lease 冲突的 advisory 报告。
 * CAP-011 实验性: advisory only, 不 hard block。
 *
 * 职责:
 * - preWriteGate: 写前统一检查 CAS + Lease 冲突
 * - 返回 ConflictGateResult 含所有冲突和建议操作
 * - human_confirm: 标记人工确认（advisory, 可忽略）
 */
import type { DiffOwnershipStore, ConflictReport } from "./diff_ownership_store.js";
import type { ScopeLeaseStore, LeaseConflict } from "./scope_lease.js";
export type GateSeverity = "advisory";
export type RecommendedAction = "proceed" | "confirm_recommended" | "escalate";
export interface ConflictGateEntry {
    source: "cas" | "lease";
    severity: GateSeverity;
    file_path: string;
    message: string;
    detail: ConflictReport | LeaseConflict;
}
export interface ConflictGateResult {
    file_path: string;
    has_conflict: boolean;
    entries: ConflictGateEntry[];
    recommended_action: RecommendedAction;
    summary: string;
    confirmed_at: string | null;
}
export declare class ConflictGate {
    private diffOwnership;
    private scopeLease;
    constructor(diffOwnership: DiffOwnershipStore, scopeLease: ScopeLeaseStore);
    /**
     * 写前统一检查 CAS + 租约冲突。
     *
     * @param taskId - 任务 ID
     * @param filePath - 待写入文件路径
     * @returns 冲突检测结果
     */
    preWriteGate(taskId: string, filePath: string): ConflictGateResult;
    /**
     * 标记冲突结果为已确认。
     *
     * @param result - 冲突检测结果
     * @returns 更新确认时间后的结果
     */
    markConfirmed(result: ConflictGateResult): ConflictGateResult;
}
//# sourceMappingURL=conflict_gate.d.ts.map