glost-core 0.5.0 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/LICENSE +21 -21
  3. package/README.md +1 -1
  4. package/package.json +2 -2
  5. package/src/__benchmarks__/document-creation.bench.d.ts +7 -0
  6. package/src/__benchmarks__/document-creation.bench.d.ts.map +1 -0
  7. package/src/__benchmarks__/document-creation.bench.js +71 -0
  8. package/src/__benchmarks__/document-creation.bench.js.map +1 -0
  9. package/src/__benchmarks__/traversal.bench.d.ts +7 -0
  10. package/src/__benchmarks__/traversal.bench.d.ts.map +1 -0
  11. package/src/__benchmarks__/traversal.bench.js +124 -0
  12. package/src/__benchmarks__/traversal.bench.js.map +1 -0
  13. package/src/__tests__/example.d.ts +10 -0
  14. package/src/__tests__/example.d.ts.map +1 -0
  15. package/src/__tests__/example.js +140 -0
  16. package/src/__tests__/example.js.map +1 -0
  17. package/src/__tests__/mock-data.d.ts +35 -0
  18. package/src/__tests__/mock-data.d.ts.map +1 -0
  19. package/src/__tests__/mock-data.js +591 -0
  20. package/src/__tests__/mock-data.js.map +1 -0
  21. package/src/cli/migrate.d.ts +8 -0
  22. package/src/cli/migrate.d.ts.map +1 -0
  23. package/src/cli/migrate.js +229 -0
  24. package/src/cli/migrate.js.map +1 -0
  25. package/src/errors.d.ts +168 -0
  26. package/src/errors.d.ts.map +1 -0
  27. package/src/errors.js +300 -0
  28. package/src/errors.js.map +1 -0
  29. package/src/guards.d.ts +103 -0
  30. package/src/guards.d.ts.map +1 -0
  31. package/src/guards.js +264 -0
  32. package/src/guards.js.map +1 -0
  33. package/src/index.d.ts +9 -0
  34. package/src/index.d.ts.map +1 -0
  35. package/src/index.js +25 -0
  36. package/src/index.js.map +1 -0
  37. package/src/nodes.d.ts +227 -0
  38. package/src/nodes.d.ts.map +1 -0
  39. package/src/nodes.js +243 -0
  40. package/src/nodes.js.map +1 -0
  41. package/src/types.d.ts +442 -0
  42. package/src/types.d.ts.map +1 -0
  43. package/src/types.js +51 -0
  44. package/src/types.js.map +1 -0
  45. package/src/utils.d.ts +247 -0
  46. package/src/utils.d.ts.map +1 -0
  47. package/src/utils.js +564 -0
  48. package/src/utils.js.map +1 -0
  49. package/src/validators.d.ts +1876 -0
  50. package/src/validators.d.ts.map +1 -0
  51. package/src/validators.js +302 -0
  52. package/src/validators.js.map +1 -0
  53. package/tsconfig.json +9 -9
