/**
 * 中文语义优先机制 — 问题十 (Chinese Semantic Priority)。
 *
 * 在用户项目内建立中文语义优先默认策略。
 * - 业务语义、验收标准、审查结论和治理契约默认中文
 * - 代码标识符、命令、日志、协议保持原样
 * - 与问题四十一 LanguagePolicyOverride 共享 LanguagePolicy 类型
 * - 消费 Batch 2 language_policy_contract，不重定义总契约
 */
import type { LanguagePolicy } from "./knowledge_template_contracts.js";
import type { LanguagePolicyConfig, SemanticPollutionFinding } from "./language_policy.js";
export type { LanguagePolicyConfig, SemanticPollutionFinding };
/** 必须中文优先的内容领域 */
export declare const ZH_FIRST_DOMAINS: readonly ["business_semantics", "acceptance_criteria", "review_findings", "governance_contracts", "user_feedback"];
/** 不强制中文化的内容领域 */
export declare const PRESERVE_DOMAINS: readonly ["code_identifiers", "logs_and_errors", "api_docs", "commit_messages"];
/** 语义检查结果 */
export interface SemanticCheckResult {
    domain: string;
    passed: boolean;
    policy: LanguagePolicy;
    expected_language: "zh" | "en" | "preserve";
    actual_language: "zh" | "en" | "mixed";
    message_zh: string;
}
/** 语义优先评估结果 */
export interface SemanticPriorityEvaluation {
    compliant: boolean;
    checks: SemanticCheckResult[];
    pollution_findings: SemanticPollutionFinding[];
    total_domains: number;
    passing_domains: number;
}
/**
 * 评估内容是否遵守中文语义优先策略。
 * 硬规则：
 * - zh_first 域内容必须中文优先
 * - code_native 域不得翻译
 * - source_preserving 域保持原文
 * - en_allowed 域允许英文
 */
export declare function evaluateSemanticPriority(config: LanguagePolicyConfig, contents: Array<{
    domain: string;
    content: string;
    id: string;
}>): SemanticPriorityEvaluation;
/**
 * 验证中文项目不被英文模板污染。
 * 硬规则：zh_first 项目的知识条目不得被英文模板默认值覆盖。
 */
export declare function validateZhProjectProtection(config: LanguagePolicyConfig, templateContent: string, targetDomain: string): {
    protected: boolean;
    reason?: string;
};
/**
 * 验证英文项目可配置 en_allowed。
 */
export declare function validateEnProjectOverride(config: LanguagePolicyConfig): {
    valid: boolean;
    reason?: string;
};
//# sourceMappingURL=chinese_semantic_priority.d.ts.map