/** * Post-render verification. * * The compiler checks its own output before releasing it. These are invariants * that must hold for every emitted artifact regardless of the spec, so a * regression in a renderer fails the compile instead of shipping a page with a * missing main landmark or an inline handler. */ import { type Diagnostic } from '../diagnostics.js'; import type { IrDocument } from '../ir.js'; import type { FeatureModule } from '../registry/block-module.js'; import type { RuntimeFeature } from '../registry/roster.js'; export interface VerifyInput { html: string; ir: IrDocument; csp: string; styleNonce: string; scriptNonce: string; features: ReadonlySet; css: string; js: string; /** Registry features; their markers are checked like the core ones. */ moduleFeatures?: readonly FeatureModule[]; } export declare function verifyDocument(input: VerifyInput): Diagnostic[]; /** Verify the IR itself before rendering, catching compiler-side inconsistencies. */ export declare function verifyIr(ir: IrDocument, features: ReadonlySet): Diagnostic[]; //# sourceMappingURL=verify.d.ts.map