import { r as TimarroTimelineData, t as TimarroDate } from "./types-CGDckUqn.cjs"; //#region src/schema/validate.d.ts /** * Dependency-free structural validator — used by the element at runtime so the * embed bundle ships without zod. The canonical Zod schema (`timarro/schema`) * delegates its date semantics to {@link explainDateProblem}, keeping the two * validators in sync by construction (plus a parity test). * * Semantics: collects ALL issues (no fail-fast); unknown extra fields are ignored; * on success returns the same object reference, typed. */ interface ValidationIssue { /** Dotted/indexed path, e.g. `events[3].date.precision`; `(root)` for the top level. */ path: string; message: string; } type ValidationResult = { ok: true; data: TimarroTimelineData; } | { ok: false; issues: ValidationIssue[]; }; /** * The single source of truth for date-field semantics (grammar, precision match, * end-not-before-start). Returns `null` when the date object is consistent. */ declare function explainDateProblem(date: TimarroDate): { field: 'start' | 'end' | 'precision'; message: string; } | null; declare function validateTimelineData(input: unknown): ValidationResult; //#endregion export { validateTimelineData as i, ValidationResult as n, explainDateProblem as r, ValidationIssue as t }; //# sourceMappingURL=validate-YTrlx6Bn.d.cts.map