/** * Normalizer: nested authoring Page Spec -> flat internal IR. * * The author-facing shape is optimized for authoring (nested, tolerant of * omission, semantic). The IR is optimized for the compiler (flat, ordered, * every node resolved). This module owns the crossing between them, including * stable node IDs, slot wiring, and the cross-field checks that a per-prop * schema cannot express. */ import { type Diagnostic } from '../diagnostics.js'; import type { IrDocument } from '../ir.js'; import type { BlockRegistry } from '../registry/block-module.js'; import { type BoundsReport } from './bounds.js'; import { type ParseOptions } from './parse.js'; export interface NormalizeResult { ir: IrDocument; diagnostics: Diagnostic[]; bounds: BoundsReport; } export declare const NETWORK_CAPABILITIES: readonly ["media", "fonts", "images"]; export interface NormalizeOptions extends ParseOptions { /** Internal: the block registry to normalize against. Defaults to the built-in one. */ registry?: BlockRegistry; } /** Build the IR without throwing: diagnostics are returned, not raised. */ export declare function normalizeSpec(input: unknown, options?: NormalizeOptions): NormalizeResult; /** * Normalize or throw. * * The thrown error carries the first error's code and path, and lists every * diagnostic in `details.diagnostics` so a caller can render a full report. */ export declare function normalize(input: unknown, options?: NormalizeOptions): IrDocument; //# sourceMappingURL=normalize.d.ts.map