/** * `validate()` — report everything wrong with a spec without normalizing or * rendering it. Used by the CLI and by skills that want a pre-flight check. */ import type { Diagnostic } from '../diagnostics.js'; import { type ParseOptions } from './parse.js'; export interface ValidateSummary { title: string; themePreset: string; blocks: number; nodes: number; depth: number; bytes: number; } export interface ValidateResult { ok: boolean; diagnostics: Diagnostic[]; summary: ValidateSummary; } /** * Validate a spec given as a string (JSON or YAML) or an already-parsed object. * Never throws for spec problems; a thrown error is reserved for programmer * error. */ export declare function validate(input: unknown, options?: ParseOptions): ValidateResult; /** Validate or throw the first error, for callers that want exception flow. */ export declare function validateOrThrow(input: unknown, options?: ParseOptions): ValidateResult; //# sourceMappingURL=validate.d.ts.map