import type { PolicyDefinition } from "./types.js"; import type { PolicySource } from "./source.js"; import type { Requirement, BlockingLevel, TaskType } from "../types.js"; import type { ChangeContext } from "../types.js"; declare const FILE_SCHEMA_VERSION = 1; /** Policy 文件格式(磁盘 schema,含 description)。 */ export interface PolicyFile { schema_version: typeof FILE_SCHEMA_VERSION; policyId: string; description?: string; scope?: { taskType?: TaskType[]; changeType?: ChangeContext["changeType"][]; }; requirements: Requirement[]; blockingLevel: BlockingLevel; source?: string; version?: string; } /** FilePolicySource — 扫描 governance/policies 目录,加载 JSON Policy(校验 fail-close)。 */ export declare class FilePolicySource implements PolicySource { private readonly projectRoot; constructor(projectRoot: string); getDefinitions(): PolicyDefinition[]; } export {};