/** * pageValidator.ts — Lightweight page validation for LLM-generated HTML. * * Catches common errors (syntax, missing DOM elements, bad synthos.* calls) * before serving pages. No browser binary — static analysis only. * * Layers: * 1. Script extraction + Acorn parse → syntax errors * 2. DOM element ID inventory → missing element references * 3. SynthOS API pattern checks → hallucinated method calls */ export interface PageValidationError { type: 'syntax-error' | 'missing-element' | 'unknown-api'; message: string; source?: string; line?: number; col?: number; } export interface PageValidationResult { valid: boolean; errors: PageValidationError[]; durationMs: number; } export declare function validatePage(html: string): PageValidationResult; //# sourceMappingURL=pageValidator.d.ts.map