/** * Config Write Boundary — 配置层模块。 * * 职责边界: * - 负责:ConfigWriteContextKind 等 配置层职责 * - 不负责:不属于本模块的职责由对应模块承担 * * 被谁调用:项目初始化、配置加载 * 调用谁:node:fs、node:path * * 数据流:输入 → ConfigWriteContextKind 处理 → 输出 * 持久化:读写本地文件(详见代码内路径) */ type ConfigWriteContextKind = "greenfield" | "existing_project" | "runtime_inference"; export interface ConfigWriteContext { kind: ConfigWriteContextKind; project_path: string; evidence: string[]; confirmed: boolean; } export interface ConfigWriteDecision { allowed: boolean; reason_zh: string; requires_confirmation: boolean; } export interface WriteBoundaryViolation { target_path: string; reason_zh: string; } export declare function classifyConfigContext(projectDir: string, opts?: { runtime_inference?: boolean; confirmed?: boolean; }): ConfigWriteContext; export declare function isWriteAllowed(context: ConfigWriteContext, targetPath: string): ConfigWriteDecision; export declare function validateWriteBoundary(context: ConfigWriteContext, writes: string[]): WriteBoundaryViolation[]; export {};