eslint-plugin-templ 0.0.1 → 0.0.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.
@@ -4,6 +4,10 @@
4
4
  * These schemas define the runtime validation and TypeScript types for the JSON
5
5
  * output from templ-ast-to-json. They serve as the source of truth for the
6
6
  * "from" types in the conversion to ESLint AST.
7
+ *
8
+ * Every type that sits behind a Go interface has a `type` discriminator field
9
+ * set to the Go struct name (e.g. "Element", "ConstantAttribute"). This is
10
+ * injected at serialization time via reflection in the Go code.
7
11
  */
8
12
  import { z } from "zod";
9
13
  /**
@@ -46,24 +50,28 @@ export declare const TemplExpressionSchema: z.ZodObject<{
46
50
  }, z.core.$strip>;
47
51
  }, z.core.$strip>;
48
52
  }, z.core.$strip>;
49
- export declare const TemplAttributeSchema: z.ZodObject<{
50
- Key: z.ZodObject<{
51
- Name: z.ZodString;
52
- NameRange: z.ZodObject<{
53
- From: z.ZodObject<{
54
- Index: z.ZodNumber;
55
- Line: z.ZodNumber;
56
- Col: z.ZodNumber;
57
- }, z.core.$strip>;
58
- To: z.ZodObject<{
59
- Index: z.ZodNumber;
60
- Line: z.ZodNumber;
61
- Col: z.ZodNumber;
62
- }, z.core.$strip>;
53
+ export type TemplPosition = z.infer<typeof TemplPositionSchema>;
54
+ export type TemplRange = z.infer<typeof TemplRangeSchema>;
55
+ export type TemplExpression = z.infer<typeof TemplExpressionSchema>;
56
+ export declare const TemplConstantAttributeKeySchema: z.ZodObject<{
57
+ type: z.ZodLiteral<"ConstantAttributeKey">;
58
+ Name: z.ZodString;
59
+ NameRange: z.ZodObject<{
60
+ From: z.ZodObject<{
61
+ Index: z.ZodNumber;
62
+ Line: z.ZodNumber;
63
+ Col: z.ZodNumber;
64
+ }, z.core.$strip>;
65
+ To: z.ZodObject<{
66
+ Index: z.ZodNumber;
67
+ Line: z.ZodNumber;
68
+ Col: z.ZodNumber;
63
69
  }, z.core.$strip>;
64
70
  }, z.core.$strip>;
65
- Value: z.ZodOptional<z.ZodString>;
66
- Expression: z.ZodOptional<z.ZodObject<{
71
+ }, z.core.$strip>;
72
+ export declare const TemplExpressionAttributeKeySchema: z.ZodObject<{
73
+ type: z.ZodLiteral<"ExpressionAttributeKey">;
74
+ Expression: z.ZodObject<{
67
75
  Value: z.ZodString;
68
76
  Range: z.ZodObject<{
69
77
  From: z.ZodObject<{
@@ -77,11 +85,12 @@ export declare const TemplAttributeSchema: z.ZodObject<{
77
85
  Col: z.ZodNumber;
78
86
  }, z.core.$strip>;
79
87
  }, z.core.$strip>;
80
- }, z.core.$strip>>;
81
- SingleQuote: z.ZodOptional<z.ZodBoolean>;
88
+ }, z.core.$strip>;
82
89
  }, z.core.$strip>;
83
- export declare const TemplStringExpressionSchema: z.ZodObject<{
84
- Range: z.ZodObject<{
90
+ export declare const TemplAttributeKeySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
91
+ type: z.ZodLiteral<"ConstantAttributeKey">;
92
+ Name: z.ZodString;
93
+ NameRange: z.ZodObject<{
85
94
  From: z.ZodObject<{
86
95
  Index: z.ZodNumber;
87
96
  Line: z.ZodNumber;
@@ -93,10 +102,8 @@ export declare const TemplStringExpressionSchema: z.ZodObject<{
93
102
  Col: z.ZodNumber;
94
103
  }, z.core.$strip>;
95
104
  }, z.core.$strip>;
96
- Value: z.ZodString;
97
- TrailingSpace: z.ZodString;
98
- }, z.core.$strip>;
99
- export declare const TemplGoExpressionSchema: z.ZodObject<{
105
+ }, z.core.$strip>, z.ZodObject<{
106
+ type: z.ZodLiteral<"ExpressionAttributeKey">;
100
107
  Expression: z.ZodObject<{
101
108
  Value: z.ZodString;
102
109
  Range: z.ZodObject<{
@@ -112,12 +119,16 @@ export declare const TemplGoExpressionSchema: z.ZodObject<{
112
119
  }, z.core.$strip>;
113
120
  }, z.core.$strip>;
114
121
  }, z.core.$strip>;
115
- TrailingSpace: z.ZodString;
116
- }, z.core.$strip>;
117
- export declare const TemplCallExpressionSchema: z.ZodObject<{
118
- Expression: z.ZodObject<{
119
- Value: z.ZodString;
120
- Range: z.ZodObject<{
122
+ }, z.core.$strip>], "type">;
123
+ export type TemplConstantAttributeKey = z.infer<typeof TemplConstantAttributeKeySchema>;
124
+ export type TemplExpressionAttributeKey = z.infer<typeof TemplExpressionAttributeKeySchema>;
125
+ export type TemplAttributeKey = z.infer<typeof TemplAttributeKeySchema>;
126
+ declare const TemplBooleanAttributeSchema: z.ZodObject<{
127
+ type: z.ZodLiteral<"BoolConstantAttribute">;
128
+ Key: z.ZodDiscriminatedUnion<[z.ZodObject<{
129
+ type: z.ZodLiteral<"ConstantAttributeKey">;
130
+ Name: z.ZodString;
131
+ NameRange: z.ZodObject<{
121
132
  From: z.ZodObject<{
122
133
  Index: z.ZodNumber;
123
134
  Line: z.ZodNumber;
@@ -129,8 +140,24 @@ export declare const TemplCallExpressionSchema: z.ZodObject<{
129
140
  Col: z.ZodNumber;
130
141
  }, z.core.$strip>;
131
142
  }, z.core.$strip>;
132
- }, z.core.$strip>;
133
- Children: z.ZodNull;
143
+ }, z.core.$strip>, z.ZodObject<{
144
+ type: z.ZodLiteral<"ExpressionAttributeKey">;
145
+ Expression: z.ZodObject<{
146
+ Value: z.ZodString;
147
+ Range: z.ZodObject<{
148
+ From: z.ZodObject<{
149
+ Index: z.ZodNumber;
150
+ Line: z.ZodNumber;
151
+ Col: z.ZodNumber;
152
+ }, z.core.$strip>;
153
+ To: z.ZodObject<{
154
+ Index: z.ZodNumber;
155
+ Line: z.ZodNumber;
156
+ Col: z.ZodNumber;
157
+ }, z.core.$strip>;
158
+ }, z.core.$strip>;
159
+ }, z.core.$strip>;
160
+ }, z.core.$strip>], "type">;
134
161
  Range: z.ZodObject<{
135
162
  From: z.ZodObject<{
136
163
  Index: z.ZodNumber;
@@ -144,31 +171,44 @@ export declare const TemplCallExpressionSchema: z.ZodObject<{
144
171
  }, z.core.$strip>;
145
172
  }, z.core.$strip>;
146
173
  }, z.core.$strip>;
147
- export declare const TemplWhitespaceSchema: z.ZodObject<{
148
- Value: z.ZodString;
149
- }, z.core.$strip>;
150
- export declare const TemplTextSchema: z.ZodObject<{
151
- Range: z.ZodObject<{
152
- From: z.ZodObject<{
153
- Index: z.ZodNumber;
154
- Line: z.ZodNumber;
155
- Col: z.ZodNumber;
174
+ declare const TemplValueAttributeSchema: z.ZodObject<{
175
+ type: z.ZodLiteral<"ConstantAttribute">;
176
+ Key: z.ZodDiscriminatedUnion<[z.ZodObject<{
177
+ type: z.ZodLiteral<"ConstantAttributeKey">;
178
+ Name: z.ZodString;
179
+ NameRange: z.ZodObject<{
180
+ From: z.ZodObject<{
181
+ Index: z.ZodNumber;
182
+ Line: z.ZodNumber;
183
+ Col: z.ZodNumber;
184
+ }, z.core.$strip>;
185
+ To: z.ZodObject<{
186
+ Index: z.ZodNumber;
187
+ Line: z.ZodNumber;
188
+ Col: z.ZodNumber;
189
+ }, z.core.$strip>;
156
190
  }, z.core.$strip>;
157
- To: z.ZodObject<{
158
- Index: z.ZodNumber;
159
- Line: z.ZodNumber;
160
- Col: z.ZodNumber;
191
+ }, z.core.$strip>, z.ZodObject<{
192
+ type: z.ZodLiteral<"ExpressionAttributeKey">;
193
+ Expression: z.ZodObject<{
194
+ Value: z.ZodString;
195
+ Range: z.ZodObject<{
196
+ From: z.ZodObject<{
197
+ Index: z.ZodNumber;
198
+ Line: z.ZodNumber;
199
+ Col: z.ZodNumber;
200
+ }, z.core.$strip>;
201
+ To: z.ZodObject<{
202
+ Index: z.ZodNumber;
203
+ Line: z.ZodNumber;
204
+ Col: z.ZodNumber;
205
+ }, z.core.$strip>;
206
+ }, z.core.$strip>;
161
207
  }, z.core.$strip>;
162
- }, z.core.$strip>;
208
+ }, z.core.$strip>], "type">;
163
209
  Value: z.ZodString;
164
- TrailingSpace: z.ZodString;
165
- }, z.core.$strip>;
166
- export declare const TemplDocTypeSchema: z.ZodObject<{
167
- Value: z.ZodString;
168
- }, z.core.$strip>;
169
- export declare const TemplHTMLCommentSchema: z.ZodObject<{
170
- Contents: z.ZodString;
171
- Range: z.ZodObject<{
210
+ SingleQuote: z.ZodBoolean;
211
+ ValueRange: z.ZodObject<{
172
212
  From: z.ZodObject<{
173
213
  Index: z.ZodNumber;
174
214
  Line: z.ZodNumber;
@@ -180,10 +220,6 @@ export declare const TemplHTMLCommentSchema: z.ZodObject<{
180
220
  Col: z.ZodNumber;
181
221
  }, z.core.$strip>;
182
222
  }, z.core.$strip>;
183
- }, z.core.$strip>;
184
- export declare const TemplGoCommentSchema: z.ZodObject<{
185
- Contents: z.ZodString;
186
- Multiline: z.ZodBoolean;
187
223
  Range: z.ZodObject<{
188
224
  From: z.ZodObject<{
189
225
  Index: z.ZodNumber;
@@ -197,10 +233,12 @@ export declare const TemplGoCommentSchema: z.ZodObject<{
197
233
  }, z.core.$strip>;
198
234
  }, z.core.$strip>;
199
235
  }, z.core.$strip>;
200
- export declare const TemplGoCodeSchema: z.ZodObject<{
201
- Expression: z.ZodObject<{
202
- Value: z.ZodString;
203
- Range: z.ZodObject<{
236
+ declare const TemplExpressionAttributeNodeSchema: z.ZodObject<{
237
+ type: z.ZodLiteral<"ExpressionAttribute">;
238
+ Key: z.ZodDiscriminatedUnion<[z.ZodObject<{
239
+ type: z.ZodLiteral<"ConstantAttributeKey">;
240
+ Name: z.ZodString;
241
+ NameRange: z.ZodObject<{
204
242
  From: z.ZodObject<{
205
243
  Index: z.ZodNumber;
206
244
  Line: z.ZodNumber;
@@ -212,18 +250,8 @@ export declare const TemplGoCodeSchema: z.ZodObject<{
212
250
  Col: z.ZodNumber;
213
251
  }, z.core.$strip>;
214
252
  }, z.core.$strip>;
215
- }, z.core.$strip>;
216
- TrailingSpace: z.ZodString;
217
- Multiline: z.ZodBoolean;
218
- }, z.core.$strip>;
219
- export declare const TemplChildrenExpressionSchema: z.ZodObject<{}, z.core.$strip>;
220
- export declare const TemplConstantCSSPropertySchema: z.ZodObject<{
221
- Name: z.ZodString;
222
- Value: z.ZodString;
223
- }, z.core.$strip>;
224
- export declare const TemplExpressionCSSPropertySchema: z.ZodObject<{
225
- Name: z.ZodString;
226
- Value: z.ZodObject<{
253
+ }, z.core.$strip>, z.ZodObject<{
254
+ type: z.ZodLiteral<"ExpressionAttributeKey">;
227
255
  Expression: z.ZodObject<{
228
256
  Value: z.ZodString;
229
257
  Range: z.ZodObject<{
@@ -239,34 +267,35 @@ export declare const TemplExpressionCSSPropertySchema: z.ZodObject<{
239
267
  }, z.core.$strip>;
240
268
  }, z.core.$strip>;
241
269
  }, z.core.$strip>;
242
- TrailingSpace: z.ZodString;
243
- }, z.core.$strip>;
244
- }, z.core.$strip>;
245
- export declare const TemplCSSPropertySchema: z.ZodUnion<readonly [z.ZodObject<{
246
- Name: z.ZodString;
247
- Value: z.ZodString;
248
- }, z.core.$strip>, z.ZodObject<{
249
- Name: z.ZodString;
250
- Value: z.ZodObject<{
251
- Expression: z.ZodObject<{
252
- Value: z.ZodString;
253
- Range: z.ZodObject<{
254
- From: z.ZodObject<{
255
- Index: z.ZodNumber;
256
- Line: z.ZodNumber;
257
- Col: z.ZodNumber;
258
- }, z.core.$strip>;
259
- To: z.ZodObject<{
260
- Index: z.ZodNumber;
261
- Line: z.ZodNumber;
262
- Col: z.ZodNumber;
263
- }, z.core.$strip>;
270
+ }, z.core.$strip>], "type">;
271
+ Expression: z.ZodObject<{
272
+ Value: z.ZodString;
273
+ Range: z.ZodObject<{
274
+ From: z.ZodObject<{
275
+ Index: z.ZodNumber;
276
+ Line: z.ZodNumber;
277
+ Col: z.ZodNumber;
278
+ }, z.core.$strip>;
279
+ To: z.ZodObject<{
280
+ Index: z.ZodNumber;
281
+ Line: z.ZodNumber;
282
+ Col: z.ZodNumber;
264
283
  }, z.core.$strip>;
265
284
  }, z.core.$strip>;
266
- TrailingSpace: z.ZodString;
267
285
  }, z.core.$strip>;
268
- }, z.core.$strip>]>;
269
- export declare const TemplCSSTemplateSchema: z.ZodObject<{
286
+ SingleQuote: z.ZodOptional<z.ZodBoolean>;
287
+ InitializerRange: z.ZodObject<{
288
+ From: z.ZodObject<{
289
+ Index: z.ZodNumber;
290
+ Line: z.ZodNumber;
291
+ Col: z.ZodNumber;
292
+ }, z.core.$strip>;
293
+ To: z.ZodObject<{
294
+ Index: z.ZodNumber;
295
+ Line: z.ZodNumber;
296
+ Col: z.ZodNumber;
297
+ }, z.core.$strip>;
298
+ }, z.core.$strip>;
270
299
  Range: z.ZodObject<{
271
300
  From: z.ZodObject<{
272
301
  Index: z.ZodNumber;
@@ -279,7 +308,9 @@ export declare const TemplCSSTemplateSchema: z.ZodObject<{
279
308
  Col: z.ZodNumber;
280
309
  }, z.core.$strip>;
281
310
  }, z.core.$strip>;
282
- Name: z.ZodString;
311
+ }, z.core.$strip>;
312
+ declare const TemplSpreadAttributesSchema: z.ZodObject<{
313
+ type: z.ZodLiteral<"SpreadAttributes">;
283
314
  Expression: z.ZodObject<{
284
315
  Value: z.ZodString;
285
316
  Range: z.ZodObject<{
@@ -295,32 +326,6 @@ export declare const TemplCSSTemplateSchema: z.ZodObject<{
295
326
  }, z.core.$strip>;
296
327
  }, z.core.$strip>;
297
328
  }, z.core.$strip>;
298
- Properties: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
299
- Name: z.ZodString;
300
- Value: z.ZodString;
301
- }, z.core.$strip>, z.ZodObject<{
302
- Name: z.ZodString;
303
- Value: z.ZodObject<{
304
- Expression: z.ZodObject<{
305
- Value: z.ZodString;
306
- Range: z.ZodObject<{
307
- From: z.ZodObject<{
308
- Index: z.ZodNumber;
309
- Line: z.ZodNumber;
310
- Col: z.ZodNumber;
311
- }, z.core.$strip>;
312
- To: z.ZodObject<{
313
- Index: z.ZodNumber;
314
- Line: z.ZodNumber;
315
- Col: z.ZodNumber;
316
- }, z.core.$strip>;
317
- }, z.core.$strip>;
318
- }, z.core.$strip>;
319
- TrailingSpace: z.ZodString;
320
- }, z.core.$strip>;
321
- }, z.core.$strip>]>>;
322
- }, z.core.$strip>;
323
- export declare const TemplScriptTemplateSchema: z.ZodObject<{
324
329
  Range: z.ZodObject<{
325
330
  From: z.ZodObject<{
326
331
  Index: z.ZodNumber;
@@ -333,7 +338,14 @@ export declare const TemplScriptTemplateSchema: z.ZodObject<{
333
338
  Col: z.ZodNumber;
334
339
  }, z.core.$strip>;
335
340
  }, z.core.$strip>;
336
- Name: z.ZodObject<{
341
+ }, z.core.$strip>;
342
+ export type TemplBooleanAttribute = z.infer<typeof TemplBooleanAttributeSchema>;
343
+ export type TemplValueAttribute = z.infer<typeof TemplValueAttributeSchema>;
344
+ export type TemplExpressionAttributeNode = z.infer<typeof TemplExpressionAttributeNodeSchema>;
345
+ export type TemplSpreadAttribute = z.infer<typeof TemplSpreadAttributesSchema>;
346
+ export declare const TemplConditionalAttributeSchema: z.ZodObject<{
347
+ type: z.ZodLiteral<"ConditionalAttribute">;
348
+ Expression: z.ZodObject<{
337
349
  Value: z.ZodString;
338
350
  Range: z.ZodObject<{
339
351
  From: z.ZodObject<{
@@ -348,26 +360,41 @@ export declare const TemplScriptTemplateSchema: z.ZodObject<{
348
360
  }, z.core.$strip>;
349
361
  }, z.core.$strip>;
350
362
  }, z.core.$strip>;
351
- Parameters: z.ZodObject<{
352
- Value: z.ZodString;
353
- Range: z.ZodObject<{
354
- From: z.ZodObject<{
355
- Index: z.ZodNumber;
356
- Line: z.ZodNumber;
357
- Col: z.ZodNumber;
363
+ Then: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
364
+ type: z.ZodLiteral<"BoolConstantAttribute">;
365
+ Key: z.ZodDiscriminatedUnion<[z.ZodObject<{
366
+ type: z.ZodLiteral<"ConstantAttributeKey">;
367
+ Name: z.ZodString;
368
+ NameRange: z.ZodObject<{
369
+ From: z.ZodObject<{
370
+ Index: z.ZodNumber;
371
+ Line: z.ZodNumber;
372
+ Col: z.ZodNumber;
373
+ }, z.core.$strip>;
374
+ To: z.ZodObject<{
375
+ Index: z.ZodNumber;
376
+ Line: z.ZodNumber;
377
+ Col: z.ZodNumber;
378
+ }, z.core.$strip>;
358
379
  }, z.core.$strip>;
359
- To: z.ZodObject<{
360
- Index: z.ZodNumber;
361
- Line: z.ZodNumber;
362
- Col: z.ZodNumber;
380
+ }, z.core.$strip>, z.ZodObject<{
381
+ type: z.ZodLiteral<"ExpressionAttributeKey">;
382
+ Expression: z.ZodObject<{
383
+ Value: z.ZodString;
384
+ Range: z.ZodObject<{
385
+ From: z.ZodObject<{
386
+ Index: z.ZodNumber;
387
+ Line: z.ZodNumber;
388
+ Col: z.ZodNumber;
389
+ }, z.core.$strip>;
390
+ To: z.ZodObject<{
391
+ Index: z.ZodNumber;
392
+ Line: z.ZodNumber;
393
+ Col: z.ZodNumber;
394
+ }, z.core.$strip>;
395
+ }, z.core.$strip>;
363
396
  }, z.core.$strip>;
364
- }, z.core.$strip>;
365
- }, z.core.$strip>;
366
- Value: z.ZodString;
367
- }, z.core.$strip>;
368
- export declare const TemplFileGoExpressionSchema: z.ZodObject<{
369
- Expression: z.ZodObject<{
370
- Value: z.ZodString;
397
+ }, z.core.$strip>], "type">;
371
398
  Range: z.ZodObject<{
372
399
  From: z.ZodObject<{
373
400
  Index: z.ZodNumber;
@@ -380,45 +407,1352 @@ export declare const TemplFileGoExpressionSchema: z.ZodObject<{
380
407
  Col: z.ZodNumber;
381
408
  }, z.core.$strip>;
382
409
  }, z.core.$strip>;
383
- }, z.core.$strip>;
384
- BeforePackage: z.ZodBoolean;
385
- }, z.core.$strip>;
410
+ }, z.core.$strip>, z.ZodObject<{
411
+ type: z.ZodLiteral<"ConstantAttribute">;
412
+ Key: z.ZodDiscriminatedUnion<[z.ZodObject<{
413
+ type: z.ZodLiteral<"ConstantAttributeKey">;
414
+ Name: z.ZodString;
415
+ NameRange: z.ZodObject<{
416
+ From: z.ZodObject<{
417
+ Index: z.ZodNumber;
418
+ Line: z.ZodNumber;
419
+ Col: z.ZodNumber;
420
+ }, z.core.$strip>;
421
+ To: z.ZodObject<{
422
+ Index: z.ZodNumber;
423
+ Line: z.ZodNumber;
424
+ Col: z.ZodNumber;
425
+ }, z.core.$strip>;
426
+ }, z.core.$strip>;
427
+ }, z.core.$strip>, z.ZodObject<{
428
+ type: z.ZodLiteral<"ExpressionAttributeKey">;
429
+ Expression: z.ZodObject<{
430
+ Value: z.ZodString;
431
+ Range: z.ZodObject<{
432
+ From: z.ZodObject<{
433
+ Index: z.ZodNumber;
434
+ Line: z.ZodNumber;
435
+ Col: z.ZodNumber;
436
+ }, z.core.$strip>;
437
+ To: z.ZodObject<{
438
+ Index: z.ZodNumber;
439
+ Line: z.ZodNumber;
440
+ Col: z.ZodNumber;
441
+ }, z.core.$strip>;
442
+ }, z.core.$strip>;
443
+ }, z.core.$strip>;
444
+ }, z.core.$strip>], "type">;
445
+ Value: z.ZodString;
446
+ SingleQuote: z.ZodBoolean;
447
+ ValueRange: z.ZodObject<{
448
+ From: z.ZodObject<{
449
+ Index: z.ZodNumber;
450
+ Line: z.ZodNumber;
451
+ Col: z.ZodNumber;
452
+ }, z.core.$strip>;
453
+ To: z.ZodObject<{
454
+ Index: z.ZodNumber;
455
+ Line: z.ZodNumber;
456
+ Col: z.ZodNumber;
457
+ }, z.core.$strip>;
458
+ }, z.core.$strip>;
459
+ Range: z.ZodObject<{
460
+ From: z.ZodObject<{
461
+ Index: z.ZodNumber;
462
+ Line: z.ZodNumber;
463
+ Col: z.ZodNumber;
464
+ }, z.core.$strip>;
465
+ To: z.ZodObject<{
466
+ Index: z.ZodNumber;
467
+ Line: z.ZodNumber;
468
+ Col: z.ZodNumber;
469
+ }, z.core.$strip>;
470
+ }, z.core.$strip>;
471
+ }, z.core.$strip>, z.ZodObject<{
472
+ type: z.ZodLiteral<"ExpressionAttribute">;
473
+ Key: z.ZodDiscriminatedUnion<[z.ZodObject<{
474
+ type: z.ZodLiteral<"ConstantAttributeKey">;
475
+ Name: z.ZodString;
476
+ NameRange: z.ZodObject<{
477
+ From: z.ZodObject<{
478
+ Index: z.ZodNumber;
479
+ Line: z.ZodNumber;
480
+ Col: z.ZodNumber;
481
+ }, z.core.$strip>;
482
+ To: z.ZodObject<{
483
+ Index: z.ZodNumber;
484
+ Line: z.ZodNumber;
485
+ Col: z.ZodNumber;
486
+ }, z.core.$strip>;
487
+ }, z.core.$strip>;
488
+ }, z.core.$strip>, z.ZodObject<{
489
+ type: z.ZodLiteral<"ExpressionAttributeKey">;
490
+ Expression: z.ZodObject<{
491
+ Value: z.ZodString;
492
+ Range: z.ZodObject<{
493
+ From: z.ZodObject<{
494
+ Index: z.ZodNumber;
495
+ Line: z.ZodNumber;
496
+ Col: z.ZodNumber;
497
+ }, z.core.$strip>;
498
+ To: z.ZodObject<{
499
+ Index: z.ZodNumber;
500
+ Line: z.ZodNumber;
501
+ Col: z.ZodNumber;
502
+ }, z.core.$strip>;
503
+ }, z.core.$strip>;
504
+ }, z.core.$strip>;
505
+ }, z.core.$strip>], "type">;
506
+ Expression: z.ZodObject<{
507
+ Value: z.ZodString;
508
+ Range: z.ZodObject<{
509
+ From: z.ZodObject<{
510
+ Index: z.ZodNumber;
511
+ Line: z.ZodNumber;
512
+ Col: z.ZodNumber;
513
+ }, z.core.$strip>;
514
+ To: z.ZodObject<{
515
+ Index: z.ZodNumber;
516
+ Line: z.ZodNumber;
517
+ Col: z.ZodNumber;
518
+ }, z.core.$strip>;
519
+ }, z.core.$strip>;
520
+ }, z.core.$strip>;
521
+ SingleQuote: z.ZodOptional<z.ZodBoolean>;
522
+ InitializerRange: z.ZodObject<{
523
+ From: z.ZodObject<{
524
+ Index: z.ZodNumber;
525
+ Line: z.ZodNumber;
526
+ Col: z.ZodNumber;
527
+ }, z.core.$strip>;
528
+ To: z.ZodObject<{
529
+ Index: z.ZodNumber;
530
+ Line: z.ZodNumber;
531
+ Col: z.ZodNumber;
532
+ }, z.core.$strip>;
533
+ }, z.core.$strip>;
534
+ Range: z.ZodObject<{
535
+ From: z.ZodObject<{
536
+ Index: z.ZodNumber;
537
+ Line: z.ZodNumber;
538
+ Col: z.ZodNumber;
539
+ }, z.core.$strip>;
540
+ To: z.ZodObject<{
541
+ Index: z.ZodNumber;
542
+ Line: z.ZodNumber;
543
+ Col: z.ZodNumber;
544
+ }, z.core.$strip>;
545
+ }, z.core.$strip>;
546
+ }, z.core.$strip>, z.ZodObject<{
547
+ type: z.ZodLiteral<"SpreadAttributes">;
548
+ Expression: z.ZodObject<{
549
+ Value: z.ZodString;
550
+ Range: z.ZodObject<{
551
+ From: z.ZodObject<{
552
+ Index: z.ZodNumber;
553
+ Line: z.ZodNumber;
554
+ Col: z.ZodNumber;
555
+ }, z.core.$strip>;
556
+ To: z.ZodObject<{
557
+ Index: z.ZodNumber;
558
+ Line: z.ZodNumber;
559
+ Col: z.ZodNumber;
560
+ }, z.core.$strip>;
561
+ }, z.core.$strip>;
562
+ }, z.core.$strip>;
563
+ Range: z.ZodObject<{
564
+ From: z.ZodObject<{
565
+ Index: z.ZodNumber;
566
+ Line: z.ZodNumber;
567
+ Col: z.ZodNumber;
568
+ }, z.core.$strip>;
569
+ To: z.ZodObject<{
570
+ Index: z.ZodNumber;
571
+ Line: z.ZodNumber;
572
+ Col: z.ZodNumber;
573
+ }, z.core.$strip>;
574
+ }, z.core.$strip>;
575
+ }, z.core.$strip>, z.ZodObject</*elided*/ any, z.core.$strip>]>>;
576
+ Else: z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
577
+ type: z.ZodLiteral<"BoolConstantAttribute">;
578
+ Key: z.ZodDiscriminatedUnion<[z.ZodObject<{
579
+ type: z.ZodLiteral<"ConstantAttributeKey">;
580
+ Name: z.ZodString;
581
+ NameRange: z.ZodObject<{
582
+ From: z.ZodObject<{
583
+ Index: z.ZodNumber;
584
+ Line: z.ZodNumber;
585
+ Col: z.ZodNumber;
586
+ }, z.core.$strip>;
587
+ To: z.ZodObject<{
588
+ Index: z.ZodNumber;
589
+ Line: z.ZodNumber;
590
+ Col: z.ZodNumber;
591
+ }, z.core.$strip>;
592
+ }, z.core.$strip>;
593
+ }, z.core.$strip>, z.ZodObject<{
594
+ type: z.ZodLiteral<"ExpressionAttributeKey">;
595
+ Expression: z.ZodObject<{
596
+ Value: z.ZodString;
597
+ Range: z.ZodObject<{
598
+ From: z.ZodObject<{
599
+ Index: z.ZodNumber;
600
+ Line: z.ZodNumber;
601
+ Col: z.ZodNumber;
602
+ }, z.core.$strip>;
603
+ To: z.ZodObject<{
604
+ Index: z.ZodNumber;
605
+ Line: z.ZodNumber;
606
+ Col: z.ZodNumber;
607
+ }, z.core.$strip>;
608
+ }, z.core.$strip>;
609
+ }, z.core.$strip>;
610
+ }, z.core.$strip>], "type">;
611
+ Range: z.ZodObject<{
612
+ From: z.ZodObject<{
613
+ Index: z.ZodNumber;
614
+ Line: z.ZodNumber;
615
+ Col: z.ZodNumber;
616
+ }, z.core.$strip>;
617
+ To: z.ZodObject<{
618
+ Index: z.ZodNumber;
619
+ Line: z.ZodNumber;
620
+ Col: z.ZodNumber;
621
+ }, z.core.$strip>;
622
+ }, z.core.$strip>;
623
+ }, z.core.$strip>, z.ZodObject<{
624
+ type: z.ZodLiteral<"ConstantAttribute">;
625
+ Key: z.ZodDiscriminatedUnion<[z.ZodObject<{
626
+ type: z.ZodLiteral<"ConstantAttributeKey">;
627
+ Name: z.ZodString;
628
+ NameRange: z.ZodObject<{
629
+ From: z.ZodObject<{
630
+ Index: z.ZodNumber;
631
+ Line: z.ZodNumber;
632
+ Col: z.ZodNumber;
633
+ }, z.core.$strip>;
634
+ To: z.ZodObject<{
635
+ Index: z.ZodNumber;
636
+ Line: z.ZodNumber;
637
+ Col: z.ZodNumber;
638
+ }, z.core.$strip>;
639
+ }, z.core.$strip>;
640
+ }, z.core.$strip>, z.ZodObject<{
641
+ type: z.ZodLiteral<"ExpressionAttributeKey">;
642
+ Expression: z.ZodObject<{
643
+ Value: z.ZodString;
644
+ Range: z.ZodObject<{
645
+ From: z.ZodObject<{
646
+ Index: z.ZodNumber;
647
+ Line: z.ZodNumber;
648
+ Col: z.ZodNumber;
649
+ }, z.core.$strip>;
650
+ To: z.ZodObject<{
651
+ Index: z.ZodNumber;
652
+ Line: z.ZodNumber;
653
+ Col: z.ZodNumber;
654
+ }, z.core.$strip>;
655
+ }, z.core.$strip>;
656
+ }, z.core.$strip>;
657
+ }, z.core.$strip>], "type">;
658
+ Value: z.ZodString;
659
+ SingleQuote: z.ZodBoolean;
660
+ ValueRange: z.ZodObject<{
661
+ From: z.ZodObject<{
662
+ Index: z.ZodNumber;
663
+ Line: z.ZodNumber;
664
+ Col: z.ZodNumber;
665
+ }, z.core.$strip>;
666
+ To: z.ZodObject<{
667
+ Index: z.ZodNumber;
668
+ Line: z.ZodNumber;
669
+ Col: z.ZodNumber;
670
+ }, z.core.$strip>;
671
+ }, z.core.$strip>;
672
+ Range: z.ZodObject<{
673
+ From: z.ZodObject<{
674
+ Index: z.ZodNumber;
675
+ Line: z.ZodNumber;
676
+ Col: z.ZodNumber;
677
+ }, z.core.$strip>;
678
+ To: z.ZodObject<{
679
+ Index: z.ZodNumber;
680
+ Line: z.ZodNumber;
681
+ Col: z.ZodNumber;
682
+ }, z.core.$strip>;
683
+ }, z.core.$strip>;
684
+ }, z.core.$strip>, z.ZodObject<{
685
+ type: z.ZodLiteral<"ExpressionAttribute">;
686
+ Key: z.ZodDiscriminatedUnion<[z.ZodObject<{
687
+ type: z.ZodLiteral<"ConstantAttributeKey">;
688
+ Name: z.ZodString;
689
+ NameRange: z.ZodObject<{
690
+ From: z.ZodObject<{
691
+ Index: z.ZodNumber;
692
+ Line: z.ZodNumber;
693
+ Col: z.ZodNumber;
694
+ }, z.core.$strip>;
695
+ To: z.ZodObject<{
696
+ Index: z.ZodNumber;
697
+ Line: z.ZodNumber;
698
+ Col: z.ZodNumber;
699
+ }, z.core.$strip>;
700
+ }, z.core.$strip>;
701
+ }, z.core.$strip>, z.ZodObject<{
702
+ type: z.ZodLiteral<"ExpressionAttributeKey">;
703
+ Expression: z.ZodObject<{
704
+ Value: z.ZodString;
705
+ Range: z.ZodObject<{
706
+ From: z.ZodObject<{
707
+ Index: z.ZodNumber;
708
+ Line: z.ZodNumber;
709
+ Col: z.ZodNumber;
710
+ }, z.core.$strip>;
711
+ To: z.ZodObject<{
712
+ Index: z.ZodNumber;
713
+ Line: z.ZodNumber;
714
+ Col: z.ZodNumber;
715
+ }, z.core.$strip>;
716
+ }, z.core.$strip>;
717
+ }, z.core.$strip>;
718
+ }, z.core.$strip>], "type">;
719
+ Expression: z.ZodObject<{
720
+ Value: z.ZodString;
721
+ Range: z.ZodObject<{
722
+ From: z.ZodObject<{
723
+ Index: z.ZodNumber;
724
+ Line: z.ZodNumber;
725
+ Col: z.ZodNumber;
726
+ }, z.core.$strip>;
727
+ To: z.ZodObject<{
728
+ Index: z.ZodNumber;
729
+ Line: z.ZodNumber;
730
+ Col: z.ZodNumber;
731
+ }, z.core.$strip>;
732
+ }, z.core.$strip>;
733
+ }, z.core.$strip>;
734
+ SingleQuote: z.ZodOptional<z.ZodBoolean>;
735
+ InitializerRange: z.ZodObject<{
736
+ From: z.ZodObject<{
737
+ Index: z.ZodNumber;
738
+ Line: z.ZodNumber;
739
+ Col: z.ZodNumber;
740
+ }, z.core.$strip>;
741
+ To: z.ZodObject<{
742
+ Index: z.ZodNumber;
743
+ Line: z.ZodNumber;
744
+ Col: z.ZodNumber;
745
+ }, z.core.$strip>;
746
+ }, z.core.$strip>;
747
+ Range: z.ZodObject<{
748
+ From: z.ZodObject<{
749
+ Index: z.ZodNumber;
750
+ Line: z.ZodNumber;
751
+ Col: z.ZodNumber;
752
+ }, z.core.$strip>;
753
+ To: z.ZodObject<{
754
+ Index: z.ZodNumber;
755
+ Line: z.ZodNumber;
756
+ Col: z.ZodNumber;
757
+ }, z.core.$strip>;
758
+ }, z.core.$strip>;
759
+ }, z.core.$strip>, z.ZodObject<{
760
+ type: z.ZodLiteral<"SpreadAttributes">;
761
+ Expression: z.ZodObject<{
762
+ Value: z.ZodString;
763
+ Range: z.ZodObject<{
764
+ From: z.ZodObject<{
765
+ Index: z.ZodNumber;
766
+ Line: z.ZodNumber;
767
+ Col: z.ZodNumber;
768
+ }, z.core.$strip>;
769
+ To: z.ZodObject<{
770
+ Index: z.ZodNumber;
771
+ Line: z.ZodNumber;
772
+ Col: z.ZodNumber;
773
+ }, z.core.$strip>;
774
+ }, z.core.$strip>;
775
+ }, z.core.$strip>;
776
+ Range: z.ZodObject<{
777
+ From: z.ZodObject<{
778
+ Index: z.ZodNumber;
779
+ Line: z.ZodNumber;
780
+ Col: z.ZodNumber;
781
+ }, z.core.$strip>;
782
+ To: z.ZodObject<{
783
+ Index: z.ZodNumber;
784
+ Line: z.ZodNumber;
785
+ Col: z.ZodNumber;
786
+ }, z.core.$strip>;
787
+ }, z.core.$strip>;
788
+ }, z.core.$strip>, z.ZodObject</*elided*/ any, z.core.$strip>]>>>;
789
+ Range: z.ZodObject<{
790
+ From: z.ZodObject<{
791
+ Index: z.ZodNumber;
792
+ Line: z.ZodNumber;
793
+ Col: z.ZodNumber;
794
+ }, z.core.$strip>;
795
+ To: z.ZodObject<{
796
+ Index: z.ZodNumber;
797
+ Line: z.ZodNumber;
798
+ Col: z.ZodNumber;
799
+ }, z.core.$strip>;
800
+ }, z.core.$strip>;
801
+ }, z.core.$strip>;
802
+ export declare const TemplAttributeSchema: z.ZodUnion<readonly [z.ZodObject<{
803
+ type: z.ZodLiteral<"BoolConstantAttribute">;
804
+ Key: z.ZodDiscriminatedUnion<[z.ZodObject<{
805
+ type: z.ZodLiteral<"ConstantAttributeKey">;
806
+ Name: z.ZodString;
807
+ NameRange: z.ZodObject<{
808
+ From: z.ZodObject<{
809
+ Index: z.ZodNumber;
810
+ Line: z.ZodNumber;
811
+ Col: z.ZodNumber;
812
+ }, z.core.$strip>;
813
+ To: z.ZodObject<{
814
+ Index: z.ZodNumber;
815
+ Line: z.ZodNumber;
816
+ Col: z.ZodNumber;
817
+ }, z.core.$strip>;
818
+ }, z.core.$strip>;
819
+ }, z.core.$strip>, z.ZodObject<{
820
+ type: z.ZodLiteral<"ExpressionAttributeKey">;
821
+ Expression: z.ZodObject<{
822
+ Value: z.ZodString;
823
+ Range: z.ZodObject<{
824
+ From: z.ZodObject<{
825
+ Index: z.ZodNumber;
826
+ Line: z.ZodNumber;
827
+ Col: z.ZodNumber;
828
+ }, z.core.$strip>;
829
+ To: z.ZodObject<{
830
+ Index: z.ZodNumber;
831
+ Line: z.ZodNumber;
832
+ Col: z.ZodNumber;
833
+ }, z.core.$strip>;
834
+ }, z.core.$strip>;
835
+ }, z.core.$strip>;
836
+ }, z.core.$strip>], "type">;
837
+ Range: z.ZodObject<{
838
+ From: z.ZodObject<{
839
+ Index: z.ZodNumber;
840
+ Line: z.ZodNumber;
841
+ Col: z.ZodNumber;
842
+ }, z.core.$strip>;
843
+ To: z.ZodObject<{
844
+ Index: z.ZodNumber;
845
+ Line: z.ZodNumber;
846
+ Col: z.ZodNumber;
847
+ }, z.core.$strip>;
848
+ }, z.core.$strip>;
849
+ }, z.core.$strip>, z.ZodObject<{
850
+ type: z.ZodLiteral<"ConstantAttribute">;
851
+ Key: z.ZodDiscriminatedUnion<[z.ZodObject<{
852
+ type: z.ZodLiteral<"ConstantAttributeKey">;
853
+ Name: z.ZodString;
854
+ NameRange: z.ZodObject<{
855
+ From: z.ZodObject<{
856
+ Index: z.ZodNumber;
857
+ Line: z.ZodNumber;
858
+ Col: z.ZodNumber;
859
+ }, z.core.$strip>;
860
+ To: z.ZodObject<{
861
+ Index: z.ZodNumber;
862
+ Line: z.ZodNumber;
863
+ Col: z.ZodNumber;
864
+ }, z.core.$strip>;
865
+ }, z.core.$strip>;
866
+ }, z.core.$strip>, z.ZodObject<{
867
+ type: z.ZodLiteral<"ExpressionAttributeKey">;
868
+ Expression: z.ZodObject<{
869
+ Value: z.ZodString;
870
+ Range: z.ZodObject<{
871
+ From: z.ZodObject<{
872
+ Index: z.ZodNumber;
873
+ Line: z.ZodNumber;
874
+ Col: z.ZodNumber;
875
+ }, z.core.$strip>;
876
+ To: z.ZodObject<{
877
+ Index: z.ZodNumber;
878
+ Line: z.ZodNumber;
879
+ Col: z.ZodNumber;
880
+ }, z.core.$strip>;
881
+ }, z.core.$strip>;
882
+ }, z.core.$strip>;
883
+ }, z.core.$strip>], "type">;
884
+ Value: z.ZodString;
885
+ SingleQuote: z.ZodBoolean;
886
+ ValueRange: z.ZodObject<{
887
+ From: z.ZodObject<{
888
+ Index: z.ZodNumber;
889
+ Line: z.ZodNumber;
890
+ Col: z.ZodNumber;
891
+ }, z.core.$strip>;
892
+ To: z.ZodObject<{
893
+ Index: z.ZodNumber;
894
+ Line: z.ZodNumber;
895
+ Col: z.ZodNumber;
896
+ }, z.core.$strip>;
897
+ }, z.core.$strip>;
898
+ Range: z.ZodObject<{
899
+ From: z.ZodObject<{
900
+ Index: z.ZodNumber;
901
+ Line: z.ZodNumber;
902
+ Col: z.ZodNumber;
903
+ }, z.core.$strip>;
904
+ To: z.ZodObject<{
905
+ Index: z.ZodNumber;
906
+ Line: z.ZodNumber;
907
+ Col: z.ZodNumber;
908
+ }, z.core.$strip>;
909
+ }, z.core.$strip>;
910
+ }, z.core.$strip>, z.ZodObject<{
911
+ type: z.ZodLiteral<"ExpressionAttribute">;
912
+ Key: z.ZodDiscriminatedUnion<[z.ZodObject<{
913
+ type: z.ZodLiteral<"ConstantAttributeKey">;
914
+ Name: z.ZodString;
915
+ NameRange: z.ZodObject<{
916
+ From: z.ZodObject<{
917
+ Index: z.ZodNumber;
918
+ Line: z.ZodNumber;
919
+ Col: z.ZodNumber;
920
+ }, z.core.$strip>;
921
+ To: z.ZodObject<{
922
+ Index: z.ZodNumber;
923
+ Line: z.ZodNumber;
924
+ Col: z.ZodNumber;
925
+ }, z.core.$strip>;
926
+ }, z.core.$strip>;
927
+ }, z.core.$strip>, z.ZodObject<{
928
+ type: z.ZodLiteral<"ExpressionAttributeKey">;
929
+ Expression: z.ZodObject<{
930
+ Value: z.ZodString;
931
+ Range: z.ZodObject<{
932
+ From: z.ZodObject<{
933
+ Index: z.ZodNumber;
934
+ Line: z.ZodNumber;
935
+ Col: z.ZodNumber;
936
+ }, z.core.$strip>;
937
+ To: z.ZodObject<{
938
+ Index: z.ZodNumber;
939
+ Line: z.ZodNumber;
940
+ Col: z.ZodNumber;
941
+ }, z.core.$strip>;
942
+ }, z.core.$strip>;
943
+ }, z.core.$strip>;
944
+ }, z.core.$strip>], "type">;
945
+ Expression: z.ZodObject<{
946
+ Value: z.ZodString;
947
+ Range: z.ZodObject<{
948
+ From: z.ZodObject<{
949
+ Index: z.ZodNumber;
950
+ Line: z.ZodNumber;
951
+ Col: z.ZodNumber;
952
+ }, z.core.$strip>;
953
+ To: z.ZodObject<{
954
+ Index: z.ZodNumber;
955
+ Line: z.ZodNumber;
956
+ Col: z.ZodNumber;
957
+ }, z.core.$strip>;
958
+ }, z.core.$strip>;
959
+ }, z.core.$strip>;
960
+ SingleQuote: z.ZodOptional<z.ZodBoolean>;
961
+ InitializerRange: z.ZodObject<{
962
+ From: z.ZodObject<{
963
+ Index: z.ZodNumber;
964
+ Line: z.ZodNumber;
965
+ Col: z.ZodNumber;
966
+ }, z.core.$strip>;
967
+ To: z.ZodObject<{
968
+ Index: z.ZodNumber;
969
+ Line: z.ZodNumber;
970
+ Col: z.ZodNumber;
971
+ }, z.core.$strip>;
972
+ }, z.core.$strip>;
973
+ Range: z.ZodObject<{
974
+ From: z.ZodObject<{
975
+ Index: z.ZodNumber;
976
+ Line: z.ZodNumber;
977
+ Col: z.ZodNumber;
978
+ }, z.core.$strip>;
979
+ To: z.ZodObject<{
980
+ Index: z.ZodNumber;
981
+ Line: z.ZodNumber;
982
+ Col: z.ZodNumber;
983
+ }, z.core.$strip>;
984
+ }, z.core.$strip>;
985
+ }, z.core.$strip>, z.ZodObject<{
986
+ type: z.ZodLiteral<"SpreadAttributes">;
987
+ Expression: z.ZodObject<{
988
+ Value: z.ZodString;
989
+ Range: z.ZodObject<{
990
+ From: z.ZodObject<{
991
+ Index: z.ZodNumber;
992
+ Line: z.ZodNumber;
993
+ Col: z.ZodNumber;
994
+ }, z.core.$strip>;
995
+ To: z.ZodObject<{
996
+ Index: z.ZodNumber;
997
+ Line: z.ZodNumber;
998
+ Col: z.ZodNumber;
999
+ }, z.core.$strip>;
1000
+ }, z.core.$strip>;
1001
+ }, z.core.$strip>;
1002
+ Range: z.ZodObject<{
1003
+ From: z.ZodObject<{
1004
+ Index: z.ZodNumber;
1005
+ Line: z.ZodNumber;
1006
+ Col: z.ZodNumber;
1007
+ }, z.core.$strip>;
1008
+ To: z.ZodObject<{
1009
+ Index: z.ZodNumber;
1010
+ Line: z.ZodNumber;
1011
+ Col: z.ZodNumber;
1012
+ }, z.core.$strip>;
1013
+ }, z.core.$strip>;
1014
+ }, z.core.$strip>, z.ZodObject<{
1015
+ type: z.ZodLiteral<"ConditionalAttribute">;
1016
+ Expression: z.ZodObject<{
1017
+ Value: z.ZodString;
1018
+ Range: z.ZodObject<{
1019
+ From: z.ZodObject<{
1020
+ Index: z.ZodNumber;
1021
+ Line: z.ZodNumber;
1022
+ Col: z.ZodNumber;
1023
+ }, z.core.$strip>;
1024
+ To: z.ZodObject<{
1025
+ Index: z.ZodNumber;
1026
+ Line: z.ZodNumber;
1027
+ Col: z.ZodNumber;
1028
+ }, z.core.$strip>;
1029
+ }, z.core.$strip>;
1030
+ }, z.core.$strip>;
1031
+ Then: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1032
+ type: z.ZodLiteral<"BoolConstantAttribute">;
1033
+ Key: z.ZodDiscriminatedUnion<[z.ZodObject<{
1034
+ type: z.ZodLiteral<"ConstantAttributeKey">;
1035
+ Name: z.ZodString;
1036
+ NameRange: z.ZodObject<{
1037
+ From: z.ZodObject<{
1038
+ Index: z.ZodNumber;
1039
+ Line: z.ZodNumber;
1040
+ Col: z.ZodNumber;
1041
+ }, z.core.$strip>;
1042
+ To: z.ZodObject<{
1043
+ Index: z.ZodNumber;
1044
+ Line: z.ZodNumber;
1045
+ Col: z.ZodNumber;
1046
+ }, z.core.$strip>;
1047
+ }, z.core.$strip>;
1048
+ }, z.core.$strip>, z.ZodObject<{
1049
+ type: z.ZodLiteral<"ExpressionAttributeKey">;
1050
+ Expression: z.ZodObject<{
1051
+ Value: z.ZodString;
1052
+ Range: z.ZodObject<{
1053
+ From: z.ZodObject<{
1054
+ Index: z.ZodNumber;
1055
+ Line: z.ZodNumber;
1056
+ Col: z.ZodNumber;
1057
+ }, z.core.$strip>;
1058
+ To: z.ZodObject<{
1059
+ Index: z.ZodNumber;
1060
+ Line: z.ZodNumber;
1061
+ Col: z.ZodNumber;
1062
+ }, z.core.$strip>;
1063
+ }, z.core.$strip>;
1064
+ }, z.core.$strip>;
1065
+ }, z.core.$strip>], "type">;
1066
+ Range: z.ZodObject<{
1067
+ From: z.ZodObject<{
1068
+ Index: z.ZodNumber;
1069
+ Line: z.ZodNumber;
1070
+ Col: z.ZodNumber;
1071
+ }, z.core.$strip>;
1072
+ To: z.ZodObject<{
1073
+ Index: z.ZodNumber;
1074
+ Line: z.ZodNumber;
1075
+ Col: z.ZodNumber;
1076
+ }, z.core.$strip>;
1077
+ }, z.core.$strip>;
1078
+ }, z.core.$strip>, z.ZodObject<{
1079
+ type: z.ZodLiteral<"ConstantAttribute">;
1080
+ Key: z.ZodDiscriminatedUnion<[z.ZodObject<{
1081
+ type: z.ZodLiteral<"ConstantAttributeKey">;
1082
+ Name: z.ZodString;
1083
+ NameRange: z.ZodObject<{
1084
+ From: z.ZodObject<{
1085
+ Index: z.ZodNumber;
1086
+ Line: z.ZodNumber;
1087
+ Col: z.ZodNumber;
1088
+ }, z.core.$strip>;
1089
+ To: z.ZodObject<{
1090
+ Index: z.ZodNumber;
1091
+ Line: z.ZodNumber;
1092
+ Col: z.ZodNumber;
1093
+ }, z.core.$strip>;
1094
+ }, z.core.$strip>;
1095
+ }, z.core.$strip>, z.ZodObject<{
1096
+ type: z.ZodLiteral<"ExpressionAttributeKey">;
1097
+ Expression: z.ZodObject<{
1098
+ Value: z.ZodString;
1099
+ Range: z.ZodObject<{
1100
+ From: z.ZodObject<{
1101
+ Index: z.ZodNumber;
1102
+ Line: z.ZodNumber;
1103
+ Col: z.ZodNumber;
1104
+ }, z.core.$strip>;
1105
+ To: z.ZodObject<{
1106
+ Index: z.ZodNumber;
1107
+ Line: z.ZodNumber;
1108
+ Col: z.ZodNumber;
1109
+ }, z.core.$strip>;
1110
+ }, z.core.$strip>;
1111
+ }, z.core.$strip>;
1112
+ }, z.core.$strip>], "type">;
1113
+ Value: z.ZodString;
1114
+ SingleQuote: z.ZodBoolean;
1115
+ ValueRange: z.ZodObject<{
1116
+ From: z.ZodObject<{
1117
+ Index: z.ZodNumber;
1118
+ Line: z.ZodNumber;
1119
+ Col: z.ZodNumber;
1120
+ }, z.core.$strip>;
1121
+ To: z.ZodObject<{
1122
+ Index: z.ZodNumber;
1123
+ Line: z.ZodNumber;
1124
+ Col: z.ZodNumber;
1125
+ }, z.core.$strip>;
1126
+ }, z.core.$strip>;
1127
+ Range: z.ZodObject<{
1128
+ From: z.ZodObject<{
1129
+ Index: z.ZodNumber;
1130
+ Line: z.ZodNumber;
1131
+ Col: z.ZodNumber;
1132
+ }, z.core.$strip>;
1133
+ To: z.ZodObject<{
1134
+ Index: z.ZodNumber;
1135
+ Line: z.ZodNumber;
1136
+ Col: z.ZodNumber;
1137
+ }, z.core.$strip>;
1138
+ }, z.core.$strip>;
1139
+ }, z.core.$strip>, z.ZodObject<{
1140
+ type: z.ZodLiteral<"ExpressionAttribute">;
1141
+ Key: z.ZodDiscriminatedUnion<[z.ZodObject<{
1142
+ type: z.ZodLiteral<"ConstantAttributeKey">;
1143
+ Name: z.ZodString;
1144
+ NameRange: z.ZodObject<{
1145
+ From: z.ZodObject<{
1146
+ Index: z.ZodNumber;
1147
+ Line: z.ZodNumber;
1148
+ Col: z.ZodNumber;
1149
+ }, z.core.$strip>;
1150
+ To: z.ZodObject<{
1151
+ Index: z.ZodNumber;
1152
+ Line: z.ZodNumber;
1153
+ Col: z.ZodNumber;
1154
+ }, z.core.$strip>;
1155
+ }, z.core.$strip>;
1156
+ }, z.core.$strip>, z.ZodObject<{
1157
+ type: z.ZodLiteral<"ExpressionAttributeKey">;
1158
+ Expression: z.ZodObject<{
1159
+ Value: z.ZodString;
1160
+ Range: z.ZodObject<{
1161
+ From: z.ZodObject<{
1162
+ Index: z.ZodNumber;
1163
+ Line: z.ZodNumber;
1164
+ Col: z.ZodNumber;
1165
+ }, z.core.$strip>;
1166
+ To: z.ZodObject<{
1167
+ Index: z.ZodNumber;
1168
+ Line: z.ZodNumber;
1169
+ Col: z.ZodNumber;
1170
+ }, z.core.$strip>;
1171
+ }, z.core.$strip>;
1172
+ }, z.core.$strip>;
1173
+ }, z.core.$strip>], "type">;
1174
+ Expression: z.ZodObject<{
1175
+ Value: z.ZodString;
1176
+ Range: z.ZodObject<{
1177
+ From: z.ZodObject<{
1178
+ Index: z.ZodNumber;
1179
+ Line: z.ZodNumber;
1180
+ Col: z.ZodNumber;
1181
+ }, z.core.$strip>;
1182
+ To: z.ZodObject<{
1183
+ Index: z.ZodNumber;
1184
+ Line: z.ZodNumber;
1185
+ Col: z.ZodNumber;
1186
+ }, z.core.$strip>;
1187
+ }, z.core.$strip>;
1188
+ }, z.core.$strip>;
1189
+ SingleQuote: z.ZodOptional<z.ZodBoolean>;
1190
+ InitializerRange: z.ZodObject<{
1191
+ From: z.ZodObject<{
1192
+ Index: z.ZodNumber;
1193
+ Line: z.ZodNumber;
1194
+ Col: z.ZodNumber;
1195
+ }, z.core.$strip>;
1196
+ To: z.ZodObject<{
1197
+ Index: z.ZodNumber;
1198
+ Line: z.ZodNumber;
1199
+ Col: z.ZodNumber;
1200
+ }, z.core.$strip>;
1201
+ }, z.core.$strip>;
1202
+ Range: z.ZodObject<{
1203
+ From: z.ZodObject<{
1204
+ Index: z.ZodNumber;
1205
+ Line: z.ZodNumber;
1206
+ Col: z.ZodNumber;
1207
+ }, z.core.$strip>;
1208
+ To: z.ZodObject<{
1209
+ Index: z.ZodNumber;
1210
+ Line: z.ZodNumber;
1211
+ Col: z.ZodNumber;
1212
+ }, z.core.$strip>;
1213
+ }, z.core.$strip>;
1214
+ }, z.core.$strip>, z.ZodObject<{
1215
+ type: z.ZodLiteral<"SpreadAttributes">;
1216
+ Expression: z.ZodObject<{
1217
+ Value: z.ZodString;
1218
+ Range: z.ZodObject<{
1219
+ From: z.ZodObject<{
1220
+ Index: z.ZodNumber;
1221
+ Line: z.ZodNumber;
1222
+ Col: z.ZodNumber;
1223
+ }, z.core.$strip>;
1224
+ To: z.ZodObject<{
1225
+ Index: z.ZodNumber;
1226
+ Line: z.ZodNumber;
1227
+ Col: z.ZodNumber;
1228
+ }, z.core.$strip>;
1229
+ }, z.core.$strip>;
1230
+ }, z.core.$strip>;
1231
+ Range: z.ZodObject<{
1232
+ From: z.ZodObject<{
1233
+ Index: z.ZodNumber;
1234
+ Line: z.ZodNumber;
1235
+ Col: z.ZodNumber;
1236
+ }, z.core.$strip>;
1237
+ To: z.ZodObject<{
1238
+ Index: z.ZodNumber;
1239
+ Line: z.ZodNumber;
1240
+ Col: z.ZodNumber;
1241
+ }, z.core.$strip>;
1242
+ }, z.core.$strip>;
1243
+ }, z.core.$strip>, z.ZodObject</*elided*/ any, z.core.$strip>]>>;
1244
+ Else: z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1245
+ type: z.ZodLiteral<"BoolConstantAttribute">;
1246
+ Key: z.ZodDiscriminatedUnion<[z.ZodObject<{
1247
+ type: z.ZodLiteral<"ConstantAttributeKey">;
1248
+ Name: z.ZodString;
1249
+ NameRange: z.ZodObject<{
1250
+ From: z.ZodObject<{
1251
+ Index: z.ZodNumber;
1252
+ Line: z.ZodNumber;
1253
+ Col: z.ZodNumber;
1254
+ }, z.core.$strip>;
1255
+ To: z.ZodObject<{
1256
+ Index: z.ZodNumber;
1257
+ Line: z.ZodNumber;
1258
+ Col: z.ZodNumber;
1259
+ }, z.core.$strip>;
1260
+ }, z.core.$strip>;
1261
+ }, z.core.$strip>, z.ZodObject<{
1262
+ type: z.ZodLiteral<"ExpressionAttributeKey">;
1263
+ Expression: z.ZodObject<{
1264
+ Value: z.ZodString;
1265
+ Range: z.ZodObject<{
1266
+ From: z.ZodObject<{
1267
+ Index: z.ZodNumber;
1268
+ Line: z.ZodNumber;
1269
+ Col: z.ZodNumber;
1270
+ }, z.core.$strip>;
1271
+ To: z.ZodObject<{
1272
+ Index: z.ZodNumber;
1273
+ Line: z.ZodNumber;
1274
+ Col: z.ZodNumber;
1275
+ }, z.core.$strip>;
1276
+ }, z.core.$strip>;
1277
+ }, z.core.$strip>;
1278
+ }, z.core.$strip>], "type">;
1279
+ Range: z.ZodObject<{
1280
+ From: z.ZodObject<{
1281
+ Index: z.ZodNumber;
1282
+ Line: z.ZodNumber;
1283
+ Col: z.ZodNumber;
1284
+ }, z.core.$strip>;
1285
+ To: z.ZodObject<{
1286
+ Index: z.ZodNumber;
1287
+ Line: z.ZodNumber;
1288
+ Col: z.ZodNumber;
1289
+ }, z.core.$strip>;
1290
+ }, z.core.$strip>;
1291
+ }, z.core.$strip>, z.ZodObject<{
1292
+ type: z.ZodLiteral<"ConstantAttribute">;
1293
+ Key: z.ZodDiscriminatedUnion<[z.ZodObject<{
1294
+ type: z.ZodLiteral<"ConstantAttributeKey">;
1295
+ Name: z.ZodString;
1296
+ NameRange: z.ZodObject<{
1297
+ From: z.ZodObject<{
1298
+ Index: z.ZodNumber;
1299
+ Line: z.ZodNumber;
1300
+ Col: z.ZodNumber;
1301
+ }, z.core.$strip>;
1302
+ To: z.ZodObject<{
1303
+ Index: z.ZodNumber;
1304
+ Line: z.ZodNumber;
1305
+ Col: z.ZodNumber;
1306
+ }, z.core.$strip>;
1307
+ }, z.core.$strip>;
1308
+ }, z.core.$strip>, z.ZodObject<{
1309
+ type: z.ZodLiteral<"ExpressionAttributeKey">;
1310
+ Expression: z.ZodObject<{
1311
+ Value: z.ZodString;
1312
+ Range: z.ZodObject<{
1313
+ From: z.ZodObject<{
1314
+ Index: z.ZodNumber;
1315
+ Line: z.ZodNumber;
1316
+ Col: z.ZodNumber;
1317
+ }, z.core.$strip>;
1318
+ To: z.ZodObject<{
1319
+ Index: z.ZodNumber;
1320
+ Line: z.ZodNumber;
1321
+ Col: z.ZodNumber;
1322
+ }, z.core.$strip>;
1323
+ }, z.core.$strip>;
1324
+ }, z.core.$strip>;
1325
+ }, z.core.$strip>], "type">;
1326
+ Value: z.ZodString;
1327
+ SingleQuote: z.ZodBoolean;
1328
+ ValueRange: z.ZodObject<{
1329
+ From: z.ZodObject<{
1330
+ Index: z.ZodNumber;
1331
+ Line: z.ZodNumber;
1332
+ Col: z.ZodNumber;
1333
+ }, z.core.$strip>;
1334
+ To: z.ZodObject<{
1335
+ Index: z.ZodNumber;
1336
+ Line: z.ZodNumber;
1337
+ Col: z.ZodNumber;
1338
+ }, z.core.$strip>;
1339
+ }, z.core.$strip>;
1340
+ Range: z.ZodObject<{
1341
+ From: z.ZodObject<{
1342
+ Index: z.ZodNumber;
1343
+ Line: z.ZodNumber;
1344
+ Col: z.ZodNumber;
1345
+ }, z.core.$strip>;
1346
+ To: z.ZodObject<{
1347
+ Index: z.ZodNumber;
1348
+ Line: z.ZodNumber;
1349
+ Col: z.ZodNumber;
1350
+ }, z.core.$strip>;
1351
+ }, z.core.$strip>;
1352
+ }, z.core.$strip>, z.ZodObject<{
1353
+ type: z.ZodLiteral<"ExpressionAttribute">;
1354
+ Key: z.ZodDiscriminatedUnion<[z.ZodObject<{
1355
+ type: z.ZodLiteral<"ConstantAttributeKey">;
1356
+ Name: z.ZodString;
1357
+ NameRange: z.ZodObject<{
1358
+ From: z.ZodObject<{
1359
+ Index: z.ZodNumber;
1360
+ Line: z.ZodNumber;
1361
+ Col: z.ZodNumber;
1362
+ }, z.core.$strip>;
1363
+ To: z.ZodObject<{
1364
+ Index: z.ZodNumber;
1365
+ Line: z.ZodNumber;
1366
+ Col: z.ZodNumber;
1367
+ }, z.core.$strip>;
1368
+ }, z.core.$strip>;
1369
+ }, z.core.$strip>, z.ZodObject<{
1370
+ type: z.ZodLiteral<"ExpressionAttributeKey">;
1371
+ Expression: z.ZodObject<{
1372
+ Value: z.ZodString;
1373
+ Range: z.ZodObject<{
1374
+ From: z.ZodObject<{
1375
+ Index: z.ZodNumber;
1376
+ Line: z.ZodNumber;
1377
+ Col: z.ZodNumber;
1378
+ }, z.core.$strip>;
1379
+ To: z.ZodObject<{
1380
+ Index: z.ZodNumber;
1381
+ Line: z.ZodNumber;
1382
+ Col: z.ZodNumber;
1383
+ }, z.core.$strip>;
1384
+ }, z.core.$strip>;
1385
+ }, z.core.$strip>;
1386
+ }, z.core.$strip>], "type">;
1387
+ Expression: z.ZodObject<{
1388
+ Value: z.ZodString;
1389
+ Range: z.ZodObject<{
1390
+ From: z.ZodObject<{
1391
+ Index: z.ZodNumber;
1392
+ Line: z.ZodNumber;
1393
+ Col: z.ZodNumber;
1394
+ }, z.core.$strip>;
1395
+ To: z.ZodObject<{
1396
+ Index: z.ZodNumber;
1397
+ Line: z.ZodNumber;
1398
+ Col: z.ZodNumber;
1399
+ }, z.core.$strip>;
1400
+ }, z.core.$strip>;
1401
+ }, z.core.$strip>;
1402
+ SingleQuote: z.ZodOptional<z.ZodBoolean>;
1403
+ InitializerRange: z.ZodObject<{
1404
+ From: z.ZodObject<{
1405
+ Index: z.ZodNumber;
1406
+ Line: z.ZodNumber;
1407
+ Col: z.ZodNumber;
1408
+ }, z.core.$strip>;
1409
+ To: z.ZodObject<{
1410
+ Index: z.ZodNumber;
1411
+ Line: z.ZodNumber;
1412
+ Col: z.ZodNumber;
1413
+ }, z.core.$strip>;
1414
+ }, z.core.$strip>;
1415
+ Range: z.ZodObject<{
1416
+ From: z.ZodObject<{
1417
+ Index: z.ZodNumber;
1418
+ Line: z.ZodNumber;
1419
+ Col: z.ZodNumber;
1420
+ }, z.core.$strip>;
1421
+ To: z.ZodObject<{
1422
+ Index: z.ZodNumber;
1423
+ Line: z.ZodNumber;
1424
+ Col: z.ZodNumber;
1425
+ }, z.core.$strip>;
1426
+ }, z.core.$strip>;
1427
+ }, z.core.$strip>, z.ZodObject<{
1428
+ type: z.ZodLiteral<"SpreadAttributes">;
1429
+ Expression: z.ZodObject<{
1430
+ Value: z.ZodString;
1431
+ Range: z.ZodObject<{
1432
+ From: z.ZodObject<{
1433
+ Index: z.ZodNumber;
1434
+ Line: z.ZodNumber;
1435
+ Col: z.ZodNumber;
1436
+ }, z.core.$strip>;
1437
+ To: z.ZodObject<{
1438
+ Index: z.ZodNumber;
1439
+ Line: z.ZodNumber;
1440
+ Col: z.ZodNumber;
1441
+ }, z.core.$strip>;
1442
+ }, z.core.$strip>;
1443
+ }, z.core.$strip>;
1444
+ Range: z.ZodObject<{
1445
+ From: z.ZodObject<{
1446
+ Index: z.ZodNumber;
1447
+ Line: z.ZodNumber;
1448
+ Col: z.ZodNumber;
1449
+ }, z.core.$strip>;
1450
+ To: z.ZodObject<{
1451
+ Index: z.ZodNumber;
1452
+ Line: z.ZodNumber;
1453
+ Col: z.ZodNumber;
1454
+ }, z.core.$strip>;
1455
+ }, z.core.$strip>;
1456
+ }, z.core.$strip>, z.ZodObject</*elided*/ any, z.core.$strip>]>>>;
1457
+ Range: z.ZodObject<{
1458
+ From: z.ZodObject<{
1459
+ Index: z.ZodNumber;
1460
+ Line: z.ZodNumber;
1461
+ Col: z.ZodNumber;
1462
+ }, z.core.$strip>;
1463
+ To: z.ZodObject<{
1464
+ Index: z.ZodNumber;
1465
+ Line: z.ZodNumber;
1466
+ Col: z.ZodNumber;
1467
+ }, z.core.$strip>;
1468
+ }, z.core.$strip>;
1469
+ }, z.core.$strip>]>;
1470
+ export type TemplConditionalAttribute = z.infer<typeof TemplConditionalAttributeSchema>;
1471
+ export type TemplAttribute = z.infer<typeof TemplAttributeSchema>;
1472
+ export declare const TemplStringExpressionSchema: z.ZodObject<{
1473
+ Expression: z.ZodObject<{
1474
+ Value: z.ZodString;
1475
+ Range: z.ZodObject<{
1476
+ From: z.ZodObject<{
1477
+ Index: z.ZodNumber;
1478
+ Line: z.ZodNumber;
1479
+ Col: z.ZodNumber;
1480
+ }, z.core.$strip>;
1481
+ To: z.ZodObject<{
1482
+ Index: z.ZodNumber;
1483
+ Line: z.ZodNumber;
1484
+ Col: z.ZodNumber;
1485
+ }, z.core.$strip>;
1486
+ }, z.core.$strip>;
1487
+ }, z.core.$strip>;
1488
+ TrailingSpace: z.ZodString;
1489
+ type: z.ZodLiteral<"StringExpression">;
1490
+ }, z.core.$strip>;
1491
+ export declare const TemplWhitespaceSchema: z.ZodObject<{
1492
+ type: z.ZodLiteral<"Whitespace">;
1493
+ Range: z.ZodObject<{
1494
+ From: z.ZodObject<{
1495
+ Index: z.ZodNumber;
1496
+ Line: z.ZodNumber;
1497
+ Col: z.ZodNumber;
1498
+ }, z.core.$strip>;
1499
+ To: z.ZodObject<{
1500
+ Index: z.ZodNumber;
1501
+ Line: z.ZodNumber;
1502
+ Col: z.ZodNumber;
1503
+ }, z.core.$strip>;
1504
+ }, z.core.$strip>;
1505
+ Value: z.ZodString;
1506
+ }, z.core.$strip>;
1507
+ export declare const TemplTextSchema: z.ZodObject<{
1508
+ type: z.ZodLiteral<"Text">;
1509
+ Range: z.ZodObject<{
1510
+ From: z.ZodObject<{
1511
+ Index: z.ZodNumber;
1512
+ Line: z.ZodNumber;
1513
+ Col: z.ZodNumber;
1514
+ }, z.core.$strip>;
1515
+ To: z.ZodObject<{
1516
+ Index: z.ZodNumber;
1517
+ Line: z.ZodNumber;
1518
+ Col: z.ZodNumber;
1519
+ }, z.core.$strip>;
1520
+ }, z.core.$strip>;
1521
+ Value: z.ZodString;
1522
+ TrailingSpace: z.ZodString;
1523
+ }, z.core.$strip>;
1524
+ export declare const TemplGoCodeSchema: z.ZodObject<{
1525
+ Expression: z.ZodObject<{
1526
+ Value: z.ZodString;
1527
+ Range: z.ZodObject<{
1528
+ From: z.ZodObject<{
1529
+ Index: z.ZodNumber;
1530
+ Line: z.ZodNumber;
1531
+ Col: z.ZodNumber;
1532
+ }, z.core.$strip>;
1533
+ To: z.ZodObject<{
1534
+ Index: z.ZodNumber;
1535
+ Line: z.ZodNumber;
1536
+ Col: z.ZodNumber;
1537
+ }, z.core.$strip>;
1538
+ }, z.core.$strip>;
1539
+ }, z.core.$strip>;
1540
+ TrailingSpace: z.ZodString;
1541
+ Multiline: z.ZodBoolean;
1542
+ type: z.ZodLiteral<"GoCode">;
1543
+ }, z.core.$strip>;
1544
+ export declare const TemplCallExpressionSchema: z.ZodObject<{
1545
+ type: z.ZodLiteral<"CallTemplateExpression">;
1546
+ Expression: z.ZodObject<{
1547
+ Value: z.ZodString;
1548
+ Range: z.ZodObject<{
1549
+ From: z.ZodObject<{
1550
+ Index: z.ZodNumber;
1551
+ Line: z.ZodNumber;
1552
+ Col: z.ZodNumber;
1553
+ }, z.core.$strip>;
1554
+ To: z.ZodObject<{
1555
+ Index: z.ZodNumber;
1556
+ Line: z.ZodNumber;
1557
+ Col: z.ZodNumber;
1558
+ }, z.core.$strip>;
1559
+ }, z.core.$strip>;
1560
+ }, z.core.$strip>;
1561
+ Range: z.ZodObject<{
1562
+ From: z.ZodObject<{
1563
+ Index: z.ZodNumber;
1564
+ Line: z.ZodNumber;
1565
+ Col: z.ZodNumber;
1566
+ }, z.core.$strip>;
1567
+ To: z.ZodObject<{
1568
+ Index: z.ZodNumber;
1569
+ Line: z.ZodNumber;
1570
+ Col: z.ZodNumber;
1571
+ }, z.core.$strip>;
1572
+ }, z.core.$strip>;
1573
+ }, z.core.$strip>;
1574
+ export declare const TemplDocTypeSchema: z.ZodObject<{
1575
+ type: z.ZodLiteral<"DocType">;
1576
+ Range: z.ZodObject<{
1577
+ From: z.ZodObject<{
1578
+ Index: z.ZodNumber;
1579
+ Line: z.ZodNumber;
1580
+ Col: z.ZodNumber;
1581
+ }, z.core.$strip>;
1582
+ To: z.ZodObject<{
1583
+ Index: z.ZodNumber;
1584
+ Line: z.ZodNumber;
1585
+ Col: z.ZodNumber;
1586
+ }, z.core.$strip>;
1587
+ }, z.core.$strip>;
1588
+ Value: z.ZodString;
1589
+ OpenRange: z.ZodObject<{
1590
+ From: z.ZodObject<{
1591
+ Index: z.ZodNumber;
1592
+ Line: z.ZodNumber;
1593
+ Col: z.ZodNumber;
1594
+ }, z.core.$strip>;
1595
+ To: z.ZodObject<{
1596
+ Index: z.ZodNumber;
1597
+ Line: z.ZodNumber;
1598
+ Col: z.ZodNumber;
1599
+ }, z.core.$strip>;
1600
+ }, z.core.$strip>;
1601
+ ValueRange: z.ZodObject<{
1602
+ From: z.ZodObject<{
1603
+ Index: z.ZodNumber;
1604
+ Line: z.ZodNumber;
1605
+ Col: z.ZodNumber;
1606
+ }, z.core.$strip>;
1607
+ To: z.ZodObject<{
1608
+ Index: z.ZodNumber;
1609
+ Line: z.ZodNumber;
1610
+ Col: z.ZodNumber;
1611
+ }, z.core.$strip>;
1612
+ }, z.core.$strip>;
1613
+ CloseRange: z.ZodObject<{
1614
+ From: z.ZodObject<{
1615
+ Index: z.ZodNumber;
1616
+ Line: z.ZodNumber;
1617
+ Col: z.ZodNumber;
1618
+ }, z.core.$strip>;
1619
+ To: z.ZodObject<{
1620
+ Index: z.ZodNumber;
1621
+ Line: z.ZodNumber;
1622
+ Col: z.ZodNumber;
1623
+ }, z.core.$strip>;
1624
+ }, z.core.$strip>;
1625
+ }, z.core.$strip>;
1626
+ export declare const TemplHTMLCommentSchema: z.ZodObject<{
1627
+ type: z.ZodLiteral<"HTMLComment">;
1628
+ Contents: z.ZodString;
1629
+ Range: z.ZodObject<{
1630
+ From: z.ZodObject<{
1631
+ Index: z.ZodNumber;
1632
+ Line: z.ZodNumber;
1633
+ Col: z.ZodNumber;
1634
+ }, z.core.$strip>;
1635
+ To: z.ZodObject<{
1636
+ Index: z.ZodNumber;
1637
+ Line: z.ZodNumber;
1638
+ Col: z.ZodNumber;
1639
+ }, z.core.$strip>;
1640
+ }, z.core.$strip>;
1641
+ }, z.core.$strip>;
1642
+ export declare const TemplGoCommentSchema: z.ZodObject<{
1643
+ type: z.ZodLiteral<"GoComment">;
1644
+ Contents: z.ZodString;
1645
+ Multiline: z.ZodBoolean;
1646
+ Range: z.ZodObject<{
1647
+ From: z.ZodObject<{
1648
+ Index: z.ZodNumber;
1649
+ Line: z.ZodNumber;
1650
+ Col: z.ZodNumber;
1651
+ }, z.core.$strip>;
1652
+ To: z.ZodObject<{
1653
+ Index: z.ZodNumber;
1654
+ Line: z.ZodNumber;
1655
+ Col: z.ZodNumber;
1656
+ }, z.core.$strip>;
1657
+ }, z.core.$strip>;
1658
+ }, z.core.$strip>;
1659
+ export declare const TemplChildrenExpressionSchema: z.ZodObject<{
1660
+ type: z.ZodLiteral<"ChildrenExpression">;
1661
+ Range: z.ZodObject<{
1662
+ From: z.ZodObject<{
1663
+ Index: z.ZodNumber;
1664
+ Line: z.ZodNumber;
1665
+ Col: z.ZodNumber;
1666
+ }, z.core.$strip>;
1667
+ To: z.ZodObject<{
1668
+ Index: z.ZodNumber;
1669
+ Line: z.ZodNumber;
1670
+ Col: z.ZodNumber;
1671
+ }, z.core.$strip>;
1672
+ }, z.core.$strip>;
1673
+ }, z.core.$strip>;
386
1674
  /**
387
1675
  * Inferred TypeScript types from Zod schemas
388
- *
389
- * Note: For recursive types (TemplChild, TemplElementNode), we define explicit
390
- * TypeScript interfaces instead of using z.infer to enable better type narrowing
391
- * and discriminated unions.
392
1676
  */
