import { a as PRECISIONS, c as SourceType, i as TimelineMeta, l as VISIBILITIES, n as TimarroEvent, o as Precision, r as TimarroTimelineData, s as SOURCE_TYPES, t as TimarroDate, u as Visibility } from "../types-CGDckUqn.js"; import { i as validateTimelineData, n as ValidationResult, r as explainDateProblem, t as ValidationIssue } from "../validate-WJQhzvoH.js"; import { z } from "zod"; //#region src/schema/zod.d.ts /** * Canonical Zod schema — the platform-side contract (`import from 'timarro/schema'`). * * Date semantics (grammar, precision match, end-not-before-start) delegate to * {@link explainDateProblem}, the same function the dependency-free runtime * validator uses — one grammar implementation, two validation surfaces. * * Enumerated values come from {@link ./literals} so they cannot drift from the * hand-rolled validator. * * MUST NOT be imported from the core element entry (src/index.ts / src/element.ts): * the embed bundle ships zod-free. */ declare const precisionSchema: z.ZodEnum<{ year: "year"; month: "month"; day: "day"; datetime: "datetime"; }>; declare const sourceTypeSchema: z.ZodEnum<{ manual: "manual"; text: "text"; json: "json"; video: "video"; audio: "audio"; }>; declare const visibilitySchema: z.ZodEnum<{ public: "public"; unlisted: "unlisted"; private: "private"; }>; declare const timarroDateSchema: z.ZodObject<{ start: z.ZodString; end: z.ZodOptional; precision: z.ZodEnum<{ year: "year"; month: "month"; day: "day"; datetime: "datetime"; }>; circa: z.ZodOptional; }, z.core.$strip>; declare const timarroEventSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; date: z.ZodObject<{ start: z.ZodString; end: z.ZodOptional; precision: z.ZodEnum<{ year: "year"; month: "month"; day: "day"; datetime: "datetime"; }>; circa: z.ZodOptional; }, z.core.$strip>; description: z.ZodOptional; entities: z.ZodOptional>; mediaUrls: z.ZodOptional>; sourceRef: z.ZodOptional; color: z.ZodOptional; order: z.ZodOptional; timelineId: z.ZodOptional; revision: z.ZodOptional; }, z.core.$strip>; declare const timelineMetaSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; description: z.ZodOptional; coverImageUrl: z.ZodOptional; createdBy: z.ZodOptional; visibility: z.ZodOptional>; sourceTypes: z.ZodOptional>>; }, z.core.$strip>; declare const timarroTimelineDataSchema: z.ZodObject<{ timeline: z.ZodObject<{ id: z.ZodString; title: z.ZodString; description: z.ZodOptional; coverImageUrl: z.ZodOptional; createdBy: z.ZodOptional; visibility: z.ZodOptional>; sourceTypes: z.ZodOptional>>; }, z.core.$strip>; events: z.ZodArray; precision: z.ZodEnum<{ year: "year"; month: "month"; day: "day"; datetime: "datetime"; }>; circa: z.ZodOptional; }, z.core.$strip>; description: z.ZodOptional; entities: z.ZodOptional>; mediaUrls: z.ZodOptional>; sourceRef: z.ZodOptional; color: z.ZodOptional; order: z.ZodOptional; timelineId: z.ZodOptional; revision: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; //#endregion export { PRECISIONS, type Precision, SOURCE_TYPES, type SourceType, type TimarroDate, type TimarroEvent, type TimarroTimelineData, type TimelineMeta, VISIBILITIES, type ValidationIssue, type ValidationResult, type Visibility, explainDateProblem, precisionSchema, sourceTypeSchema, timarroDateSchema, timarroEventSchema, timarroTimelineDataSchema, timelineMetaSchema, validateTimelineData, visibilitySchema }; //# sourceMappingURL=index.d.ts.map