/** * Config G2 — optional validation rule registry (additive diagnostics). * * Does not change language severities. Rules are off by default; when set to * `warn` / `error`, emit CONFIG_VALIDATION_RULE_* diagnostics for CI gates. * `requireDescriptions` remains deferred (no entity/command description on IR). */ import type { IR } from './ir.js'; export declare const VALIDATION_RULE_IDS: readonly ["missing-policy", "unused-entity", "orphan-relationship"]; export type ValidationRuleId = (typeof VALIDATION_RULE_IDS)[number]; export type ValidationRuleSeverity = 'off' | 'warn' | 'error'; export type ValidationRulesConfig = Partial>; export interface ValidationRuleDiagnostic { severity: 'warning' | 'error'; code: string; message: string; entity?: string; } export declare function isValidationRuleSeverity(value: unknown): value is ValidationRuleSeverity; export declare function resolveValidationRules(raw: ValidationRulesConfig | undefined): Record; /** Run configured G2 rules against compiled IR. */ export declare function runValidationRules(ir: IR, rawRules: ValidationRulesConfig | undefined): ValidationRuleDiagnostic[]; //# sourceMappingURL=validation-rules.d.ts.map