393
- export type TemplPosition = z.infer<typeof TemplPositionSchema>;
394
- export type TemplRange = z.infer<typeof TemplRangeSchema>;
395
- export type TemplExpression = z.infer<typeof TemplExpressionSchema>;
396
- export type TemplAttribute = z.infer<typeof TemplAttributeSchema>;
397
1677
  export type TemplStringExpression = z.infer<typeof TemplStringExpressionSchema>;
398
- export type TemplGoExpression = z.infer<typeof TemplGoExpressionSchema>;
399
- export type TemplCallExpression = z.infer<typeof TemplCallExpressionSchema>;
400
1678
  export type TemplWhitespace = z.infer<typeof TemplWhitespaceSchema>;
401
1679
  export type TemplText = z.infer<typeof TemplTextSchema>;
1680
+ export type TemplGoCode = z.infer<typeof TemplGoCodeSchema>;
1681
+ export type TemplCallExpression = z.infer<typeof TemplCallExpressionSchema>;
402
1682
  export type TemplDocType = z.infer<typeof TemplDocTypeSchema>;
403
1683
  export type TemplHTMLComment = z.infer<typeof TemplHTMLCommentSchema>;
404
1684
  export type TemplGoComment = z.infer<typeof TemplGoCommentSchema>;
405
- export type TemplGoCode = z.infer<typeof TemplGoCodeSchema>;
406
1685
  export type TemplChildrenExpression = z.infer<typeof TemplChildrenExpressionSchema>;
