/** * validate.ts — whole-project consistency checks built on the index. * * Surfaces the broken references, dead content and dangling links that the * editor never warns about: transfers to non-existent maps, events that call * missing common events / items / troops, switches and variables that are * declared but never touched, duplicate database IDs, and maps the player can * never reach. * * Roadmap #10 (Validaciones automáticas). */ import type { ProjectIndex } from "./projectIndex.js"; export type Severity = "error" | "warning" | "info"; export interface ValidationIssue { severity: Severity; category: string; message: string; mapId?: number; eventId?: number; entity?: string; id?: number; } export interface ValidationReport { issueCount: number; bySeverity: Record; issues: ValidationIssue[]; } export declare function validateProject(index: ProjectIndex): ValidationReport;