@@ -0,0 +1,1876 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Linguistic level schema
4
+ */
5
+ export declare const LinguisticLevelSchema: z.ZodEnum<["character", "syllable", "word", "phrase", "sentence", "paragraph"]>;
6
+ /**
7
+ * Pronunciation context schema
8
+ */
9
+ export declare const PronunciationContextSchema: z.ZodEnum<["formal", "informal", "historical", "regional", "dialectal"]>;
10
+ /**
11
+ * Transcription system schema
12
+ */
13
+ export declare const TranscriptionSystemSchema: z.ZodUnion<[z.ZodLiteral<"rtgs">, z.ZodLiteral<"aua">, z.ZodLiteral<"paiboon">, z.ZodLiteral<"romaji">, z.ZodLiteral<"furigana">, z.ZodLiteral<"ipa">, z.ZodLiteral<"pinyin">, z.ZodLiteral<"hangul">, z.ZodString]>;
14
+ /**
15
+ * Language code schema
16
+ */
17
+ export declare const LanguageCodeSchema: z.ZodUnion<[z.ZodLiteral<"th">, z.ZodLiteral<"ja">, z.ZodLiteral<"zh">, z.ZodLiteral<"ko">, z.ZodLiteral<"en">, z.ZodString]>;
18
+ /**
19
+ * Script system schema
20
+ */
21
+ export declare const ScriptSystemSchema: z.ZodUnion<[z.ZodLiteral<"thai">, z.ZodLiteral<"hiragana">, z.ZodLiteral<"katakana">, z.ZodLiteral<"kanji">, z.ZodLiteral<"hanzi">, z.ZodLiteral<"hangul">, z.ZodLiteral<"latin">, z.ZodLiteral<"mixed">, z.ZodString]>;
22
+ /**
23
+ * Pronunciation variant schema
24
+ */
25
+ export declare const PronunciationVariantSchema: z.ZodObject<{
26
+ text: z.ZodString;
27
+ context: z.ZodEnum<["formal", "informal", "historical", "regional", "dialectal"]>;
28
+ notes: z.ZodOptional<z.ZodString>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ text: string;
31
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
32
+ notes?: string | undefined;
33
+ }, {
34
+ text: string;
35
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
36
+ notes?: string | undefined;
37
+ }>;
38
+ /**
39
+ * Transcription info schema
40
+ */
41
+ export declare const TranscriptionInfoSchema: z.ZodObject<{
42
+ text: z.ZodString;
43
+ system: z.ZodUnion<[z.ZodLiteral<"rtgs">, z.ZodLiteral<"aua">, z.ZodLiteral<"paiboon">, z.ZodLiteral<"romaji">, z.ZodLiteral<"furigana">, z.ZodLiteral<"ipa">, z.ZodLiteral<"pinyin">, z.ZodLiteral<"hangul">, z.ZodString]>;
44
+ variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
45
+ text: z.ZodString;
46
+ context: z.ZodEnum<["formal", "informal", "historical", "regional", "dialectal"]>;
47
+ notes: z.ZodOptional<z.ZodString>;
48
+ }, "strip", z.ZodTypeAny, {
49
+ text: string;
50
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
51
+ notes?: string | undefined;
52
+ }, {
53
+ text: string;
54
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
55
+ notes?: string | undefined;
56
+ }>, "many">>;
57
+ tone: z.ZodOptional<z.ZodNumber>;
58
+ syllables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
59
+ phonetic: z.ZodOptional<z.ZodString>;
60
+ }, "strip", z.ZodTypeAny, {
61
+ text: string;
62
+ system: string;
63
+ tone?: number | undefined;
64
+ variants?: {
65
+ text: string;
66
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
67
+ notes?: string | undefined;
68
+ }[] | undefined;
69
+ syllables?: string[] | undefined;
70
+ phonetic?: string | undefined;
71
+ }, {
72
+ text: string;
73
+ system: string;
74
+ tone?: number | undefined;
75
+ variants?: {
76
+ text: string;
77
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
78
+ notes?: string | undefined;
79
+ }[] | undefined;
80
+ syllables?: string[] | undefined;
81
+ phonetic?: string | undefined;
82
+ }>;
83
+ /**
84
+ * Transliteration data schema
85
+ */
86
+ export declare const TransliterationDataSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
87
+ text: z.ZodString;
88
+ system: z.ZodUnion<[z.ZodLiteral<"rtgs">, z.ZodLiteral<"aua">, z.ZodLiteral<"paiboon">, z.ZodLiteral<"romaji">, z.ZodLiteral<"furigana">, z.ZodLiteral<"ipa">, z.ZodLiteral<"pinyin">, z.ZodLiteral<"hangul">, z.ZodString]>;
89
+ variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
90
+ text: z.ZodString;
91
+ context: z.ZodEnum<["formal", "informal", "historical", "regional", "dialectal"]>;
92
+ notes: z.ZodOptional<z.ZodString>;
93
+ }, "strip", z.ZodTypeAny, {
94
+ text: string;
95
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
96
+ notes?: string | undefined;
97
+ }, {
98
+ text: string;
99
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
100
+ notes?: string | undefined;
101
+ }>, "many">>;
102
+ tone: z.ZodOptional<z.ZodNumber>;
103
+ syllables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
104
+ phonetic: z.ZodOptional<z.ZodString>;
105
+ }, "strip", z.ZodTypeAny, {
106
+ text: string;
107
+ system: string;
108
+ tone?: number | undefined;
109
+ variants?: {
110
+ text: string;
111
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
112
+ notes?: string | undefined;
113
+ }[] | undefined;
114
+ syllables?: string[] | undefined;
115
+ phonetic?: string | undefined;
116
+ }, {
117
+ text: string;
118
+ system: string;
119
+ tone?: number | undefined;
120
+ variants?: {
121
+ text: string;
122
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
123
+ notes?: string | undefined;
124
+ }[] | undefined;
125
+ syllables?: string[] | undefined;
126
+ phonetic?: string | undefined;
127
+ }>>;
128
+ /**
129
+ * Linguistic metadata schema
130
+ */
131
+ export declare const LinguisticMetadataSchema: z.ZodObject<{
132
+ /** @deprecated Use extras.translations instead */
133
+ meaning: z.ZodOptional<z.ZodString>;
134
+ partOfSpeech: z.ZodString;
135
+ usage: z.ZodOptional<z.ZodString>;
136
+ etymology: z.ZodOptional<z.ZodString>;
137
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
138
+ frequency: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
139
+ formality: z.ZodOptional<z.ZodEnum<["formal", "neutral", "informal"]>>;
140
+ register: z.ZodOptional<z.ZodString>;
141
+ }, "strip", z.ZodTypeAny, {
142
+ partOfSpeech: string;
143
+ examples?: string[] | undefined;
144
+ frequency?: "high" | "medium" | "low" | undefined;
145
+ meaning?: string | undefined;
146
+ usage?: string | undefined;
147
+ etymology?: string | undefined;
148
+ formality?: "neutral" | "formal" | "informal" | undefined;
149
+ register?: string | undefined;
150
+ }, {
151
+ partOfSpeech: string;
152
+ examples?: string[] | undefined;
153
+ frequency?: "high" | "medium" | "low" | undefined;
154
+ meaning?: string | undefined;
155
+ usage?: string | undefined;
156
+ etymology?: string | undefined;
157
+ formality?: "neutral" | "formal" | "informal" | undefined;
158
+ register?: string | undefined;
159
+ }>;
160
+ /**
161
+ * Base GLOST node schema
162
+ */
163
+ export declare const GLOSTNodeBaseSchema: z.ZodObject<{
164
+ type: z.ZodString;
165
+ lang: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"th">, z.ZodLiteral<"ja">, z.ZodLiteral<"zh">, z.ZodLiteral<"ko">, z.ZodLiteral<"en">, z.ZodString]>>;
166
+ script: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"thai">, z.ZodLiteral<"hiragana">, z.ZodLiteral<"katakana">, z.ZodLiteral<"kanji">, z.ZodLiteral<"hanzi">, z.ZodLiteral<"hangul">, z.ZodLiteral<"latin">, z.ZodLiteral<"mixed">, z.ZodString]>>;
167
+ level: z.ZodOptional<z.ZodEnum<["character", "syllable", "word", "phrase", "sentence", "paragraph"]>>;
168
+ position: z.ZodOptional<z.ZodAny>;
169
+ }, "strip", z.ZodTypeAny, {
170
+ type: string;
171
+ lang?: string | undefined;
172
+ position?: any;
173
+ script?: string | undefined;
174
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
175
+ }, {
176
+ type: string;
177
+ lang?: string | undefined;
178
+ position?: any;
179
+ script?: string | undefined;
180
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
181
+ }>;
182
+ /**
183
+ * GLOST word node schema
184
+ */
185
+ export declare const GLOSTWordNodeSchema: z.ZodObject<{
186
+ lang: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"th">, z.ZodLiteral<"ja">, z.ZodLiteral<"zh">, z.ZodLiteral<"ko">, z.ZodLiteral<"en">, z.ZodString]>>;
187
+ script: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"thai">, z.ZodLiteral<"hiragana">, z.ZodLiteral<"katakana">, z.ZodLiteral<"kanji">, z.ZodLiteral<"hanzi">, z.ZodLiteral<"hangul">, z.ZodLiteral<"latin">, z.ZodLiteral<"mixed">, z.ZodString]>>;
188
+ position: z.ZodOptional<z.ZodAny>;
189
+ } & {
190
+ type: z.ZodLiteral<"GLOSTWordNode">;
191
+ value: z.ZodString;
192
+ transcription: z.ZodRecord<z.ZodString, z.ZodObject<{
193
+ text: z.ZodString;
194
+ system: z.ZodUnion<[z.ZodLiteral<"rtgs">, z.ZodLiteral<"aua">, z.ZodLiteral<"paiboon">, z.ZodLiteral<"romaji">, z.ZodLiteral<"furigana">, z.ZodLiteral<"ipa">, z.ZodLiteral<"pinyin">, z.ZodLiteral<"hangul">, z.ZodString]>;
195
+ variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
196
+ text: z.ZodString;
197
+ context: z.ZodEnum<["formal", "informal", "historical", "regional", "dialectal"]>;
198
+ notes: z.ZodOptional<z.ZodString>;
199
+ }, "strip", z.ZodTypeAny, {
200
+ text: string;
201
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
202
+ notes?: string | undefined;
203
+ }, {
204
+ text: string;
205
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
206
+ notes?: string | undefined;
207
+ }>, "many">>;
208
+ tone: z.ZodOptional<z.ZodNumber>;
209
+ syllables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
210
+ phonetic: z.ZodOptional<z.ZodString>;
211
+ }, "strip", z.ZodTypeAny, {
212
+ text: string;
213
+ system: string;
214
+ tone?: number | undefined;
215
+ variants?: {
216
+ text: string;
217
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
218
+ notes?: string | undefined;
219
+ }[] | undefined;
220
+ syllables?: string[] | undefined;
221
+ phonetic?: string | undefined;
222
+ }, {
223
+ text: string;
224
+ system: string;
225
+ tone?: number | undefined;
226
+ variants?: {
227
+ text: string;
228
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
229
+ notes?: string | undefined;
230
+ }[] | undefined;
231
+ syllables?: string[] | undefined;
232
+ phonetic?: string | undefined;
233
+ }>>;
234
+ metadata: z.ZodObject<{
235
+ /** @deprecated Use extras.translations instead */
236
+ meaning: z.ZodOptional<z.ZodString>;
237
+ partOfSpeech: z.ZodString;
238
+ usage: z.ZodOptional<z.ZodString>;
239
+ etymology: z.ZodOptional<z.ZodString>;
240
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
241
+ frequency: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
242
+ formality: z.ZodOptional<z.ZodEnum<["formal", "neutral", "informal"]>>;
243
+ register: z.ZodOptional<z.ZodString>;
244
+ }, "strip", z.ZodTypeAny, {
245
+ partOfSpeech: string;
246
+ examples?: string[] | undefined;
247
+ frequency?: "high" | "medium" | "low" | undefined;
248
+ meaning?: string | undefined;
249
+ usage?: string | undefined;
250
+ etymology?: string | undefined;
251
+ formality?: "neutral" | "formal" | "informal" | undefined;
252
+ register?: string | undefined;
253
+ }, {
254
+ partOfSpeech: string;
255
+ examples?: string[] | undefined;
256
+ frequency?: "high" | "medium" | "low" | undefined;
257
+ meaning?: string | undefined;
258
+ usage?: string | undefined;
259
+ etymology?: string | undefined;
260
+ formality?: "neutral" | "formal" | "informal" | undefined;
261
+ register?: string | undefined;
262
+ }>;
263
+ level: z.ZodEnum<["character", "syllable", "word", "phrase", "sentence", "paragraph"]>;
264
+ children: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
265
+ }, "strip", z.ZodTypeAny, {
266
+ value: string;
267
+ type: "GLOSTWordNode";
268
+ metadata: {
269
+ partOfSpeech: string;
270
+ examples?: string[] | undefined;
271
+ frequency?: "high" | "medium" | "low" | undefined;
272
+ meaning?: string | undefined;
273
+ usage?: string | undefined;
274
+ etymology?: string | undefined;
275
+ formality?: "neutral" | "formal" | "informal" | undefined;
276
+ register?: string | undefined;
277
+ };
278
+ children: any[];
279
+ transcription: Record<string, {
280
+ text: string;
281
+ system: string;
282
+ tone?: number | undefined;
283
+ variants?: {
284
+ text: string;
285
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
286
+ notes?: string | undefined;
287
+ }[] | undefined;
288
+ syllables?: string[] | undefined;
289
+ phonetic?: string | undefined;
290
+ }>;
291
+ level: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph";
292
+ lang?: string | undefined;
293
+ position?: any;
294
+ script?: string | undefined;
295
+ }, {
296
+ value: string;
297
+ type: "GLOSTWordNode";
298
+ metadata: {
299
+ partOfSpeech: string;
300
+ examples?: string[] | undefined;
301
+ frequency?: "high" | "medium" | "low" | undefined;
302
+ meaning?: string | undefined;
303
+ usage?: string | undefined;
304
+ etymology?: string | undefined;
305
+ formality?: "neutral" | "formal" | "informal" | undefined;
306
+ register?: string | undefined;
307
+ };
308
+ transcription: Record<string, {
309
+ text: string;
310
+ system: string;
311
+ tone?: number | undefined;
312
+ variants?: {
313
+ text: string;
314
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
315
+ notes?: string | undefined;
316
+ }[] | undefined;
317
+ syllables?: string[] | undefined;
318
+ phonetic?: string | undefined;
319
+ }>;
320
+ level: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph";
321
+ lang?: string | undefined;
322
+ children?: any[] | undefined;
323
+ position?: any;
324
+ script?: string | undefined;
325
+ }>;
326
+ /**
327
+ * GLOST sentence node schema
328
+ */
329
+ export declare const GLOSTSentenceNodeSchema: z.ZodObject<{
330
+ level: z.ZodOptional<z.ZodEnum<["character", "syllable", "word", "phrase", "sentence", "paragraph"]>>;
331
+ position: z.ZodOptional<z.ZodAny>;
332
+ } & {
333
+ type: z.ZodLiteral<"GLOSTSentenceNode">;
334
+ originalText: z.ZodString;
335
+ lang: z.ZodUnion<[z.ZodLiteral<"th">, z.ZodLiteral<"ja">, z.ZodLiteral<"zh">, z.ZodLiteral<"ko">, z.ZodLiteral<"en">, z.ZodString]>;
336
+ script: z.ZodUnion<[z.ZodLiteral<"thai">, z.ZodLiteral<"hiragana">, z.ZodLiteral<"katakana">, z.ZodLiteral<"kanji">, z.ZodLiteral<"hanzi">, z.ZodLiteral<"hangul">, z.ZodLiteral<"latin">, z.ZodLiteral<"mixed">, z.ZodString]>;
337
+ transcription: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
338
+ text: z.ZodString;
339
+ system: z.ZodUnion<[z.ZodLiteral<"rtgs">, z.ZodLiteral<"aua">, z.ZodLiteral<"paiboon">, z.ZodLiteral<"romaji">, z.ZodLiteral<"furigana">, z.ZodLiteral<"ipa">, z.ZodLiteral<"pinyin">, z.ZodLiteral<"hangul">, z.ZodString]>;
340
+ variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
341
+ text: z.ZodString;
342
+ context: z.ZodEnum<["formal", "informal", "historical", "regional", "dialectal"]>;
343
+ notes: z.ZodOptional<z.ZodString>;
344
+ }, "strip", z.ZodTypeAny, {
345
+ text: string;
346
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
347
+ notes?: string | undefined;
348
+ }, {
349
+ text: string;
350
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
351
+ notes?: string | undefined;
352
+ }>, "many">>;
353
+ tone: z.ZodOptional<z.ZodNumber>;
354
+ syllables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
355
+ phonetic: z.ZodOptional<z.ZodString>;
356
+ }, "strip", z.ZodTypeAny, {
357
+ text: string;
358
+ system: string;
359
+ tone?: number | undefined;
360
+ variants?: {
361
+ text: string;
362
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
363
+ notes?: string | undefined;
364
+ }[] | undefined;
365
+ syllables?: string[] | undefined;
366
+ phonetic?: string | undefined;
367
+ }, {
368
+ text: string;
369
+ system: string;
370
+ tone?: number | undefined;
371
+ variants?: {
372
+ text: string;
373
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
374
+ notes?: string | undefined;
375
+ }[] | undefined;
376
+ syllables?: string[] | undefined;
377
+ phonetic?: string | undefined;
378
+ }>>>;
379
+ children: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
380
+ }, "strip", z.ZodTypeAny, {
381
+ type: "GLOSTSentenceNode";
382
+ lang: string;
383
+ children: any[];
384
+ script: string;
385
+ originalText: string;
386
+ position?: any;
387
+ transcription?: Record<string, {
388
+ text: string;
389
+ system: string;
390
+ tone?: number | undefined;
391
+ variants?: {
392
+ text: string;
393
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
394
+ notes?: string | undefined;
395
+ }[] | undefined;
396
+ syllables?: string[] | undefined;
397
+ phonetic?: string | undefined;
398
+ }> | undefined;
399
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
400
+ }, {
401
+ type: "GLOSTSentenceNode";
402
+ lang: string;
403
+ script: string;
404
+ originalText: string;
405
+ children?: any[] | undefined;
406
+ position?: any;
407
+ transcription?: Record<string, {
408
+ text: string;
409
+ system: string;
410
+ tone?: number | undefined;
411
+ variants?: {
412
+ text: string;
413
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
414
+ notes?: string | undefined;
415
+ }[] | undefined;
416
+ syllables?: string[] | undefined;
417
+ phonetic?: string | undefined;
418
+ }> | undefined;
419
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
420
+ }>;
421
+ /**
422
+ * GLOST paragraph node schema
423
+ */
424
+ export declare const GLOSTParagraphNodeSchema: z.ZodObject<{
425
+ level: z.ZodOptional<z.ZodEnum<["character", "syllable", "word", "phrase", "sentence", "paragraph"]>>;
426
+ position: z.ZodOptional<z.ZodAny>;
427
+ } & {
428
+ type: z.ZodLiteral<"GLOSTParagraphNode">;
429
+ lang: z.ZodUnion<[z.ZodLiteral<"th">, z.ZodLiteral<"ja">, z.ZodLiteral<"zh">, z.ZodLiteral<"ko">, z.ZodLiteral<"en">, z.ZodString]>;
430
+ script: z.ZodUnion<[z.ZodLiteral<"thai">, z.ZodLiteral<"hiragana">, z.ZodLiteral<"katakana">, z.ZodLiteral<"kanji">, z.ZodLiteral<"hanzi">, z.ZodLiteral<"hangul">, z.ZodLiteral<"latin">, z.ZodLiteral<"mixed">, z.ZodString]>;
431
+ children: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
432
+ }, "strip", z.ZodTypeAny, {
433
+ type: "GLOSTParagraphNode";
434
+ lang: string;
435
+ children: any[];
436
+ script: string;
437
+ position?: any;
438
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
439
+ }, {
440
+ type: "GLOSTParagraphNode";
441
+ lang: string;
442
+ script: string;
443
+ children?: any[] | undefined;
444
+ position?: any;
445
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
446
+ }>;
447
+ /**
448
+ * GLOST root node schema
449
+ */
450
+ export declare const GLOSTRootNodeSchema: z.ZodObject<{
451
+ level: z.ZodOptional<z.ZodEnum<["character", "syllable", "word", "phrase", "sentence", "paragraph"]>>;
452
+ position: z.ZodOptional<z.ZodAny>;
453
+ } & {
454
+ type: z.ZodLiteral<"GLOSTRootNode">;
455
+ lang: z.ZodUnion<[z.ZodLiteral<"th">, z.ZodLiteral<"ja">, z.ZodLiteral<"zh">, z.ZodLiteral<"ko">, z.ZodLiteral<"en">, z.ZodString]>;
456
+ script: z.ZodUnion<[z.ZodLiteral<"thai">, z.ZodLiteral<"hiragana">, z.ZodLiteral<"katakana">, z.ZodLiteral<"kanji">, z.ZodLiteral<"hanzi">, z.ZodLiteral<"hangul">, z.ZodLiteral<"latin">, z.ZodLiteral<"mixed">, z.ZodString]>;
457
+ metadata: z.ZodOptional<z.ZodObject<{
458
+ title: z.ZodOptional<z.ZodString>;
459
+ author: z.ZodOptional<z.ZodString>;
460
+ date: z.ZodOptional<z.ZodString>;
461
+ description: z.ZodOptional<z.ZodString>;
462
+ }, "strip", z.ZodTypeAny, {
463
+ date?: string | undefined;
464
+ title?: string | undefined;
465
+ author?: string | undefined;
466
+ description?: string | undefined;
467
+ }, {
468
+ date?: string | undefined;
469
+ title?: string | undefined;
470
+ author?: string | undefined;
471
+ description?: string | undefined;
472
+ }>>;
473
+ children: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
474
+ }, "strip", z.ZodTypeAny, {
475
+ type: "GLOSTRootNode";
476
+ lang: string;
477
+ children: any[];
478
+ script: string;
479
+ metadata?: {
480
+ date?: string | undefined;
481
+ title?: string | undefined;
482
+ author?: string | undefined;
483
+ description?: string | undefined;
484
+ } | undefined;
485
+ position?: any;
486
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
487
+ }, {
488
+ type: "GLOSTRootNode";
489
+ lang: string;
490
+ script: string;
491
+ metadata?: {
492
+ date?: string | undefined;
493
+ title?: string | undefined;
494
+ author?: string | undefined;
495
+ description?: string | undefined;
496
+ } | undefined;
497
+ children?: any[] | undefined;
498
+ position?: any;
499
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
500
+ }>;
501
+ /**
502
+ * Union schema for all GLOST node types
503
+ */
504
+ export declare const GLOSTNodeSchema: z.ZodUnion<[z.ZodObject<{
505
+ lang: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"th">, z.ZodLiteral<"ja">, z.ZodLiteral<"zh">, z.ZodLiteral<"ko">, z.ZodLiteral<"en">, z.ZodString]>>;
506
+ script: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"thai">, z.ZodLiteral<"hiragana">, z.ZodLiteral<"katakana">, z.ZodLiteral<"kanji">, z.ZodLiteral<"hanzi">, z.ZodLiteral<"hangul">, z.ZodLiteral<"latin">, z.ZodLiteral<"mixed">, z.ZodString]>>;
507
+ position: z.ZodOptional<z.ZodAny>;
508
+ } & {
509
+ type: z.ZodLiteral<"GLOSTWordNode">;
510
+ value: z.ZodString;
511
+ transcription: z.ZodRecord<z.ZodString, z.ZodObject<{
512
+ text: z.ZodString;
513
+ system: z.ZodUnion<[z.ZodLiteral<"rtgs">, z.ZodLiteral<"aua">, z.ZodLiteral<"paiboon">, z.ZodLiteral<"romaji">, z.ZodLiteral<"furigana">, z.ZodLiteral<"ipa">, z.ZodLiteral<"pinyin">, z.ZodLiteral<"hangul">, z.ZodString]>;
514
+ variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
515
+ text: z.ZodString;
516
+ context: z.ZodEnum<["formal", "informal", "historical", "regional", "dialectal"]>;
517
+ notes: z.ZodOptional<z.ZodString>;
518
+ }, "strip", z.ZodTypeAny, {
519
+ text: string;
520
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
521
+ notes?: string | undefined;
522
+ }, {
523
+ text: string;
524
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
525
+ notes?: string | undefined;
526
+ }>, "many">>;
527
+ tone: z.ZodOptional<z.ZodNumber>;
528
+ syllables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
529
+ phonetic: z.ZodOptional<z.ZodString>;
530
+ }, "strip", z.ZodTypeAny, {
531
+ text: string;
532
+ system: string;
533
+ tone?: number | undefined;
534
+ variants?: {
535
+ text: string;
536
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
537
+ notes?: string | undefined;
538
+ }[] | undefined;
539
+ syllables?: string[] | undefined;
540
+ phonetic?: string | undefined;
541
+ }, {
542
+ text: string;
543
+ system: string;
544
+ tone?: number | undefined;
545
+ variants?: {
546
+ text: string;
547
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
548
+ notes?: string | undefined;
549
+ }[] | undefined;
550
+ syllables?: string[] | undefined;
551
+ phonetic?: string | undefined;
552
+ }>>;
553
+ metadata: z.ZodObject<{
554
+ /** @deprecated Use extras.translations instead */
555
+ meaning: z.ZodOptional<z.ZodString>;
556
+ partOfSpeech: z.ZodString;
557
+ usage: z.ZodOptional<z.ZodString>;
558
+ etymology: z.ZodOptional<z.ZodString>;
559
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
560
+ frequency: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
561
+ formality: z.ZodOptional<z.ZodEnum<["formal", "neutral", "informal"]>>;
562
+ register: z.ZodOptional<z.ZodString>;
563
+ }, "strip", z.ZodTypeAny, {
564
+ partOfSpeech: string;
565
+ examples?: string[] | undefined;
566
+ frequency?: "high" | "medium" | "low" | undefined;
567
+ meaning?: string | undefined;
568
+ usage?: string | undefined;
569
+ etymology?: string | undefined;
570
+ formality?: "neutral" | "formal" | "informal" | undefined;
571
+ register?: string | undefined;
572
+ }, {
573
+ partOfSpeech: string;
574
+ examples?: string[] | undefined;
575
+ frequency?: "high" | "medium" | "low" | undefined;
576
+ meaning?: string | undefined;
577
+ usage?: string | undefined;
578
+ etymology?: string | undefined;
579
+ formality?: "neutral" | "formal" | "informal" | undefined;
580
+ register?: string | undefined;
581
+ }>;
582
+ level: z.ZodEnum<["character", "syllable", "word", "phrase", "sentence", "paragraph"]>;
583
+ children: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
584
+ }, "strip", z.ZodTypeAny, {
585
+ value: string;
586
+ type: "GLOSTWordNode";
587
+ metadata: {
588
+ partOfSpeech: string;
589
+ examples?: string[] | undefined;
590
+ frequency?: "high" | "medium" | "low" | undefined;
591
+ meaning?: string | undefined;
592
+ usage?: string | undefined;
593
+ etymology?: string | undefined;
594
+ formality?: "neutral" | "formal" | "informal" | undefined;
595
+ register?: string | undefined;
596
+ };
597
+ children: any[];
598
+ transcription: Record<string, {
599
+ text: string;
600
+ system: string;
601
+ tone?: number | undefined;
602
+ variants?: {
603
+ text: string;
604
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
605
+ notes?: string | undefined;
606
+ }[] | undefined;
607
+ syllables?: string[] | undefined;
608
+ phonetic?: string | undefined;
609
+ }>;
610
+ level: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph";
611
+ lang?: string | undefined;
612
+ position?: any;
613
+ script?: string | undefined;
614
+ }, {
615
+ value: string;
616
+ type: "GLOSTWordNode";
617
+ metadata: {
618
+ partOfSpeech: string;
619
+ examples?: string[] | undefined;
620
+ frequency?: "high" | "medium" | "low" | undefined;
621
+ meaning?: string | undefined;
622
+ usage?: string | undefined;
623
+ etymology?: string | undefined;
624
+ formality?: "neutral" | "formal" | "informal" | undefined;
625
+ register?: string | undefined;
626
+ };
627
+ transcription: Record<string, {
628
+ text: string;
629
+ system: string;
630
+ tone?: number | undefined;
631
+ variants?: {
632
+ text: string;
633
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
634
+ notes?: string | undefined;
635
+ }[] | undefined;
636
+ syllables?: string[] | undefined;
637
+ phonetic?: string | undefined;
638
+ }>;
639
+ level: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph";
640
+ lang?: string | undefined;
641
+ children?: any[] | undefined;
642
+ position?: any;
643
+ script?: string | undefined;
644
+ }>, z.ZodObject<{
645
+ level: z.ZodOptional<z.ZodEnum<["character", "syllable", "word", "phrase", "sentence", "paragraph"]>>;
646
+ position: z.ZodOptional<z.ZodAny>;
647
+ } & {
648
+ type: z.ZodLiteral<"GLOSTSentenceNode">;
649
+ originalText: z.ZodString;
650
+ lang: z.ZodUnion<[z.ZodLiteral<"th">, z.ZodLiteral<"ja">, z.ZodLiteral<"zh">, z.ZodLiteral<"ko">, z.ZodLiteral<"en">, z.ZodString]>;
651
+ script: z.ZodUnion<[z.ZodLiteral<"thai">, z.ZodLiteral<"hiragana">, z.ZodLiteral<"katakana">, z.ZodLiteral<"kanji">, z.ZodLiteral<"hanzi">, z.ZodLiteral<"hangul">, z.ZodLiteral<"latin">, z.ZodLiteral<"mixed">, z.ZodString]>;
652
+ transcription: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
653
+ text: z.ZodString;
654
+ system: z.ZodUnion<[z.ZodLiteral<"rtgs">, z.ZodLiteral<"aua">, z.ZodLiteral<"paiboon">, z.ZodLiteral<"romaji">, z.ZodLiteral<"furigana">, z.ZodLiteral<"ipa">, z.ZodLiteral<"pinyin">, z.ZodLiteral<"hangul">, z.ZodString]>;
655
+ variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
656
+ text: z.ZodString;
657
+ context: z.ZodEnum<["formal", "informal", "historical", "regional", "dialectal"]>;
658
+ notes: z.ZodOptional<z.ZodString>;
659
+ }, "strip", z.ZodTypeAny, {
660
+ text: string;
661
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
662
+ notes?: string | undefined;
663
+ }, {
664
+ text: string;
665
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
666
+ notes?: string | undefined;
667
+ }>, "many">>;
668
+ tone: z.ZodOptional<z.ZodNumber>;
669
+ syllables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
670
+ phonetic: z.ZodOptional<z.ZodString>;
671
+ }, "strip", z.ZodTypeAny, {
672
+ text: string;
673
+ system: string;
674
+ tone?: number | undefined;
675
+ variants?: {
676
+ text: string;
677
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
678
+ notes?: string | undefined;
679
+ }[] | undefined;
680
+ syllables?: string[] | undefined;
681
+ phonetic?: string | undefined;
682
+ }, {
683
+ text: string;
684
+ system: string;
685
+ tone?: number | undefined;
686
+ variants?: {
687
+ text: string;
688
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
689
+ notes?: string | undefined;
690
+ }[] | undefined;
691
+ syllables?: string[] | undefined;
692
+ phonetic?: string | undefined;
693
+ }>>>;
694
+ children: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
695
+ }, "strip", z.ZodTypeAny, {
696
+ type: "GLOSTSentenceNode";
697
+ lang: string;
698
+ children: any[];
699
+ script: string;
700
+ originalText: string;
701
+ position?: any;
702
+ transcription?: Record<string, {
703
+ text: string;
704
+ system: string;
705
+ tone?: number | undefined;
706
+ variants?: {
707
+ text: string;
708
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
709
+ notes?: string | undefined;
710
+ }[] | undefined;
711
+ syllables?: string[] | undefined;
712
+ phonetic?: string | undefined;
713
+ }> | undefined;
714
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
715
+ }, {
716
+ type: "GLOSTSentenceNode";
717
+ lang: string;
718
+ script: string;
719
+ originalText: string;
720
+ children?: any[] | undefined;
721
+ position?: any;
722
+ transcription?: Record<string, {
723
+ text: string;
724
+ system: string;
725
+ tone?: number | undefined;
726
+ variants?: {
727
+ text: string;
728
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
729
+ notes?: string | undefined;
730
+ }[] | undefined;
731
+ syllables?: string[] | undefined;
732
+ phonetic?: string | undefined;
733
+ }> | undefined;
734
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
735
+ }>, z.ZodObject<{
736
+ level: z.ZodOptional<z.ZodEnum<["character", "syllable", "word", "phrase", "sentence", "paragraph"]>>;
737
+ position: z.ZodOptional<z.ZodAny>;
738
+ } & {
739
+ type: z.ZodLiteral<"GLOSTParagraphNode">;
740
+ lang: z.ZodUnion<[z.ZodLiteral<"th">, z.ZodLiteral<"ja">, z.ZodLiteral<"zh">, z.ZodLiteral<"ko">, z.ZodLiteral<"en">, z.ZodString]>;
741
+ script: z.ZodUnion<[z.ZodLiteral<"thai">, z.ZodLiteral<"hiragana">, z.ZodLiteral<"katakana">, z.ZodLiteral<"kanji">, z.ZodLiteral<"hanzi">, z.ZodLiteral<"hangul">, z.ZodLiteral<"latin">, z.ZodLiteral<"mixed">, z.ZodString]>;
742
+ children: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
743
+ }, "strip", z.ZodTypeAny, {
744
+ type: "GLOSTParagraphNode";
745
+ lang: string;
746
+ children: any[];
747
+ script: string;
748
+ position?: any;
749
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
750
+ }, {
751
+ type: "GLOSTParagraphNode";
752
+ lang: string;
753
+ script: string;
754
+ children?: any[] | undefined;
755
+ position?: any;
756
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
757
+ }>, z.ZodObject<{
758
+ level: z.ZodOptional<z.ZodEnum<["character", "syllable", "word", "phrase", "sentence", "paragraph"]>>;
759
+ position: z.ZodOptional<z.ZodAny>;
760
+ } & {
761
+ type: z.ZodLiteral<"GLOSTRootNode">;
762
+ lang: z.ZodUnion<[z.ZodLiteral<"th">, z.ZodLiteral<"ja">, z.ZodLiteral<"zh">, z.ZodLiteral<"ko">, z.ZodLiteral<"en">, z.ZodString]>;
763
+ script: z.ZodUnion<[z.ZodLiteral<"thai">, z.ZodLiteral<"hiragana">, z.ZodLiteral<"katakana">, z.ZodLiteral<"kanji">, z.ZodLiteral<"hanzi">, z.ZodLiteral<"hangul">, z.ZodLiteral<"latin">, z.ZodLiteral<"mixed">, z.ZodString]>;
764
+ metadata: z.ZodOptional<z.ZodObject<{
765
+ title: z.ZodOptional<z.ZodString>;
766
+ author: z.ZodOptional<z.ZodString>;
767
+ date: z.ZodOptional<z.ZodString>;
768
+ description: z.ZodOptional<z.ZodString>;
769
+ }, "strip", z.ZodTypeAny, {
770
+ date?: string | undefined;
771
+ title?: string | undefined;
772
+ author?: string | undefined;
773
+ description?: string | undefined;
774
+ }, {
775
+ date?: string | undefined;
776
+ title?: string | undefined;
777
+ author?: string | undefined;
778
+ description?: string | undefined;
779
+ }>>;
780
+ children: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
781
+ }, "strip", z.ZodTypeAny, {
782
+ type: "GLOSTRootNode";
783
+ lang: string;
784
+ children: any[];
785
+ script: string;
786
+ metadata?: {
787
+ date?: string | undefined;
788
+ title?: string | undefined;
789
+ author?: string | undefined;
790
+ description?: string | undefined;
791
+ } | undefined;
792
+ position?: any;
793
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
794
+ }, {
795
+ type: "GLOSTRootNode";
796
+ lang: string;
797
+ script: string;
798
+ metadata?: {
799
+ date?: string | undefined;
800
+ title?: string | undefined;
801
+ author?: string | undefined;
802
+ description?: string | undefined;
803
+ } | undefined;
804
+ children?: any[] | undefined;
805
+ position?: any;
806
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
807
+ }>]>;
808
+ /**
809
+ * Validate an GLOST word node
810
+ */
811
+ export declare function validateGLOSTWordNode(data: unknown): data is z.infer<typeof GLOSTWordNodeSchema>;
812
+ /**
813
+ * Validate an GLOST sentence node
814
+ */
815
+ export declare function validateGLOSTSentenceNode(data: unknown): data is z.infer<typeof GLOSTSentenceNodeSchema>;
816
+ /**
817
+ * Validate an GLOST paragraph node
818
+ */
819
+ export declare function validateGLOSTParagraphNode(data: unknown): data is z.infer<typeof GLOSTParagraphNodeSchema>;
820
+ /**
821
+ * Validate an GLOST root node
822
+ */
823
+ export declare function validateGLOSTRootNode(data: unknown): data is z.infer<typeof GLOSTRootNodeSchema>;
824
+ /**
825
+ * Validate any GLOST node
826
+ */
827
+ export declare function validateGLOSTNode(data: unknown): data is z.infer<typeof GLOSTNodeSchema>;
828
+ /**
829
+ * Parse and validate GLOST data with error details
830
+ */
831
+ export declare function parseGLOSTNode(data: unknown): z.SafeParseReturnType<{
832
+ value: string;
833
+ type: "GLOSTWordNode";
834
+ metadata: {
835
+ partOfSpeech: string;
836
+ examples?: string[] | undefined;
837
+ frequency?: "high" | "medium" | "low" | undefined;
838
+ meaning?: string | undefined;
839
+ usage?: string | undefined;
840
+ etymology?: string | undefined;
841
+ formality?: "neutral" | "formal" | "informal" | undefined;
842
+ register?: string | undefined;
843
+ };
844
+ transcription: Record<string, {
845
+ text: string;
846
+ system: string;
847
+ tone?: number | undefined;
848
+ variants?: {
849
+ text: string;
850
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
851
+ notes?: string | undefined;
852
+ }[] | undefined;
853
+ syllables?: string[] | undefined;
854
+ phonetic?: string | undefined;
855
+ }>;
856
+ level: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph";
857
+ lang?: string | undefined;
858
+ children?: any[] | undefined;
859
+ position?: any;
860
+ script?: string | undefined;
861
+ } | {
862
+ type: "GLOSTSentenceNode";
863
+ lang: string;
864
+ script: string;
865
+ originalText: string;
866
+ children?: any[] | undefined;
867
+ position?: any;
868
+ transcription?: Record<string, {
869
+ text: string;
870
+ system: string;
871
+ tone?: number | undefined;
872
+ variants?: {
873
+ text: string;
874
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
875
+ notes?: string | undefined;
876
+ }[] | undefined;
877
+ syllables?: string[] | undefined;
878
+ phonetic?: string | undefined;
879
+ }> | undefined;
880
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
881
+ } | {
882
+ type: "GLOSTParagraphNode";
883
+ lang: string;
884
+ script: string;
885
+ children?: any[] | undefined;
886
+ position?: any;
887
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
888
+ } | {
889
+ type: "GLOSTRootNode";
890
+ lang: string;
891
+ script: string;
892
+ metadata?: {
893
+ date?: string | undefined;
894
+ title?: string | undefined;
895
+ author?: string | undefined;
896
+ description?: string | undefined;
897
+ } | undefined;
898
+ children?: any[] | undefined;
899
+ position?: any;
900
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
901
+ }, {
902
+ value: string;
903
+ type: "GLOSTWordNode";
904
+ metadata: {
905
+ partOfSpeech: string;
906
+ examples?: string[] | undefined;
907
+ frequency?: "high" | "medium" | "low" | undefined;
908
+ meaning?: string | undefined;
909
+ usage?: string | undefined;
910
+ etymology?: string | undefined;
911
+ formality?: "neutral" | "formal" | "informal" | undefined;
912
+ register?: string | undefined;
913
+ };
914
+ children: any[];
915
+ transcription: Record<string, {
916
+ text: string;
917
+ system: string;
918
+ tone?: number | undefined;
919
+ variants?: {
920
+ text: string;
921
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
922
+ notes?: string | undefined;
923
+ }[] | undefined;
924
+ syllables?: string[] | undefined;
925
+ phonetic?: string | undefined;
926
+ }>;
927
+ level: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph";
928
+ lang?: string | undefined;
929
+ position?: any;
930
+ script?: string | undefined;
931
+ } | {
932
+ type: "GLOSTSentenceNode";
933
+ lang: string;
934
+ children: any[];
935
+ script: string;
936
+ originalText: string;
937
+ position?: any;
938
+ transcription?: Record<string, {
939
+ text: string;
940
+ system: string;
941
+ tone?: number | undefined;
942
+ variants?: {
943
+ text: string;
944
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
945
+ notes?: string | undefined;
946
+ }[] | undefined;
947
+ syllables?: string[] | undefined;
948
+ phonetic?: string | undefined;
949
+ }> | undefined;
950
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
951
+ } | {
952
+ type: "GLOSTParagraphNode";
953
+ lang: string;
954
+ children: any[];
955
+ script: string;
956
+ position?: any;
957
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
958
+ } | {
959
+ type: "GLOSTRootNode";
960
+ lang: string;
961
+ children: any[];
962
+ script: string;
963
+ metadata?: {
964
+ date?: string | undefined;
965
+ title?: string | undefined;
966
+ author?: string | undefined;
967
+ description?: string | undefined;
968
+ } | undefined;
969
+ position?: any;
970
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
971
+ }>;
972
+ /**
973
+ * Parse and validate GLOST word node with error details
974
+ */
975
+ export declare function parseGLOSTWordNode(data: unknown): z.SafeParseReturnType<{
976
+ value: string;
977
+ type: "GLOSTWordNode";
978
+ metadata: {
979
+ partOfSpeech: string;
980
+ examples?: string[] | undefined;
981
+ frequency?: "high" | "medium" | "low" | undefined;
982
+ meaning?: string | undefined;
983
+ usage?: string | undefined;
984
+ etymology?: string | undefined;
985
+ formality?: "neutral" | "formal" | "informal" | undefined;
986
+ register?: string | undefined;
987
+ };
988
+ transcription: Record<string, {
989
+ text: string;
990
+ system: string;
991
+ tone?: number | undefined;
992
+ variants?: {
993
+ text: string;
994
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
995
+ notes?: string | undefined;
996
+ }[] | undefined;
997
+ syllables?: string[] | undefined;
998
+ phonetic?: string | undefined;
999
+ }>;
1000
+ level: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph";
1001
+ lang?: string | undefined;
1002
+ children?: any[] | undefined;
1003
+ position?: any;
1004
+ script?: string | undefined;
1005
+ }, {
1006
+ value: string;
1007
+ type: "GLOSTWordNode";
1008
+ metadata: {
1009
+ partOfSpeech: string;
1010
+ examples?: string[] | undefined;
1011
+ frequency?: "high" | "medium" | "low" | undefined;
1012
+ meaning?: string | undefined;
1013
+ usage?: string | undefined;
1014
+ etymology?: string | undefined;
1015
+ formality?: "neutral" | "formal" | "informal" | undefined;
1016
+ register?: string | undefined;
1017
+ };
1018
+ children: any[];
1019
+ transcription: Record<string, {
1020
+ text: string;
1021
+ system: string;
1022
+ tone?: number | undefined;
1023
+ variants?: {
1024
+ text: string;
1025
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1026
+ notes?: string | undefined;
1027
+ }[] | undefined;
1028
+ syllables?: string[] | undefined;
1029
+ phonetic?: string | undefined;
1030
+ }>;
1031
+ level: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph";
1032
+ lang?: string | undefined;
1033
+ position?: any;
1034
+ script?: string | undefined;
1035
+ }>;
1036
+ /**
1037
+ * Parse and validate GLOST sentence node with error details
1038
+ */
1039
+ export declare function parseGLOSTSentenceNode(data: unknown): z.SafeParseReturnType<{
1040
+ type: "GLOSTSentenceNode";
1041
+ lang: string;
1042
+ script: string;
1043
+ originalText: string;
1044
+ children?: any[] | undefined;
1045
+ position?: any;
1046
+ transcription?: Record<string, {
1047
+ text: string;
1048
+ system: string;
1049
+ tone?: number | undefined;
1050
+ variants?: {
1051
+ text: string;
1052
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1053
+ notes?: string | undefined;
1054
+ }[] | undefined;
1055
+ syllables?: string[] | undefined;
1056
+ phonetic?: string | undefined;
1057
+ }> | undefined;
1058
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
1059
+ }, {
1060
+ type: "GLOSTSentenceNode";
1061
+ lang: string;
1062
+ children: any[];
1063
+ script: string;
1064
+ originalText: string;
1065
+ position?: any;
1066
+ transcription?: Record<string, {
1067
+ text: string;
1068
+ system: string;
1069
+ tone?: number | undefined;
1070
+ variants?: {
1071
+ text: string;
1072
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1073
+ notes?: string | undefined;
1074
+ }[] | undefined;
1075
+ syllables?: string[] | undefined;
1076
+ phonetic?: string | undefined;
1077
+ }> | undefined;
1078
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
1079
+ }>;
1080
+ /**
1081
+ * Parse and validate GLOST paragraph node with error details
1082
+ */
1083
+ export declare function parseGLOSTParagraphNode(data: unknown): z.SafeParseReturnType<{
1084
+ type: "GLOSTParagraphNode";
1085
+ lang: string;
1086
+ script: string;
1087
+ children?: any[] | undefined;
1088
+ position?: any;
1089
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
1090
+ }, {
1091
+ type: "GLOSTParagraphNode";
1092
+ lang: string;
1093
+ children: any[];
1094
+ script: string;
1095
+ position?: any;
1096
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
1097
+ }>;
1098
+ /**
1099
+ * Parse and validate GLOST root node with error details
1100
+ */
1101
+ export declare function parseGLOSTRootNode(data: unknown): z.SafeParseReturnType<{
1102
+ type: "GLOSTRootNode";
1103
+ lang: string;
1104
+ script: string;
1105
+ metadata?: {
1106
+ date?: string | undefined;
1107
+ title?: string | undefined;
1108
+ author?: string | undefined;
1109
+ description?: string | undefined;
1110
+ } | undefined;
1111
+ children?: any[] | undefined;
1112
+ position?: any;
1113
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
1114
+ }, {
1115
+ type: "GLOSTRootNode";
1116
+ lang: string;
1117
+ children: any[];
1118
+ script: string;
1119
+ metadata?: {
1120
+ date?: string | undefined;
1121
+ title?: string | undefined;
1122
+ author?: string | undefined;
1123
+ description?: string | undefined;
1124
+ } | undefined;
1125
+ position?: any;
1126
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
1127
+ }>;
1128
+ /**
1129
+ * Validate an entire GLOST tree/document
1130
+ */
1131
+ export declare function validateGLOSTTree(data: unknown): string[];
1132
+ export declare const schemas: {
1133
+ LinguisticLevel: z.ZodEnum<["character", "syllable", "word", "phrase", "sentence", "paragraph"]>;
1134
+ PronunciationContext: z.ZodEnum<["formal", "informal", "historical", "regional", "dialectal"]>;
1135
+ TranscriptionSystem: z.ZodUnion<[z.ZodLiteral<"rtgs">, z.ZodLiteral<"aua">, z.ZodLiteral<"paiboon">, z.ZodLiteral<"romaji">, z.ZodLiteral<"furigana">, z.ZodLiteral<"ipa">, z.ZodLiteral<"pinyin">, z.ZodLiteral<"hangul">, z.ZodString]>;
1136
+ LanguageCode: z.ZodUnion<[z.ZodLiteral<"th">, z.ZodLiteral<"ja">, z.ZodLiteral<"zh">, z.ZodLiteral<"ko">, z.ZodLiteral<"en">, z.ZodString]>;
1137
+ ScriptSystem: z.ZodUnion<[z.ZodLiteral<"thai">, z.ZodLiteral<"hiragana">, z.ZodLiteral<"katakana">, z.ZodLiteral<"kanji">, z.ZodLiteral<"hanzi">, z.ZodLiteral<"hangul">, z.ZodLiteral<"latin">, z.ZodLiteral<"mixed">, z.ZodString]>;
1138
+ PronunciationVariant: z.ZodObject<{
1139
+ text: z.ZodString;
1140
+ context: z.ZodEnum<["formal", "informal", "historical", "regional", "dialectal"]>;
1141
+ notes: z.ZodOptional<z.ZodString>;
1142
+ }, "strip", z.ZodTypeAny, {
1143
+ text: string;
1144
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1145
+ notes?: string | undefined;
1146
+ }, {
1147
+ text: string;
1148
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1149
+ notes?: string | undefined;
1150
+ }>;
1151
+ TranscriptionInfo: z.ZodObject<{
1152
+ text: z.ZodString;
1153
+ system: z.ZodUnion<[z.ZodLiteral<"rtgs">, z.ZodLiteral<"aua">, z.ZodLiteral<"paiboon">, z.ZodLiteral<"romaji">, z.ZodLiteral<"furigana">, z.ZodLiteral<"ipa">, z.ZodLiteral<"pinyin">, z.ZodLiteral<"hangul">, z.ZodString]>;
1154
+ variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1155
+ text: z.ZodString;
1156
+ context: z.ZodEnum<["formal", "informal", "historical", "regional", "dialectal"]>;
1157
+ notes: z.ZodOptional<z.ZodString>;
1158
+ }, "strip", z.ZodTypeAny, {
1159
+ text: string;
1160
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1161
+ notes?: string | undefined;
1162
+ }, {
1163
+ text: string;
1164
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1165
+ notes?: string | undefined;
1166
+ }>, "many">>;
1167
+ tone: z.ZodOptional<z.ZodNumber>;
1168
+ syllables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1169
+ phonetic: z.ZodOptional<z.ZodString>;
1170
+ }, "strip", z.ZodTypeAny, {
1171
+ text: string;
1172
+ system: string;
1173
+ tone?: number | undefined;
1174
+ variants?: {
1175
+ text: string;
1176
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1177
+ notes?: string | undefined;
1178
+ }[] | undefined;
1179
+ syllables?: string[] | undefined;
1180
+ phonetic?: string | undefined;
1181
+ }, {
1182
+ text: string;
1183
+ system: string;
1184
+ tone?: number | undefined;
1185
+ variants?: {
1186
+ text: string;
1187
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1188
+ notes?: string | undefined;
1189
+ }[] | undefined;
1190
+ syllables?: string[] | undefined;
1191
+ phonetic?: string | undefined;
1192
+ }>;
1193
+ TransliterationData: z.ZodRecord<z.ZodString, z.ZodObject<{
1194
+ text: z.ZodString;
1195
+ system: z.ZodUnion<[z.ZodLiteral<"rtgs">, z.ZodLiteral<"aua">, z.ZodLiteral<"paiboon">, z.ZodLiteral<"romaji">, z.ZodLiteral<"furigana">, z.ZodLiteral<"ipa">, z.ZodLiteral<"pinyin">, z.ZodLiteral<"hangul">, z.ZodString]>;
1196
+ variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1197
+ text: z.ZodString;
1198
+ context: z.ZodEnum<["formal", "informal", "historical", "regional", "dialectal"]>;
1199
+ notes: z.ZodOptional<z.ZodString>;
1200
+ }, "strip", z.ZodTypeAny, {
1201
+ text: string;
1202
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1203
+ notes?: string | undefined;
1204
+ }, {
1205
+ text: string;
1206
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1207
+ notes?: string | undefined;
1208
+ }>, "many">>;
1209
+ tone: z.ZodOptional<z.ZodNumber>;
1210
+ syllables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1211
+ phonetic: z.ZodOptional<z.ZodString>;
1212
+ }, "strip", z.ZodTypeAny, {
1213
+ text: string;
1214
+ system: string;
1215
+ tone?: number | undefined;
1216
+ variants?: {
1217
+ text: string;
1218
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1219
+ notes?: string | undefined;
1220
+ }[] | undefined;
1221
+ syllables?: string[] | undefined;
1222
+ phonetic?: string | undefined;
1223
+ }, {
1224
+ text: string;
1225
+ system: string;
1226
+ tone?: number | undefined;
1227
+ variants?: {
1228
+ text: string;
1229
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1230
+ notes?: string | undefined;
1231
+ }[] | undefined;
1232
+ syllables?: string[] | undefined;
1233
+ phonetic?: string | undefined;
1234
+ }>>;
1235
+ LinguisticMetadata: z.ZodObject<{
1236
+ /** @deprecated Use extras.translations instead */
1237
+ meaning: z.ZodOptional<z.ZodString>;
1238
+ partOfSpeech: z.ZodString;
1239
+ usage: z.ZodOptional<z.ZodString>;
1240
+ etymology: z.ZodOptional<z.ZodString>;
1241
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1242
+ frequency: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
1243
+ formality: z.ZodOptional<z.ZodEnum<["formal", "neutral", "informal"]>>;
1244
+ register: z.ZodOptional<z.ZodString>;
1245
+ }, "strip", z.ZodTypeAny, {
1246
+ partOfSpeech: string;
1247
+ examples?: string[] | undefined;
1248
+ frequency?: "high" | "medium" | "low" | undefined;
1249
+ meaning?: string | undefined;
1250
+ usage?: string | undefined;
1251
+ etymology?: string | undefined;
1252
+ formality?: "neutral" | "formal" | "informal" | undefined;
1253
+ register?: string | undefined;
1254
+ }, {
1255
+ partOfSpeech: string;
1256
+ examples?: string[] | undefined;
1257
+ frequency?: "high" | "medium" | "low" | undefined;
1258
+ meaning?: string | undefined;
1259
+ usage?: string | undefined;
1260
+ etymology?: string | undefined;
1261
+ formality?: "neutral" | "formal" | "informal" | undefined;
1262
+ register?: string | undefined;
1263
+ }>;
1264
+ GLOSTNode: z.ZodUnion<[z.ZodObject<{
1265
+ lang: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"th">, z.ZodLiteral<"ja">, z.ZodLiteral<"zh">, z.ZodLiteral<"ko">, z.ZodLiteral<"en">, z.ZodString]>>;
1266
+ script: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"thai">, z.ZodLiteral<"hiragana">, z.ZodLiteral<"katakana">, z.ZodLiteral<"kanji">, z.ZodLiteral<"hanzi">, z.ZodLiteral<"hangul">, z.ZodLiteral<"latin">, z.ZodLiteral<"mixed">, z.ZodString]>>;
1267
+ position: z.ZodOptional<z.ZodAny>;
1268
+ } & {
1269
+ type: z.ZodLiteral<"GLOSTWordNode">;
1270
+ value: z.ZodString;
1271
+ transcription: z.ZodRecord<z.ZodString, z.ZodObject<{
1272
+ text: z.ZodString;
1273
+ system: z.ZodUnion<[z.ZodLiteral<"rtgs">, z.ZodLiteral<"aua">, z.ZodLiteral<"paiboon">, z.ZodLiteral<"romaji">, z.ZodLiteral<"furigana">, z.ZodLiteral<"ipa">, z.ZodLiteral<"pinyin">, z.ZodLiteral<"hangul">, z.ZodString]>;
1274
+ variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1275
+ text: z.ZodString;
1276
+ context: z.ZodEnum<["formal", "informal", "historical", "regional", "dialectal"]>;
1277
+ notes: z.ZodOptional<z.ZodString>;
1278
+ }, "strip", z.ZodTypeAny, {
1279
+ text: string;
1280
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1281
+ notes?: string | undefined;
1282
+ }, {
1283
+ text: string;
1284
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1285
+ notes?: string | undefined;
1286
+ }>, "many">>;
1287
+ tone: z.ZodOptional<z.ZodNumber>;
1288
+ syllables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1289
+ phonetic: z.ZodOptional<z.ZodString>;
1290
+ }, "strip", z.ZodTypeAny, {
1291
+ text: string;
1292
+ system: string;
1293
+ tone?: number | undefined;
1294
+ variants?: {
1295
+ text: string;
1296
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1297
+ notes?: string | undefined;
1298
+ }[] | undefined;
1299
+ syllables?: string[] | undefined;
1300
+ phonetic?: string | undefined;
1301
+ }, {
1302
+ text: string;
1303
+ system: string;
1304
+ tone?: number | undefined;
1305
+ variants?: {
1306
+ text: string;
1307
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1308
+ notes?: string | undefined;
1309
+ }[] | undefined;
1310
+ syllables?: string[] | undefined;
1311
+ phonetic?: string | undefined;
1312
+ }>>;
1313
+ metadata: z.ZodObject<{
1314
+ /** @deprecated Use extras.translations instead */
1315
+ meaning: z.ZodOptional<z.ZodString>;
1316
+ partOfSpeech: z.ZodString;
1317
+ usage: z.ZodOptional<z.ZodString>;
1318
+ etymology: z.ZodOptional<z.ZodString>;
1319
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1320
+ frequency: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
1321
+ formality: z.ZodOptional<z.ZodEnum<["formal", "neutral", "informal"]>>;
1322
+ register: z.ZodOptional<z.ZodString>;
1323
+ }, "strip", z.ZodTypeAny, {
1324
+ partOfSpeech: string;
1325
+ examples?: string[] | undefined;
1326
+ frequency?: "high" | "medium" | "low" | undefined;
1327
+ meaning?: string | undefined;
1328
+ usage?: string | undefined;
1329
+ etymology?: string | undefined;
1330
+ formality?: "neutral" | "formal" | "informal" | undefined;
1331
+ register?: string | undefined;
1332
+ }, {
1333
+ partOfSpeech: string;
1334
+ examples?: string[] | undefined;
1335
+ frequency?: "high" | "medium" | "low" | undefined;
1336
+ meaning?: string | undefined;
1337
+ usage?: string | undefined;
1338
+ etymology?: string | undefined;
1339
+ formality?: "neutral" | "formal" | "informal" | undefined;
1340
+ register?: string | undefined;
1341
+ }>;
1342
+ level: z.ZodEnum<["character", "syllable", "word", "phrase", "sentence", "paragraph"]>;
1343
+ children: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
1344
+ }, "strip", z.ZodTypeAny, {
1345
+ value: string;
1346
+ type: "GLOSTWordNode";
1347
+ metadata: {
1348
+ partOfSpeech: string;
1349
+ examples?: string[] | undefined;
1350
+ frequency?: "high" | "medium" | "low" | undefined;
1351
+ meaning?: string | undefined;
1352
+ usage?: string | undefined;
1353
+ etymology?: string | undefined;
1354
+ formality?: "neutral" | "formal" | "informal" | undefined;
1355
+ register?: string | undefined;
1356
+ };
1357
+ children: any[];
1358
+ transcription: Record<string, {
1359
+ text: string;
1360
+ system: string;
1361
+ tone?: number | undefined;
1362
+ variants?: {
1363
+ text: string;
1364
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1365
+ notes?: string | undefined;
1366
+ }[] | undefined;
1367
+ syllables?: string[] | undefined;
1368
+ phonetic?: string | undefined;
1369
+ }>;
1370
+ level: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph";
1371
+ lang?: string | undefined;
1372
+ position?: any;
1373
+ script?: string | undefined;
1374
+ }, {
1375
+ value: string;
1376
+ type: "GLOSTWordNode";
1377
+ metadata: {
1378
+ partOfSpeech: string;
1379
+ examples?: string[] | undefined;
1380
+ frequency?: "high" | "medium" | "low" | undefined;
1381
+ meaning?: string | undefined;
1382
+ usage?: string | undefined;
1383
+ etymology?: string | undefined;
1384
+ formality?: "neutral" | "formal" | "informal" | undefined;
1385
+ register?: string | undefined;
1386
+ };
1387
+ transcription: Record<string, {
1388
+ text: string;
1389
+ system: string;
1390
+ tone?: number | undefined;
1391
+ variants?: {
1392
+ text: string;
1393
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1394
+ notes?: string | undefined;
1395
+ }[] | undefined;
1396
+ syllables?: string[] | undefined;
1397
+ phonetic?: string | undefined;
1398
+ }>;
1399
+ level: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph";
1400
+ lang?: string | undefined;
1401
+ children?: any[] | undefined;
1402
+ position?: any;
1403
+ script?: string | undefined;
1404
+ }>, z.ZodObject<{
1405
+ level: z.ZodOptional<z.ZodEnum<["character", "syllable", "word", "phrase", "sentence", "paragraph"]>>;
1406
+ position: z.ZodOptional<z.ZodAny>;
1407
+ } & {
1408
+ type: z.ZodLiteral<"GLOSTSentenceNode">;
1409
+ originalText: z.ZodString;
1410
+ lang: z.ZodUnion<[z.ZodLiteral<"th">, z.ZodLiteral<"ja">, z.ZodLiteral<"zh">, z.ZodLiteral<"ko">, z.ZodLiteral<"en">, z.ZodString]>;
1411
+ script: z.ZodUnion<[z.ZodLiteral<"thai">, z.ZodLiteral<"hiragana">, z.ZodLiteral<"katakana">, z.ZodLiteral<"kanji">, z.ZodLiteral<"hanzi">, z.ZodLiteral<"hangul">, z.ZodLiteral<"latin">, z.ZodLiteral<"mixed">, z.ZodString]>;
1412
+ transcription: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1413
+ text: z.ZodString;
1414
+ system: z.ZodUnion<[z.ZodLiteral<"rtgs">, z.ZodLiteral<"aua">, z.ZodLiteral<"paiboon">, z.ZodLiteral<"romaji">, z.ZodLiteral<"furigana">, z.ZodLiteral<"ipa">, z.ZodLiteral<"pinyin">, z.ZodLiteral<"hangul">, z.ZodString]>;
1415
+ variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1416
+ text: z.ZodString;
1417
+ context: z.ZodEnum<["formal", "informal", "historical", "regional", "dialectal"]>;
1418
+ notes: z.ZodOptional<z.ZodString>;
1419
+ }, "strip", z.ZodTypeAny, {
1420
+ text: string;
1421
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1422
+ notes?: string | undefined;
1423
+ }, {
1424
+ text: string;
1425
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1426
+ notes?: string | undefined;
1427
+ }>, "many">>;
1428
+ tone: z.ZodOptional<z.ZodNumber>;
1429
+ syllables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1430
+ phonetic: z.ZodOptional<z.ZodString>;
1431
+ }, "strip", z.ZodTypeAny, {
1432
+ text: string;
1433
+ system: string;
1434
+ tone?: number | undefined;
1435
+ variants?: {
1436
+ text: string;
1437
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1438
+ notes?: string | undefined;
1439
+ }[] | undefined;
1440
+ syllables?: string[] | undefined;
1441
+ phonetic?: string | undefined;
1442
+ }, {
1443
+ text: string;
1444
+ system: string;
1445
+ tone?: number | undefined;
1446
+ variants?: {
1447
+ text: string;
1448
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1449
+ notes?: string | undefined;
1450
+ }[] | undefined;
1451
+ syllables?: string[] | undefined;
1452
+ phonetic?: string | undefined;
1453
+ }>>>;
1454
+ children: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
1455
+ }, "strip", z.ZodTypeAny, {
1456
+ type: "GLOSTSentenceNode";
1457
+ lang: string;
1458
+ children: any[];
1459
+ script: string;
1460
+ originalText: string;
1461
+ position?: any;
1462
+ transcription?: Record<string, {
1463
+ text: string;
1464
+ system: string;
1465
+ tone?: number | undefined;
1466
+ variants?: {
1467
+ text: string;
1468
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1469
+ notes?: string | undefined;
1470
+ }[] | undefined;
1471
+ syllables?: string[] | undefined;
1472
+ phonetic?: string | undefined;
1473
+ }> | undefined;
1474
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
1475
+ }, {
1476
+ type: "GLOSTSentenceNode";
1477
+ lang: string;
1478
+ script: string;
1479
+ originalText: string;
1480
+ children?: any[] | undefined;
1481
+ position?: any;
1482
+ transcription?: Record<string, {
1483
+ text: string;
1484
+ system: string;
1485
+ tone?: number | undefined;
1486
+ variants?: {
1487
+ text: string;
1488
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1489
+ notes?: string | undefined;
1490
+ }[] | undefined;
1491
+ syllables?: string[] | undefined;
1492
+ phonetic?: string | undefined;
1493
+ }> | undefined;
1494
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
1495
+ }>, z.ZodObject<{
1496
+ level: z.ZodOptional<z.ZodEnum<["character", "syllable", "word", "phrase", "sentence", "paragraph"]>>;
1497
+ position: z.ZodOptional<z.ZodAny>;
1498
+ } & {
1499
+ type: z.ZodLiteral<"GLOSTParagraphNode">;
1500
+ lang: z.ZodUnion<[z.ZodLiteral<"th">, z.ZodLiteral<"ja">, z.ZodLiteral<"zh">, z.ZodLiteral<"ko">, z.ZodLiteral<"en">, z.ZodString]>;
1501
+ script: z.ZodUnion<[z.ZodLiteral<"thai">, z.ZodLiteral<"hiragana">, z.ZodLiteral<"katakana">, z.ZodLiteral<"kanji">, z.ZodLiteral<"hanzi">, z.ZodLiteral<"hangul">, z.ZodLiteral<"latin">, z.ZodLiteral<"mixed">, z.ZodString]>;
1502
+ children: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
1503
+ }, "strip", z.ZodTypeAny, {
1504
+ type: "GLOSTParagraphNode";
1505
+ lang: string;
1506
+ children: any[];
1507
+ script: string;
1508
+ position?: any;
1509
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
1510
+ }, {
1511
+ type: "GLOSTParagraphNode";
1512
+ lang: string;
1513
+ script: string;
1514
+ children?: any[] | undefined;
1515
+ position?: any;
1516
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
1517
+ }>, z.ZodObject<{
1518
+ level: z.ZodOptional<z.ZodEnum<["character", "syllable", "word", "phrase", "sentence", "paragraph"]>>;
1519
+ position: z.ZodOptional<z.ZodAny>;
1520
+ } & {
1521
+ type: z.ZodLiteral<"GLOSTRootNode">;
1522
+ lang: z.ZodUnion<[z.ZodLiteral<"th">, z.ZodLiteral<"ja">, z.ZodLiteral<"zh">, z.ZodLiteral<"ko">, z.ZodLiteral<"en">, z.ZodString]>;
1523
+ script: z.ZodUnion<[z.ZodLiteral<"thai">, z.ZodLiteral<"hiragana">, z.ZodLiteral<"katakana">, z.ZodLiteral<"kanji">, z.ZodLiteral<"hanzi">, z.ZodLiteral<"hangul">, z.ZodLiteral<"latin">, z.ZodLiteral<"mixed">, z.ZodString]>;
1524
+ metadata: z.ZodOptional<z.ZodObject<{
1525
+ title: z.ZodOptional<z.ZodString>;
1526
+ author: z.ZodOptional<z.ZodString>;
1527
+ date: z.ZodOptional<z.ZodString>;
1528
+ description: z.ZodOptional<z.ZodString>;
1529
+ }, "strip", z.ZodTypeAny, {
1530
+ date?: string | undefined;
1531
+ title?: string | undefined;
1532
+ author?: string | undefined;
1533
+ description?: string | undefined;
1534
+ }, {
1535
+ date?: string | undefined;
1536
+ title?: string | undefined;
1537
+ author?: string | undefined;
1538
+ description?: string | undefined;
1539
+ }>>;
1540
+ children: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
1541
+ }, "strip", z.ZodTypeAny, {
1542
+ type: "GLOSTRootNode";
1543
+ lang: string;
1544
+ children: any[];
1545
+ script: string;
1546
+ metadata?: {
1547
+ date?: string | undefined;
1548
+ title?: string | undefined;
1549
+ author?: string | undefined;
1550
+ description?: string | undefined;
1551
+ } | undefined;
1552
+ position?: any;
1553
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
1554
+ }, {
1555
+ type: "GLOSTRootNode";
1556
+ lang: string;
1557
+ script: string;
1558
+ metadata?: {
1559
+ date?: string | undefined;
1560
+ title?: string | undefined;
1561
+ author?: string | undefined;
1562
+ description?: string | undefined;
1563
+ } | undefined;
1564
+ children?: any[] | undefined;
1565
+ position?: any;
1566
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
1567
+ }>]>;
1568
+ GLOSTWordNode: z.ZodObject<{
1569
+ lang: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"th">, z.ZodLiteral<"ja">, z.ZodLiteral<"zh">, z.ZodLiteral<"ko">, z.ZodLiteral<"en">, z.ZodString]>>;
1570
+ script: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"thai">, z.ZodLiteral<"hiragana">, z.ZodLiteral<"katakana">, z.ZodLiteral<"kanji">, z.ZodLiteral<"hanzi">, z.ZodLiteral<"hangul">, z.ZodLiteral<"latin">, z.ZodLiteral<"mixed">, z.ZodString]>>;
1571
+ position: z.ZodOptional<z.ZodAny>;
1572
+ } & {
1573
+ type: z.ZodLiteral<"GLOSTWordNode">;
1574
+ value: z.ZodString;
1575
+ transcription: z.ZodRecord<z.ZodString, z.ZodObject<{
1576
+ text: z.ZodString;
1577
+ system: z.ZodUnion<[z.ZodLiteral<"rtgs">, z.ZodLiteral<"aua">, z.ZodLiteral<"paiboon">, z.ZodLiteral<"romaji">, z.ZodLiteral<"furigana">, z.ZodLiteral<"ipa">, z.ZodLiteral<"pinyin">, z.ZodLiteral<"hangul">, z.ZodString]>;
1578
+ variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1579
+ text: z.ZodString;
1580
+ context: z.ZodEnum<["formal", "informal", "historical", "regional", "dialectal"]>;
1581
+ notes: z.ZodOptional<z.ZodString>;
1582
+ }, "strip", z.ZodTypeAny, {
1583
+ text: string;
1584
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1585
+ notes?: string | undefined;
1586
+ }, {
1587
+ text: string;
1588
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1589
+ notes?: string | undefined;
1590
+ }>, "many">>;
1591
+ tone: z.ZodOptional<z.ZodNumber>;
1592
+ syllables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1593
+ phonetic: z.ZodOptional<z.ZodString>;
1594
+ }, "strip", z.ZodTypeAny, {
1595
+ text: string;
1596
+ system: string;
1597
+ tone?: number | undefined;
1598
+ variants?: {
1599
+ text: string;
1600
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1601
+ notes?: string | undefined;
1602
+ }[] | undefined;
1603
+ syllables?: string[] | undefined;
1604
+ phonetic?: string | undefined;
1605
+ }, {
1606
+ text: string;
1607
+ system: string;
1608
+ tone?: number | undefined;
1609
+ variants?: {
1610
+ text: string;
1611
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1612
+ notes?: string | undefined;
1613
+ }[] | undefined;
1614
+ syllables?: string[] | undefined;
1615
+ phonetic?: string | undefined;
1616
+ }>>;
1617
+ metadata: z.ZodObject<{
1618
+ /** @deprecated Use extras.translations instead */
1619
+ meaning: z.ZodOptional<z.ZodString>;
1620
+ partOfSpeech: z.ZodString;
1621
+ usage: z.ZodOptional<z.ZodString>;
1622
+ etymology: z.ZodOptional<z.ZodString>;
1623
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1624
+ frequency: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
1625
+ formality: z.ZodOptional<z.ZodEnum<["formal", "neutral", "informal"]>>;
1626
+ register: z.ZodOptional<z.ZodString>;
1627
+ }, "strip", z.ZodTypeAny, {
1628
+ partOfSpeech: string;
1629
+ examples?: string[] | undefined;
1630
+ frequency?: "high" | "medium" | "low" | undefined;
1631
+ meaning?: string | undefined;
1632
+ usage?: string | undefined;
1633
+ etymology?: string | undefined;
1634
+ formality?: "neutral" | "formal" | "informal" | undefined;
1635
+ register?: string | undefined;
1636
+ }, {
1637
+ partOfSpeech: string;
1638
+ examples?: string[] | undefined;
1639
+ frequency?: "high" | "medium" | "low" | undefined;
1640
+ meaning?: string | undefined;
1641
+ usage?: string | undefined;
1642
+ etymology?: string | undefined;
1643
+ formality?: "neutral" | "formal" | "informal" | undefined;
1644
+ register?: string | undefined;
1645
+ }>;
1646
+ level: z.ZodEnum<["character", "syllable", "word", "phrase", "sentence", "paragraph"]>;
1647
+ children: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
1648
+ }, "strip", z.ZodTypeAny, {
1649
+ value: string;
1650
+ type: "GLOSTWordNode";
1651
+ metadata: {
1652
+ partOfSpeech: string;
1653
+ examples?: string[] | undefined;
1654
+ frequency?: "high" | "medium" | "low" | undefined;
1655
+ meaning?: string | undefined;
1656
+ usage?: string | undefined;
1657
+ etymology?: string | undefined;
1658
+ formality?: "neutral" | "formal" | "informal" | undefined;
1659
+ register?: string | undefined;
1660
+ };
1661
+ children: any[];
1662
+ transcription: Record<string, {
1663
+ text: string;
1664
+ system: string;
1665
+ tone?: number | undefined;
1666
+ variants?: {
1667
+ text: string;
1668
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1669
+ notes?: string | undefined;
1670
+ }[] | undefined;
1671
+ syllables?: string[] | undefined;
1672
+ phonetic?: string | undefined;
1673
+ }>;
1674
+ level: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph";
1675
+ lang?: string | undefined;
1676
+ position?: any;
1677
+ script?: string | undefined;
1678
+ }, {
1679
+ value: string;
1680
+ type: "GLOSTWordNode";
1681
+ metadata: {
1682
+ partOfSpeech: string;
1683
+ examples?: string[] | undefined;
1684
+ frequency?: "high" | "medium" | "low" | undefined;
1685
+ meaning?: string | undefined;
1686
+ usage?: string | undefined;
1687
+ etymology?: string | undefined;
1688
+ formality?: "neutral" | "formal" | "informal" | undefined;
1689
+ register?: string | undefined;
1690
+ };
1691
+ transcription: Record<string, {
1692
+ text: string;
1693
+ system: string;
1694
+ tone?: number | undefined;
1695
+ variants?: {
1696
+ text: string;
1697
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1698
+ notes?: string | undefined;
1699
+ }[] | undefined;
1700
+ syllables?: string[] | undefined;
1701
+ phonetic?: string | undefined;
1702
+ }>;
1703
+ level: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph";
1704
+ lang?: string | undefined;
1705
+ children?: any[] | undefined;
1706
+ position?: any;
1707
+ script?: string | undefined;
1708
+ }>;
1709
+ GLOSTSentenceNode: z.ZodObject<{
1710
+ level: z.ZodOptional<z.ZodEnum<["character", "syllable", "word", "phrase", "sentence", "paragraph"]>>;
1711
+ position: z.ZodOptional<z.ZodAny>;
1712
+ } & {
1713
+ type: z.ZodLiteral<"GLOSTSentenceNode">;
1714
+ originalText: z.ZodString;
1715
+ lang: z.ZodUnion<[z.ZodLiteral<"th">, z.ZodLiteral<"ja">, z.ZodLiteral<"zh">, z.ZodLiteral<"ko">, z.ZodLiteral<"en">, z.ZodString]>;
1716
+ script: z.ZodUnion<[z.ZodLiteral<"thai">, z.ZodLiteral<"hiragana">, z.ZodLiteral<"katakana">, z.ZodLiteral<"kanji">, z.ZodLiteral<"hanzi">, z.ZodLiteral<"hangul">, z.ZodLiteral<"latin">, z.ZodLiteral<"mixed">, z.ZodString]>;
1717
+ transcription: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1718
+ text: z.ZodString;
1719
+ system: z.ZodUnion<[z.ZodLiteral<"rtgs">, z.ZodLiteral<"aua">, z.ZodLiteral<"paiboon">, z.ZodLiteral<"romaji">, z.ZodLiteral<"furigana">, z.ZodLiteral<"ipa">, z.ZodLiteral<"pinyin">, z.ZodLiteral<"hangul">, z.ZodString]>;
1720
+ variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1721
+ text: z.ZodString;
1722
+ context: z.ZodEnum<["formal", "informal", "historical", "regional", "dialectal"]>;
1723
+ notes: z.ZodOptional<z.ZodString>;
1724
+ }, "strip", z.ZodTypeAny, {
1725
+ text: string;
1726
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1727
+ notes?: string | undefined;
1728
+ }, {
1729
+ text: string;
1730
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1731
+ notes?: string | undefined;
1732
+ }>, "many">>;
1733
+ tone: z.ZodOptional<z.ZodNumber>;
1734
+ syllables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1735
+ phonetic: z.ZodOptional<z.ZodString>;
1736
+ }, "strip", z.ZodTypeAny, {
1737
+ text: string;
1738
+ system: string;
1739
+ tone?: number | undefined;
1740
+ variants?: {
1741
+ text: string;
1742
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1743
+ notes?: string | undefined;
1744
+ }[] | undefined;
1745
+ syllables?: string[] | undefined;
1746
+ phonetic?: string | undefined;
1747
+ }, {
1748
+ text: string;
1749
+ system: string;
1750
+ tone?: number | undefined;
1751
+ variants?: {
1752
+ text: string;
1753
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1754
+ notes?: string | undefined;
1755
+ }[] | undefined;
1756
+ syllables?: string[] | undefined;
1757
+ phonetic?: string | undefined;
1758
+ }>>>;
1759
+ children: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
1760
+ }, "strip", z.ZodTypeAny, {
1761
+ type: "GLOSTSentenceNode";
1762
+ lang: string;
1763
+ children: any[];
1764
+ script: string;
1765
+ originalText: string;
1766
+ position?: any;
1767
+ transcription?: Record<string, {
1768
+ text: string;
1769
+ system: string;
1770
+ tone?: number | undefined;
1771
+ variants?: {
1772
+ text: string;
1773
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1774
+ notes?: string | undefined;
1775
+ }[] | undefined;
1776
+ syllables?: string[] | undefined;
1777
+ phonetic?: string | undefined;
1778
+ }> | undefined;
1779
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
1780
+ }, {
1781
+ type: "GLOSTSentenceNode";
1782
+ lang: string;
1783
+ script: string;
1784
+ originalText: string;
1785
+ children?: any[] | undefined;
1786
+ position?: any;
1787
+ transcription?: Record<string, {
1788
+ text: string;
1789
+ system: string;
1790
+ tone?: number | undefined;
1791
+ variants?: {
1792
+ text: string;
1793
+ context: "formal" | "informal" | "historical" | "regional" | "dialectal";
1794
+ notes?: string | undefined;
1795
+ }[] | undefined;
1796
+ syllables?: string[] | undefined;
1797
+ phonetic?: string | undefined;
1798
+ }> | undefined;
1799
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
1800
+ }>;
1801
+ GLOSTParagraphNode: z.ZodObject<{
1802
+ level: z.ZodOptional<z.ZodEnum<["character", "syllable", "word", "phrase", "sentence", "paragraph"]>>;
1803
+ position: z.ZodOptional<z.ZodAny>;
1804
+ } & {
1805
+ type: z.ZodLiteral<"GLOSTParagraphNode">;
1806
+ lang: z.ZodUnion<[z.ZodLiteral<"th">, z.ZodLiteral<"ja">, z.ZodLiteral<"zh">, z.ZodLiteral<"ko">, z.ZodLiteral<"en">, z.ZodString]>;
1807
+ script: z.ZodUnion<[z.ZodLiteral<"thai">, z.ZodLiteral<"hiragana">, z.ZodLiteral<"katakana">, z.ZodLiteral<"kanji">, z.ZodLiteral<"hanzi">, z.ZodLiteral<"hangul">, z.ZodLiteral<"latin">, z.ZodLiteral<"mixed">, z.ZodString]>;
1808
+ children: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
1809
+ }, "strip", z.ZodTypeAny, {
1810
+ type: "GLOSTParagraphNode";
1811
+ lang: string;
1812
+ children: any[];
1813
+ script: string;
1814
+ position?: any;
1815
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
1816
+ }, {
1817
+ type: "GLOSTParagraphNode";
1818
+ lang: string;
1819
+ script: string;
1820
+ children?: any[] | undefined;
1821
+ position?: any;
1822
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
1823
+ }>;
1824
+ GLOSTRootNode: z.ZodObject<{
1825
+ level: z.ZodOptional<z.ZodEnum<["character", "syllable", "word", "phrase", "sentence", "paragraph"]>>;
1826
+ position: z.ZodOptional<z.ZodAny>;
1827
+ } & {
1828
+ type: z.ZodLiteral<"GLOSTRootNode">;
1829
+ lang: z.ZodUnion<[z.ZodLiteral<"th">, z.ZodLiteral<"ja">, z.ZodLiteral<"zh">, z.ZodLiteral<"ko">, z.ZodLiteral<"en">, z.ZodString]>;
1830
+ script: z.ZodUnion<[z.ZodLiteral<"thai">, z.ZodLiteral<"hiragana">, z.ZodLiteral<"katakana">, z.ZodLiteral<"kanji">, z.ZodLiteral<"hanzi">, z.ZodLiteral<"hangul">, z.ZodLiteral<"latin">, z.ZodLiteral<"mixed">, z.ZodString]>;
1831
+ metadata: z.ZodOptional<z.ZodObject<{
1832
+ title: z.ZodOptional<z.ZodString>;
1833
+ author: z.ZodOptional<z.ZodString>;
1834
+ date: z.ZodOptional<z.ZodString>;
1835
+ description: z.ZodOptional<z.ZodString>;
1836
+ }, "strip", z.ZodTypeAny, {
1837
+ date?: string | undefined;
1838
+ title?: string | undefined;
1839
+ author?: string | undefined;
1840
+ description?: string | undefined;
1841
+ }, {
1842
+ date?: string | undefined;
1843
+ title?: string | undefined;
1844
+ author?: string | undefined;
1845
+ description?: string | undefined;
1846
+ }>>;
1847
+ children: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
1848
+ }, "strip", z.ZodTypeAny, {
1849
+ type: "GLOSTRootNode";
1850
+ lang: string;
1851
+ children: any[];
1852
+ script: string;
1853
+ metadata?: {
1854
+ date?: string | undefined;
1855
+ title?: string | undefined;
1856
+ author?: string | undefined;
1857
+ description?: string | undefined;
1858
+ } | undefined;
1859
+ position?: any;
1860
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
1861
+ }, {
1862
+ type: "GLOSTRootNode";
1863
+ lang: string;
1864
+ script: string;
1865
+ metadata?: {
1866
+ date?: string | undefined;
1867
+ title?: string | undefined;
1868
+ author?: string | undefined;
1869
+ description?: string | undefined;
1870
+ } | undefined;
1871
+ children?: any[] | undefined;
1872
+ position?: any;
1873
+ level?: "phrase" | "word" | "character" | "syllable" | "sentence" | "paragraph" | undefined;
1874
+ }>;
1875
+ };
1876
+ //# sourceMappingURL=validators.d.ts.map