1686
+ export declare const TemplConstantCSSPropertySchema: z.ZodObject<{
1687
+ type: z.ZodLiteral<"ConstantCSSProperty">;
1688
+ Name: z.ZodString;
1689
+ Value: z.ZodString;
1690
+ }, z.core.$strip>;
1691
+ export declare const TemplExpressionCSSPropertySchema: z.ZodObject<{
1692
+ type: z.ZodLiteral<"ExpressionCSSProperty">;
1693
+ Name: z.ZodString;
1694
+ Value: z.ZodObject<{
1695
+ Expression: z.ZodObject<{
1696
+ Value: z.ZodString;
1697
+ Range: z.ZodObject<{
1698
+ From: z.ZodObject<{
1699
+ Index: z.ZodNumber;
1700
+ Line: z.ZodNumber;
1701
+ Col: z.ZodNumber;
1702
+ }, z.core.$strip>;
1703
+ To: z.ZodObject<{
1704
+ Index: z.ZodNumber;
1705
+ Line: z.ZodNumber;
1706
+ Col: z.ZodNumber;
1707
+ }, z.core.$strip>;
1708
+ }, z.core.$strip>;
1709
+ }, z.core.$strip>;
1710
+ TrailingSpace: z.ZodString;
1711
+ }, z.core.$strip>;
1712
+ }, z.core.$strip>;
1713
+ export declare const TemplCSSPropertySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1714
+ type: z.ZodLiteral<"ConstantCSSProperty">;
1715
+ Name: z.ZodString;
1716
+ Value: z.ZodString;
1717
+ }, z.core.$strip>, z.ZodObject<{
1718
+ type: z.ZodLiteral<"ExpressionCSSProperty">;
1719
+ Name: z.ZodString;
1720
+ Value: z.ZodObject<{
1721
+ Expression: z.ZodObject<{
1722
+ Value: z.ZodString;
1723
+ Range: z.ZodObject<{
1724
+ From: z.ZodObject<{
1725
+ Index: z.ZodNumber;
1726
+ Line: z.ZodNumber;
1727
+ Col: z.ZodNumber;
1728
+ }, z.core.$strip>;
1729
+ To: z.ZodObject<{
1730
+ Index: z.ZodNumber;
1731
+ Line: z.ZodNumber;
1732
+ Col: z.ZodNumber;
1733
+ }, z.core.$strip>;
1734
+ }, z.core.$strip>;
1735
+ }, z.core.$strip>;
1736
+ TrailingSpace: z.ZodString;
1737
+ }, z.core.$strip>;
1738
+ }, z.core.$strip>], "type">;
407
1739
  export type TemplConstantCSSProperty = z.infer<typeof TemplConstantCSSPropertySchema>;
408
1740
  export type TemplExpressionCSSProperty = z.infer<typeof TemplExpressionCSSPropertySchema>;
409
1741
  export type TemplCSSProperty = z.infer<typeof TemplCSSPropertySchema>;
410
- export type TemplCSSTemplate = z.infer<typeof TemplCSSTemplateSchema>;
411
- export type TemplScriptTemplate = z.infer<typeof TemplScriptTemplateSchema>;
412
- export type TemplFileGoExpression = z.infer<typeof TemplFileGoExpressionSchema>;
413
1742
  export interface TemplElementNode {
1743
+ type: "Element";
414
1744
  Name: string;
415
1745
  Attributes: TemplAttribute[] | null;
416
1746
  IndentAttrs: boolean;
417
- Children: TemplChild[];
1747
+ Children: TemplChild[] | null;
418
1748
  IndentChildren: boolean;
419
1749
  TrailingSpace: string;
420
1750
  NameRange: TemplRange;
1751
+ OpenTagRange: TemplRange;
1752
+ OpenTagEndRange: TemplRange;
421
1753
  Range: TemplRange;
1754
+ CloseTagRange: TemplRange | null;
1755
+ SelfClosing: boolean;
422
1756
  }
423
1757
  export interface TemplElseIfExpression {
424
1758
  Expression: TemplExpression;
@@ -426,6 +1760,7 @@ export interface TemplElseIfExpression {
426
1760
  Range: TemplRange;
427
1761
  }
428
1762
  export interface TemplIfExpression {
1763
+ type: "IfExpression";
429
1764
  Expression: TemplExpression;
430
1765
  Then: TemplChild[];
431
1766
  ElseIfs: TemplElseIfExpression[] | null;
@@ -437,37 +1772,44 @@ export interface TemplCaseExpression {
437
1772
  Children: TemplChild[];
438
1773
  }
439
1774
  export interface TemplSwitchExpression {
1775
+ type: "SwitchExpression";
440
1776
  Expression: TemplExpression;
441
1777
  Cases: TemplCaseExpression[];
442
1778
  Range: TemplRange;
443
1779
  }
444
1780
  export interface TemplForExpression {
1781
+ type: "ForExpression";
445
1782
  Expression: TemplExpression;
446
1783
  Children: TemplChild[];
447
1784
  Range: TemplRange;
448
1785
  }
449
1786
  export interface TemplElementExpression {
1787
+ type: "TemplElementExpression";
450
1788
  Expression: TemplExpression;
451
1789
  Children: TemplChild[] | null;
452
1790
  Range: TemplRange;
453
1791
  }
454
- export interface TemplScriptContents {
455
- Value: string | null;
456
- GoCode: TemplGoCode | null;
457
- InsideStringLiteral: boolean;
458
- }
459
1792
  export interface TemplScriptElement {
1793
+ type: "ScriptElement";
460
1794
  Attributes: TemplAttribute[] | null;
461
- Contents: TemplScriptContents[];
1795
+ Contents: TemplScriptContents[] | null;
1796
+ OpenTagRange: TemplRange;
1797
+ OpenTagEndRange: TemplRange;
1798
+ CloseTagRange: TemplRange;
462
1799
  Range: TemplRange;
463
1800
  }
464
1801
  export interface TemplRawElement {
1802
+ type: "RawElement";
465
1803
  Name: string;
466
1804
  Attributes: TemplAttribute[] | null;
467
1805
  Contents: string;
1806
+ NameRange: TemplRange;
1807
+ OpenTagRange: TemplRange;
1808
+ OpenTagEndRange: TemplRange;
1809
+ CloseTagRange: TemplRange;
468
1810
  Range: TemplRange;
469
1811
  }
470
- export type TemplChild = TemplStringExpression | TemplGoExpression | TemplGoCode | TemplCallExpression | TemplElementExpression | TemplElementNode | TemplWhitespace | TemplText | TemplDocType | TemplHTMLComment | TemplGoComment | TemplIfExpression | TemplForExpression | TemplSwitchExpression | TemplChildrenExpression | TemplScriptElement | TemplRawElement;
1812
+ export type TemplChild = TemplStringExpression | TemplGoCode | TemplCallExpression | TemplElementExpression | TemplElementNode | TemplWhitespace | TemplText | TemplDocType | TemplHTMLComment | TemplGoComment | TemplIfExpression | TemplForExpression | TemplSwitchExpression | TemplChildrenExpression | TemplScriptElement | TemplRawElement;
471
1813
  export declare const TemplElementNodeSchema: z.ZodType<TemplElementNode>;
472
1814
  export declare const TemplElseIfExpressionSchema: z.ZodType<TemplElseIfExpression>;
473
1815
  export declare const TemplIfExpressionSchema: z.ZodType<TemplIfExpression>;
@@ -475,214 +1817,35 @@ export declare const TemplCaseExpressionSchema: z.ZodType<TemplCaseExpression>;
475
1817
  export declare const TemplSwitchExpressionSchema: z.ZodType<TemplSwitchExpression>;
476
1818
  export declare const TemplForExpressionSchema: z.ZodType<TemplForExpression>;
477
1819
  export declare const TemplElementExpressionSchema: z.ZodType<TemplElementExpression>;
478
- export declare const TemplScriptContentsSchema: z.ZodType<TemplScriptContents>;
479
- export declare const TemplScriptElementSchema: z.ZodType<TemplScriptElement>;
480
- export declare const TemplRawElementSchema: z.ZodType<TemplRawElement>;
481
- export declare const TemplChildSchema: z.ZodType<TemplChild>;
482
- export declare const TemplHTMLTemplateSchema: z.ZodObject<{
483
- Range: z.ZodObject<{
484
- From: z.ZodObject<{
485
- Index: z.ZodNumber;
486
- Line: z.ZodNumber;
487
- Col: z.ZodNumber;
488
- }, z.core.$strip>;
489
- To: z.ZodObject<{
490
- Index: z.ZodNumber;
491
- Line: z.ZodNumber;
492
- Col: z.ZodNumber;
493
- }, z.core.$strip>;
494
- }, z.core.$strip>;
495
- Expression: z.ZodObject<{
496
- Value: z.ZodString;
497
- Range: z.ZodObject<{
498
- From: z.ZodObject<{
499
- Index: z.ZodNumber;
500
- Line: z.ZodNumber;
501
- Col: z.ZodNumber;
502
- }, z.core.$strip>;
503
- To: z.ZodObject<{
504
- Index: z.ZodNumber;
505
- Line: z.ZodNumber;
506
- Col: z.ZodNumber;
507
- }, z.core.$strip>;
508
- }, z.core.$strip>;
509
- }, z.core.$strip>;
510
- Children: z.ZodArray<z.ZodType<TemplChild, unknown, z.core.$ZodTypeInternals<TemplChild, unknown>>>;
511
- }, z.core.$strip>;
512
- export declare const TemplFileNodeSchema: z.ZodUnion<readonly [z.ZodObject<{
513
- Range: z.ZodObject<{
514
- From: z.ZodObject<{
515
- Index: z.ZodNumber;
516
- Line: z.ZodNumber;
517
- Col: z.ZodNumber;
518
- }, z.core.$strip>;
519
- To: z.ZodObject<{
520
- Index: z.ZodNumber;
521
- Line: z.ZodNumber;
522
- Col: z.ZodNumber;
523
- }, z.core.$strip>;
524
- }, z.core.$strip>;
525
- Expression: z.ZodObject<{
526
- Value: z.ZodString;
527
- Range: z.ZodObject<{
528
- From: z.ZodObject<{
529
- Index: z.ZodNumber;
530
- Line: z.ZodNumber;
531
- Col: z.ZodNumber;
532
- }, z.core.$strip>;
533
- To: z.ZodObject<{
534
- Index: z.ZodNumber;
535
- Line: z.ZodNumber;
536
- Col: z.ZodNumber;
537
- }, z.core.$strip>;
538
- }, z.core.$strip>;
539
- }, z.core.$strip>;
540
- Children: z.ZodArray<z.ZodType<TemplChild, unknown, z.core.$ZodTypeInternals<TemplChild, unknown>>>;
541
- }, z.core.$strip>, z.ZodObject<{
542
- Range: z.ZodObject<{
543
- From: z.ZodObject<{
544
- Index: z.ZodNumber;
545
- Line: z.ZodNumber;
546
- Col: z.ZodNumber;
547
- }, z.core.$strip>;
548
- To: z.ZodObject<{
549
- Index: z.ZodNumber;
550
- Line: z.ZodNumber;
551
- Col: z.ZodNumber;
552
- }, z.core.$strip>;
553
- }, z.core.$strip>;
554
- Name: z.ZodString;
555
- Expression: z.ZodObject<{
556
- Value: z.ZodString;
557
- Range: z.ZodObject<{
558
- From: z.ZodObject<{
559
- Index: z.ZodNumber;
560
- Line: z.ZodNumber;
561
- Col: z.ZodNumber;
562
- }, z.core.$strip>;
563
- To: z.ZodObject<{
564
- Index: z.ZodNumber;
565
- Line: z.ZodNumber;
566
- Col: z.ZodNumber;
567
- }, z.core.$strip>;
568
- }, z.core.$strip>;
569
- }, z.core.$strip>;
570
- Properties: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
571
- Name: z.ZodString;
572
- Value: z.ZodString;
573
- }, z.core.$strip>, z.ZodObject<{
574
- Name: z.ZodString;
575
- Value: z.ZodObject<{
576
- Expression: z.ZodObject<{
577
- Value: z.ZodString;
578
- Range: z.ZodObject<{
579
- From: z.ZodObject<{
580
- Index: z.ZodNumber;
581
- Line: z.ZodNumber;
582
- Col: z.ZodNumber;
583
- }, z.core.$strip>;
584
- To: z.ZodObject<{
585
- Index: z.ZodNumber;
586
- Line: z.ZodNumber;
587
- Col: z.ZodNumber;
588
- }, z.core.$strip>;
1820
+ export declare const TemplScriptContentsSchema: z.ZodObject<{
1821
+ Value: z.ZodNullable<z.ZodString>;
1822
+ GoCode: z.ZodNullable<z.ZodObject<{
1823
+ Expression: z.ZodObject<{
1824
+ Value: z.ZodString;
1825
+ Range: z.ZodObject<{
1826
+ From: z.ZodObject<{
1827
+ Index: z.ZodNumber;
1828
+ Line: z.ZodNumber;
1829
+ Col: z.ZodNumber;
1830
+ }, z.core.$strip>;
1831
+ To: z.ZodObject<{
1832
+ Index: z.ZodNumber;
1833
+ Line: z.ZodNumber;
1834
+ Col: z.ZodNumber;
589
1835
  }, z.core.$strip>;
590
- }, z.core.$strip>;
591
- TrailingSpace: z.ZodString;
592
- }, z.core.$strip>;
593
- }, z.core.$strip>]>>;
594
- }, z.core.$strip>, z.ZodObject<{
595
- Range: z.ZodObject<{
596
- From: z.ZodObject<{
597
- Index: z.ZodNumber;
598
- Line: z.ZodNumber;
599
- Col: z.ZodNumber;
600
- }, z.core.$strip>;
601
- To: z.ZodObject<{
602
- Index: z.ZodNumber;
603
- Line: z.ZodNumber;
604
- Col: z.ZodNumber;
605
- }, z.core.$strip>;
606
- }, z.core.$strip>;
607
- Name: z.ZodObject<{
608
- Value: z.ZodString;
609
- Range: z.ZodObject<{
610
- From: z.ZodObject<{
611
- Index: z.ZodNumber;
612
- Line: z.ZodNumber;
613
- Col: z.ZodNumber;
614
- }, z.core.$strip>;
615
- To: z.ZodObject<{
616
- Index: z.ZodNumber;
617
- Line: z.ZodNumber;
618
- Col: z.ZodNumber;
619
- }, z.core.$strip>;
620
- }, z.core.$strip>;
621
- }, z.core.$strip>;
622
- Parameters: z.ZodObject<{
623
- Value: z.ZodString;
624
- Range: z.ZodObject<{
625
- From: z.ZodObject<{
626
- Index: z.ZodNumber;
627
- Line: z.ZodNumber;
628
- Col: z.ZodNumber;
629
- }, z.core.$strip>;
630
- To: z.ZodObject<{
631
- Index: z.ZodNumber;
632
- Line: z.ZodNumber;
633
- Col: z.ZodNumber;
634
- }, z.core.$strip>;
635
- }, z.core.$strip>;
636
- }, z.core.$strip>;
637
- Value: z.ZodString;
638
- }, z.core.$strip>, z.ZodObject<{
639
- Expression: z.ZodObject<{
640
- Value: z.ZodString;
641
- Range: z.ZodObject<{
642
- From: z.ZodObject<{
643
- Index: z.ZodNumber;
644
- Line: z.ZodNumber;
645
- Col: z.ZodNumber;
646
- }, z.core.$strip>;
647
- To: z.ZodObject<{
648
- Index: z.ZodNumber;
649
- Line: z.ZodNumber;
650
- Col: z.ZodNumber;
651
- }, z.core.$strip>;
652
- }, z.core.$strip>;
653
- }, z.core.$strip>;
654
- BeforePackage: z.ZodBoolean;
655
- }, z.core.$strip>]>;
656
- export declare const TemplASTSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
657
- Range: z.ZodObject<{
658
- From: z.ZodObject<{
659
- Index: z.ZodNumber;
660
- Line: z.ZodNumber;
661
- Col: z.ZodNumber;
662
- }, z.core.$strip>;
663
- To: z.ZodObject<{
664
- Index: z.ZodNumber;
665
- Line: z.ZodNumber;
666
- Col: z.ZodNumber;
667
- }, z.core.$strip>;
668
- }, z.core.$strip>;
669
- Expression: z.ZodObject<{
670
- Value: z.ZodString;
671
- Range: z.ZodObject<{
672
- From: z.ZodObject<{
673
- Index: z.ZodNumber;
674
- Line: z.ZodNumber;
675
- Col: z.ZodNumber;
676
- }, z.core.$strip>;
677
- To: z.ZodObject<{
678
- Index: z.ZodNumber;
679
- Line: z.ZodNumber;
680
- Col: z.ZodNumber;
681
1836
  }, z.core.$strip>;
682
1837
  }, z.core.$strip>;
683
- }, z.core.$strip>;
684
- Children: z.ZodArray<z.ZodType<TemplChild, unknown, z.core.$ZodTypeInternals<TemplChild, unknown>>>;
685
- }, z.core.$strip>, z.ZodObject<{
1838
+ TrailingSpace: z.ZodString;
1839
+ Multiline: z.ZodBoolean;
1840
+ }, z.core.$strip>>;
1841
+ InsideStringLiteral: z.ZodBoolean;
1842
+ }, z.core.$strip>;
1843
+ export type TemplScriptContents = z.infer<typeof TemplScriptContentsSchema>;
1844
+ export declare const TemplScriptElementSchema: z.ZodType<TemplScriptElement>;
1845
+ export declare const TemplRawElementSchema: z.ZodType<TemplRawElement>;
1846
+ export declare const TemplChildSchema: z.ZodType<TemplChild>;
1847
+ export declare const TemplCSSTemplateSchema: z.ZodObject<{
1848
+ type: z.ZodLiteral<"CSSTemplate">;
686
1849
  Range: z.ZodObject<{
687
1850
  From: z.ZodObject<{
688
1851
  Index: z.ZodNumber;
@@ -711,10 +1874,12 @@ export declare const TemplASTSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObject
711
1874
  }, z.core.$strip>;
712
1875
  }, z.core.$strip>;
713
1876
  }, z.core.$strip>;
714
- Properties: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1877
+ Properties: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1878
+ type: z.ZodLiteral<"ConstantCSSProperty">;
715
1879
  Name: z.ZodString;
716
1880
  Value: z.ZodString;
717
1881
  }, z.core.$strip>, z.ZodObject<{
1882
+ type: z.ZodLiteral<"ExpressionCSSProperty">;
718
1883
  Name: z.ZodString;
719
1884
  Value: z.ZodObject<{
720
1885
  Expression: z.ZodObject<{
@@ -734,8 +1899,10 @@ export declare const TemplASTSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObject
734
1899
  }, z.core.$strip>;
735
1900
  TrailingSpace: z.ZodString;
736
1901
  }, z.core.$strip>;
737
- }, z.core.$strip>]>>;
738
- }, z.core.$strip>, z.ZodObject<{
1902
+ }, z.core.$strip>], "type">>;
1903
+ }, z.core.$strip>;
1904
+ export declare const TemplScriptTemplateSchema: z.ZodObject<{
1905
+ type: z.ZodLiteral<"ScriptTemplate">;
739
1906
  Range: z.ZodObject<{
740
1907
  From: z.ZodObject<{
741
1908
  Index: z.ZodNumber;
@@ -779,7 +1946,9 @@ export declare const TemplASTSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObject
779
1946
  }, z.core.$strip>;
780
1947
  }, z.core.$strip>;
781
1948
  Value: z.ZodString;
782
- }, z.core.$strip>, z.ZodObject<{
1949
+ }, z.core.$strip>;
1950
+ export declare const TemplFileGoExpressionSchema: z.ZodObject<{
1951
+ type: z.ZodLiteral<"TemplateFileGoExpression">;
783
1952
  Expression: z.ZodObject<{
784
1953
  Value: z.ZodString;
785
1954
  Range: z.ZodObject<{
@@ -796,9 +1965,20 @@ export declare const TemplASTSchema: z.ZodArray<z.ZodUnion<readonly [z.ZodObject
796
1965
  }, z.core.$strip>;
797
1966
  }, z.core.$strip>;
798
1967
  BeforePackage: z.ZodBoolean;
799
- }, z.core.$strip>]>>;
800
- export type TemplHTMLTemplate = z.infer<typeof TemplHTMLTemplateSchema>;
801
- export type TemplFileNode = z.infer<typeof TemplFileNodeSchema>;
802
- export type TemplAST = z.infer<typeof TemplASTSchema>;
803
- export type TemplComponentNode = TemplHTMLTemplate;
1968
+ }, z.core.$strip>;
1969
+ export declare const TemplHTMLTemplateSchema: z.ZodType<TemplHTMLTemplate>;
1970
+ export interface TemplHTMLTemplate {
1971
+ type: "HTMLTemplate";
1972
+ Range: TemplRange;
1973
+ Expression: TemplExpression;
1974
+ Children: TemplChild[];
1975
+ }
1976
+ export type TemplCSSTemplate = z.infer<typeof TemplCSSTemplateSchema>;
1977
+ export type TemplScriptTemplate = z.infer<typeof TemplScriptTemplateSchema>;
1978
+ export type TemplFileGoExpression = z.infer<typeof TemplFileGoExpressionSchema>;
1979
+ export type TemplFileNode = TemplHTMLTemplate | TemplCSSTemplate | TemplScriptTemplate | TemplFileGoExpression;
1980
+ export declare const TemplFileNodeSchema: z.ZodType<TemplFileNode>;
1981
+ export declare const TemplASTSchema: z.ZodArray<z.ZodType<TemplFileNode, unknown, z.core.$ZodTypeInternals<TemplFileNode, unknown>>>;
1982
+ export type TemplAST = TemplFileNode[];
1983
+ export {};
804
1984
  //# sourceMappingURL=templ-ast.d.ts.map