@oprt/manifest 0.0.0-stage → 0.1.0

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.
@@ -0,0 +1,1326 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const PropSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4
+ type: z.ZodLiteral<"enum">;
5
+ values: z.ZodArray<z.ZodString, "many">;
6
+ default: z.ZodOptional<z.ZodString>;
7
+ required: z.ZodOptional<z.ZodBoolean>;
8
+ description: z.ZodOptional<z.ZodString>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ type: "enum";
11
+ values: string[];
12
+ default?: string | undefined;
13
+ required?: boolean | undefined;
14
+ description?: string | undefined;
15
+ }, {
16
+ type: "enum";
17
+ values: string[];
18
+ default?: string | undefined;
19
+ required?: boolean | undefined;
20
+ description?: string | undefined;
21
+ }>, z.ZodObject<{
22
+ type: z.ZodLiteral<"boolean">;
23
+ default: z.ZodOptional<z.ZodBoolean>;
24
+ required: z.ZodOptional<z.ZodBoolean>;
25
+ description: z.ZodOptional<z.ZodString>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ type: "boolean";
28
+ default?: boolean | undefined;
29
+ required?: boolean | undefined;
30
+ description?: string | undefined;
31
+ }, {
32
+ type: "boolean";
33
+ default?: boolean | undefined;
34
+ required?: boolean | undefined;
35
+ description?: string | undefined;
36
+ }>, z.ZodObject<{
37
+ type: z.ZodLiteral<"string">;
38
+ default: z.ZodOptional<z.ZodString>;
39
+ required: z.ZodOptional<z.ZodBoolean>;
40
+ description: z.ZodOptional<z.ZodString>;
41
+ }, "strip", z.ZodTypeAny, {
42
+ type: "string";
43
+ default?: string | undefined;
44
+ required?: boolean | undefined;
45
+ description?: string | undefined;
46
+ }, {
47
+ type: "string";
48
+ default?: string | undefined;
49
+ required?: boolean | undefined;
50
+ description?: string | undefined;
51
+ }>, z.ZodObject<{
52
+ type: z.ZodLiteral<"number">;
53
+ default: z.ZodOptional<z.ZodNumber>;
54
+ required: z.ZodOptional<z.ZodBoolean>;
55
+ description: z.ZodOptional<z.ZodString>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ type: "number";
58
+ default?: number | undefined;
59
+ required?: boolean | undefined;
60
+ description?: string | undefined;
61
+ }, {
62
+ type: "number";
63
+ default?: number | undefined;
64
+ required?: boolean | undefined;
65
+ description?: string | undefined;
66
+ }>, z.ZodObject<{
67
+ type: z.ZodLiteral<"function">;
68
+ required: z.ZodOptional<z.ZodBoolean>;
69
+ description: z.ZodOptional<z.ZodString>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ type: "function";
72
+ required?: boolean | undefined;
73
+ description?: string | undefined;
74
+ }, {
75
+ type: "function";
76
+ required?: boolean | undefined;
77
+ description?: string | undefined;
78
+ }>, z.ZodObject<{
79
+ type: z.ZodLiteral<"array">;
80
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
81
+ required: z.ZodOptional<z.ZodBoolean>;
82
+ description: z.ZodOptional<z.ZodString>;
83
+ }, "strip", z.ZodTypeAny, {
84
+ type: "array";
85
+ required?: boolean | undefined;
86
+ description?: string | undefined;
87
+ items?: Record<string, unknown> | undefined;
88
+ }, {
89
+ type: "array";
90
+ required?: boolean | undefined;
91
+ description?: string | undefined;
92
+ items?: Record<string, unknown> | undefined;
93
+ }>, z.ZodObject<{
94
+ type: z.ZodLiteral<"node">;
95
+ required: z.ZodOptional<z.ZodBoolean>;
96
+ description: z.ZodOptional<z.ZodString>;
97
+ }, "strip", z.ZodTypeAny, {
98
+ type: "node";
99
+ required?: boolean | undefined;
100
+ description?: string | undefined;
101
+ }, {
102
+ type: "node";
103
+ required?: boolean | undefined;
104
+ description?: string | undefined;
105
+ }>, z.ZodObject<{
106
+ type: z.ZodLiteral<"union">;
107
+ types: z.ZodEffects<z.ZodArray<z.ZodEnum<["boolean", "string", "number", "function", "array", "node"]>, "many">, ("string" | "number" | "boolean" | "function" | "array" | "node")[], ("string" | "number" | "boolean" | "function" | "array" | "node")[]>;
108
+ required: z.ZodOptional<z.ZodBoolean>;
109
+ description: z.ZodOptional<z.ZodString>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ type: "union";
112
+ types: ("string" | "number" | "boolean" | "function" | "array" | "node")[];
113
+ required?: boolean | undefined;
114
+ description?: string | undefined;
115
+ }, {
116
+ type: "union";
117
+ types: ("string" | "number" | "boolean" | "function" | "array" | "node")[];
118
+ required?: boolean | undefined;
119
+ description?: string | undefined;
120
+ }>]>;
121
+ declare const SlotSchema: z.ZodObject<{
122
+ type: z.ZodString;
123
+ required: z.ZodOptional<z.ZodBoolean>;
124
+ }, "strip", z.ZodTypeAny, {
125
+ type: string;
126
+ required?: boolean | undefined;
127
+ }, {
128
+ type: string;
129
+ required?: boolean | undefined;
130
+ }>;
131
+ declare const ComponentSchema: z.ZodObject<{
132
+ description: z.ZodString;
133
+ props: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
134
+ type: z.ZodLiteral<"enum">;
135
+ values: z.ZodArray<z.ZodString, "many">;
136
+ default: z.ZodOptional<z.ZodString>;
137
+ required: z.ZodOptional<z.ZodBoolean>;
138
+ description: z.ZodOptional<z.ZodString>;
139
+ }, "strip", z.ZodTypeAny, {
140
+ type: "enum";
141
+ values: string[];
142
+ default?: string | undefined;
143
+ required?: boolean | undefined;
144
+ description?: string | undefined;
145
+ }, {
146
+ type: "enum";
147
+ values: string[];
148
+ default?: string | undefined;
149
+ required?: boolean | undefined;
150
+ description?: string | undefined;
151
+ }>, z.ZodObject<{
152
+ type: z.ZodLiteral<"boolean">;
153
+ default: z.ZodOptional<z.ZodBoolean>;
154
+ required: z.ZodOptional<z.ZodBoolean>;
155
+ description: z.ZodOptional<z.ZodString>;
156
+ }, "strip", z.ZodTypeAny, {
157
+ type: "boolean";
158
+ default?: boolean | undefined;
159
+ required?: boolean | undefined;
160
+ description?: string | undefined;
161
+ }, {
162
+ type: "boolean";
163
+ default?: boolean | undefined;
164
+ required?: boolean | undefined;
165
+ description?: string | undefined;
166
+ }>, z.ZodObject<{
167
+ type: z.ZodLiteral<"string">;
168
+ default: z.ZodOptional<z.ZodString>;
169
+ required: z.ZodOptional<z.ZodBoolean>;
170
+ description: z.ZodOptional<z.ZodString>;
171
+ }, "strip", z.ZodTypeAny, {
172
+ type: "string";
173
+ default?: string | undefined;
174
+ required?: boolean | undefined;
175
+ description?: string | undefined;
176
+ }, {
177
+ type: "string";
178
+ default?: string | undefined;
179
+ required?: boolean | undefined;
180
+ description?: string | undefined;
181
+ }>, z.ZodObject<{
182
+ type: z.ZodLiteral<"number">;
183
+ default: z.ZodOptional<z.ZodNumber>;
184
+ required: z.ZodOptional<z.ZodBoolean>;
185
+ description: z.ZodOptional<z.ZodString>;
186
+ }, "strip", z.ZodTypeAny, {
187
+ type: "number";
188
+ default?: number | undefined;
189
+ required?: boolean | undefined;
190
+ description?: string | undefined;
191
+ }, {
192
+ type: "number";
193
+ default?: number | undefined;
194
+ required?: boolean | undefined;
195
+ description?: string | undefined;
196
+ }>, z.ZodObject<{
197
+ type: z.ZodLiteral<"function">;
198
+ required: z.ZodOptional<z.ZodBoolean>;
199
+ description: z.ZodOptional<z.ZodString>;
200
+ }, "strip", z.ZodTypeAny, {
201
+ type: "function";
202
+ required?: boolean | undefined;
203
+ description?: string | undefined;
204
+ }, {
205
+ type: "function";
206
+ required?: boolean | undefined;
207
+ description?: string | undefined;
208
+ }>, z.ZodObject<{
209
+ type: z.ZodLiteral<"array">;
210
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
211
+ required: z.ZodOptional<z.ZodBoolean>;
212
+ description: z.ZodOptional<z.ZodString>;
213
+ }, "strip", z.ZodTypeAny, {
214
+ type: "array";
215
+ required?: boolean | undefined;
216
+ description?: string | undefined;
217
+ items?: Record<string, unknown> | undefined;
218
+ }, {
219
+ type: "array";
220
+ required?: boolean | undefined;
221
+ description?: string | undefined;
222
+ items?: Record<string, unknown> | undefined;
223
+ }>, z.ZodObject<{
224
+ type: z.ZodLiteral<"node">;
225
+ required: z.ZodOptional<z.ZodBoolean>;
226
+ description: z.ZodOptional<z.ZodString>;
227
+ }, "strip", z.ZodTypeAny, {
228
+ type: "node";
229
+ required?: boolean | undefined;
230
+ description?: string | undefined;
231
+ }, {
232
+ type: "node";
233
+ required?: boolean | undefined;
234
+ description?: string | undefined;
235
+ }>, z.ZodObject<{
236
+ type: z.ZodLiteral<"union">;
237
+ types: z.ZodEffects<z.ZodArray<z.ZodEnum<["boolean", "string", "number", "function", "array", "node"]>, "many">, ("string" | "number" | "boolean" | "function" | "array" | "node")[], ("string" | "number" | "boolean" | "function" | "array" | "node")[]>;
238
+ required: z.ZodOptional<z.ZodBoolean>;
239
+ description: z.ZodOptional<z.ZodString>;
240
+ }, "strip", z.ZodTypeAny, {
241
+ type: "union";
242
+ types: ("string" | "number" | "boolean" | "function" | "array" | "node")[];
243
+ required?: boolean | undefined;
244
+ description?: string | undefined;
245
+ }, {
246
+ type: "union";
247
+ types: ("string" | "number" | "boolean" | "function" | "array" | "node")[];
248
+ required?: boolean | undefined;
249
+ description?: string | undefined;
250
+ }>]>>;
251
+ slots: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
252
+ type: z.ZodString;
253
+ required: z.ZodOptional<z.ZodBoolean>;
254
+ }, "strip", z.ZodTypeAny, {
255
+ type: string;
256
+ required?: boolean | undefined;
257
+ }, {
258
+ type: string;
259
+ required?: boolean | undefined;
260
+ }>>>;
261
+ composable_with: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
262
+ never_inside: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
263
+ example: z.ZodString;
264
+ }, "strip", z.ZodTypeAny, {
265
+ description: string;
266
+ props: Record<string, {
267
+ type: "enum";
268
+ values: string[];
269
+ default?: string | undefined;
270
+ required?: boolean | undefined;
271
+ description?: string | undefined;
272
+ } | {
273
+ type: "boolean";
274
+ default?: boolean | undefined;
275
+ required?: boolean | undefined;
276
+ description?: string | undefined;
277
+ } | {
278
+ type: "string";
279
+ default?: string | undefined;
280
+ required?: boolean | undefined;
281
+ description?: string | undefined;
282
+ } | {
283
+ type: "number";
284
+ default?: number | undefined;
285
+ required?: boolean | undefined;
286
+ description?: string | undefined;
287
+ } | {
288
+ type: "function";
289
+ required?: boolean | undefined;
290
+ description?: string | undefined;
291
+ } | {
292
+ type: "array";
293
+ required?: boolean | undefined;
294
+ description?: string | undefined;
295
+ items?: Record<string, unknown> | undefined;
296
+ } | {
297
+ type: "node";
298
+ required?: boolean | undefined;
299
+ description?: string | undefined;
300
+ } | {
301
+ type: "union";
302
+ types: ("string" | "number" | "boolean" | "function" | "array" | "node")[];
303
+ required?: boolean | undefined;
304
+ description?: string | undefined;
305
+ }>;
306
+ example: string;
307
+ slots?: Record<string, {
308
+ type: string;
309
+ required?: boolean | undefined;
310
+ }> | undefined;
311
+ composable_with?: string[] | undefined;
312
+ never_inside?: string[] | undefined;
313
+ }, {
314
+ description: string;
315
+ props: Record<string, {
316
+ type: "enum";
317
+ values: string[];
318
+ default?: string | undefined;
319
+ required?: boolean | undefined;
320
+ description?: string | undefined;
321
+ } | {
322
+ type: "boolean";
323
+ default?: boolean | undefined;
324
+ required?: boolean | undefined;
325
+ description?: string | undefined;
326
+ } | {
327
+ type: "string";
328
+ default?: string | undefined;
329
+ required?: boolean | undefined;
330
+ description?: string | undefined;
331
+ } | {
332
+ type: "number";
333
+ default?: number | undefined;
334
+ required?: boolean | undefined;
335
+ description?: string | undefined;
336
+ } | {
337
+ type: "function";
338
+ required?: boolean | undefined;
339
+ description?: string | undefined;
340
+ } | {
341
+ type: "array";
342
+ required?: boolean | undefined;
343
+ description?: string | undefined;
344
+ items?: Record<string, unknown> | undefined;
345
+ } | {
346
+ type: "node";
347
+ required?: boolean | undefined;
348
+ description?: string | undefined;
349
+ } | {
350
+ type: "union";
351
+ types: ("string" | "number" | "boolean" | "function" | "array" | "node")[];
352
+ required?: boolean | undefined;
353
+ description?: string | undefined;
354
+ }>;
355
+ example: string;
356
+ slots?: Record<string, {
357
+ type: string;
358
+ required?: boolean | undefined;
359
+ }> | undefined;
360
+ composable_with?: string[] | undefined;
361
+ never_inside?: string[] | undefined;
362
+ }>;
363
+ declare const PatternSchema: z.ZodObject<{
364
+ description: z.ZodString;
365
+ composed_of: z.ZodArray<z.ZodString, "many">;
366
+ layout: z.ZodString;
367
+ files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
368
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
369
+ }, "strip", z.ZodTypeAny, {
370
+ description: string;
371
+ composed_of: string[];
372
+ layout: string;
373
+ files?: Record<string, string> | undefined;
374
+ dependencies?: string[] | undefined;
375
+ }, {
376
+ description: string;
377
+ composed_of: string[];
378
+ layout: string;
379
+ files?: Record<string, string> | undefined;
380
+ dependencies?: string[] | undefined;
381
+ }>;
382
+ /**
383
+ * A recipe as `components.json` describes it: the same description, layout and dependencies, and
384
+ * each file's size in bytes instead of its source. `install` is the CLI command that copies it.
385
+ */
386
+ declare const PatternSummarySchema: z.ZodObject<{
387
+ description: z.ZodString;
388
+ composed_of: z.ZodArray<z.ZodString, "many">;
389
+ layout: z.ZodString;
390
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
391
+ files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
392
+ install: z.ZodString;
393
+ }, "strip", z.ZodTypeAny, {
394
+ description: string;
395
+ composed_of: string[];
396
+ layout: string;
397
+ install: string;
398
+ files?: Record<string, number> | undefined;
399
+ dependencies?: string[] | undefined;
400
+ }, {
401
+ description: string;
402
+ composed_of: string[];
403
+ layout: string;
404
+ install: string;
405
+ files?: Record<string, number> | undefined;
406
+ dependencies?: string[] | undefined;
407
+ }>;
408
+ interface CompositionRuleNode {
409
+ allowed_children: string[];
410
+ children?: Record<string, CompositionRuleNode> | undefined;
411
+ }
412
+ declare const CompositionRuleSchema: z.ZodType<CompositionRuleNode>;
413
+ declare const ManifestSchema: z.ZodObject<{
414
+ version: z.ZodString;
415
+ components: z.ZodRecord<z.ZodString, z.ZodObject<{
416
+ description: z.ZodString;
417
+ props: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
418
+ type: z.ZodLiteral<"enum">;
419
+ values: z.ZodArray<z.ZodString, "many">;
420
+ default: z.ZodOptional<z.ZodString>;
421
+ required: z.ZodOptional<z.ZodBoolean>;
422
+ description: z.ZodOptional<z.ZodString>;
423
+ }, "strip", z.ZodTypeAny, {
424
+ type: "enum";
425
+ values: string[];
426
+ default?: string | undefined;
427
+ required?: boolean | undefined;
428
+ description?: string | undefined;
429
+ }, {
430
+ type: "enum";
431
+ values: string[];
432
+ default?: string | undefined;
433
+ required?: boolean | undefined;
434
+ description?: string | undefined;
435
+ }>, z.ZodObject<{
436
+ type: z.ZodLiteral<"boolean">;
437
+ default: z.ZodOptional<z.ZodBoolean>;
438
+ required: z.ZodOptional<z.ZodBoolean>;
439
+ description: z.ZodOptional<z.ZodString>;
440
+ }, "strip", z.ZodTypeAny, {
441
+ type: "boolean";
442
+ default?: boolean | undefined;
443
+ required?: boolean | undefined;
444
+ description?: string | undefined;
445
+ }, {
446
+ type: "boolean";
447
+ default?: boolean | undefined;
448
+ required?: boolean | undefined;
449
+ description?: string | undefined;
450
+ }>, z.ZodObject<{
451
+ type: z.ZodLiteral<"string">;
452
+ default: z.ZodOptional<z.ZodString>;
453
+ required: z.ZodOptional<z.ZodBoolean>;
454
+ description: z.ZodOptional<z.ZodString>;
455
+ }, "strip", z.ZodTypeAny, {
456
+ type: "string";
457
+ default?: string | undefined;
458
+ required?: boolean | undefined;
459
+ description?: string | undefined;
460
+ }, {
461
+ type: "string";
462
+ default?: string | undefined;
463
+ required?: boolean | undefined;
464
+ description?: string | undefined;
465
+ }>, z.ZodObject<{
466
+ type: z.ZodLiteral<"number">;
467
+ default: z.ZodOptional<z.ZodNumber>;
468
+ required: z.ZodOptional<z.ZodBoolean>;
469
+ description: z.ZodOptional<z.ZodString>;
470
+ }, "strip", z.ZodTypeAny, {
471
+ type: "number";
472
+ default?: number | undefined;
473
+ required?: boolean | undefined;
474
+ description?: string | undefined;
475
+ }, {
476
+ type: "number";
477
+ default?: number | undefined;
478
+ required?: boolean | undefined;
479
+ description?: string | undefined;
480
+ }>, z.ZodObject<{
481
+ type: z.ZodLiteral<"function">;
482
+ required: z.ZodOptional<z.ZodBoolean>;
483
+ description: z.ZodOptional<z.ZodString>;
484
+ }, "strip", z.ZodTypeAny, {
485
+ type: "function";
486
+ required?: boolean | undefined;
487
+ description?: string | undefined;
488
+ }, {
489
+ type: "function";
490
+ required?: boolean | undefined;
491
+ description?: string | undefined;
492
+ }>, z.ZodObject<{
493
+ type: z.ZodLiteral<"array">;
494
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
495
+ required: z.ZodOptional<z.ZodBoolean>;
496
+ description: z.ZodOptional<z.ZodString>;
497
+ }, "strip", z.ZodTypeAny, {
498
+ type: "array";
499
+ required?: boolean | undefined;
500
+ description?: string | undefined;
501
+ items?: Record<string, unknown> | undefined;
502
+ }, {
503
+ type: "array";
504
+ required?: boolean | undefined;
505
+ description?: string | undefined;
506
+ items?: Record<string, unknown> | undefined;
507
+ }>, z.ZodObject<{
508
+ type: z.ZodLiteral<"node">;
509
+ required: z.ZodOptional<z.ZodBoolean>;
510
+ description: z.ZodOptional<z.ZodString>;
511
+ }, "strip", z.ZodTypeAny, {
512
+ type: "node";
513
+ required?: boolean | undefined;
514
+ description?: string | undefined;
515
+ }, {
516
+ type: "node";
517
+ required?: boolean | undefined;
518
+ description?: string | undefined;
519
+ }>, z.ZodObject<{
520
+ type: z.ZodLiteral<"union">;
521
+ types: z.ZodEffects<z.ZodArray<z.ZodEnum<["boolean", "string", "number", "function", "array", "node"]>, "many">, ("string" | "number" | "boolean" | "function" | "array" | "node")[], ("string" | "number" | "boolean" | "function" | "array" | "node")[]>;
522
+ required: z.ZodOptional<z.ZodBoolean>;
523
+ description: z.ZodOptional<z.ZodString>;
524
+ }, "strip", z.ZodTypeAny, {
525
+ type: "union";
526
+ types: ("string" | "number" | "boolean" | "function" | "array" | "node")[];
527
+ required?: boolean | undefined;
528
+ description?: string | undefined;
529
+ }, {
530
+ type: "union";
531
+ types: ("string" | "number" | "boolean" | "function" | "array" | "node")[];
532
+ required?: boolean | undefined;
533
+ description?: string | undefined;
534
+ }>]>>;
535
+ slots: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
536
+ type: z.ZodString;
537
+ required: z.ZodOptional<z.ZodBoolean>;
538
+ }, "strip", z.ZodTypeAny, {
539
+ type: string;
540
+ required?: boolean | undefined;
541
+ }, {
542
+ type: string;
543
+ required?: boolean | undefined;
544
+ }>>>;
545
+ composable_with: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
546
+ never_inside: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
547
+ example: z.ZodString;
548
+ }, "strip", z.ZodTypeAny, {
549
+ description: string;
550
+ props: Record<string, {
551
+ type: "enum";
552
+ values: string[];
553
+ default?: string | undefined;
554
+ required?: boolean | undefined;
555
+ description?: string | undefined;
556
+ } | {
557
+ type: "boolean";
558
+ default?: boolean | undefined;
559
+ required?: boolean | undefined;
560
+ description?: string | undefined;
561
+ } | {
562
+ type: "string";
563
+ default?: string | undefined;
564
+ required?: boolean | undefined;
565
+ description?: string | undefined;
566
+ } | {
567
+ type: "number";
568
+ default?: number | undefined;
569
+ required?: boolean | undefined;
570
+ description?: string | undefined;
571
+ } | {
572
+ type: "function";
573
+ required?: boolean | undefined;
574
+ description?: string | undefined;
575
+ } | {
576
+ type: "array";
577
+ required?: boolean | undefined;
578
+ description?: string | undefined;
579
+ items?: Record<string, unknown> | undefined;
580
+ } | {
581
+ type: "node";
582
+ required?: boolean | undefined;
583
+ description?: string | undefined;
584
+ } | {
585
+ type: "union";
586
+ types: ("string" | "number" | "boolean" | "function" | "array" | "node")[];
587
+ required?: boolean | undefined;
588
+ description?: string | undefined;
589
+ }>;
590
+ example: string;
591
+ slots?: Record<string, {
592
+ type: string;
593
+ required?: boolean | undefined;
594
+ }> | undefined;
595
+ composable_with?: string[] | undefined;
596
+ never_inside?: string[] | undefined;
597
+ }, {
598
+ description: string;
599
+ props: Record<string, {
600
+ type: "enum";
601
+ values: string[];
602
+ default?: string | undefined;
603
+ required?: boolean | undefined;
604
+ description?: string | undefined;
605
+ } | {
606
+ type: "boolean";
607
+ default?: boolean | undefined;
608
+ required?: boolean | undefined;
609
+ description?: string | undefined;
610
+ } | {
611
+ type: "string";
612
+ default?: string | undefined;
613
+ required?: boolean | undefined;
614
+ description?: string | undefined;
615
+ } | {
616
+ type: "number";
617
+ default?: number | undefined;
618
+ required?: boolean | undefined;
619
+ description?: string | undefined;
620
+ } | {
621
+ type: "function";
622
+ required?: boolean | undefined;
623
+ description?: string | undefined;
624
+ } | {
625
+ type: "array";
626
+ required?: boolean | undefined;
627
+ description?: string | undefined;
628
+ items?: Record<string, unknown> | undefined;
629
+ } | {
630
+ type: "node";
631
+ required?: boolean | undefined;
632
+ description?: string | undefined;
633
+ } | {
634
+ type: "union";
635
+ types: ("string" | "number" | "boolean" | "function" | "array" | "node")[];
636
+ required?: boolean | undefined;
637
+ description?: string | undefined;
638
+ }>;
639
+ example: string;
640
+ slots?: Record<string, {
641
+ type: string;
642
+ required?: boolean | undefined;
643
+ }> | undefined;
644
+ composable_with?: string[] | undefined;
645
+ never_inside?: string[] | undefined;
646
+ }>>;
647
+ composition_rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<CompositionRuleNode, z.ZodTypeDef, CompositionRuleNode>>>;
648
+ patterns: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
649
+ description: z.ZodString;
650
+ composed_of: z.ZodArray<z.ZodString, "many">;
651
+ layout: z.ZodString;
652
+ files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
653
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
654
+ }, "strip", z.ZodTypeAny, {
655
+ description: string;
656
+ composed_of: string[];
657
+ layout: string;
658
+ files?: Record<string, string> | undefined;
659
+ dependencies?: string[] | undefined;
660
+ }, {
661
+ description: string;
662
+ composed_of: string[];
663
+ layout: string;
664
+ files?: Record<string, string> | undefined;
665
+ dependencies?: string[] | undefined;
666
+ }>>>;
667
+ }, "strip", z.ZodTypeAny, {
668
+ version: string;
669
+ components: Record<string, {
670
+ description: string;
671
+ props: Record<string, {
672
+ type: "enum";
673
+ values: string[];
674
+ default?: string | undefined;
675
+ required?: boolean | undefined;
676
+ description?: string | undefined;
677
+ } | {
678
+ type: "boolean";
679
+ default?: boolean | undefined;
680
+ required?: boolean | undefined;
681
+ description?: string | undefined;
682
+ } | {
683
+ type: "string";
684
+ default?: string | undefined;
685
+ required?: boolean | undefined;
686
+ description?: string | undefined;
687
+ } | {
688
+ type: "number";
689
+ default?: number | undefined;
690
+ required?: boolean | undefined;
691
+ description?: string | undefined;
692
+ } | {
693
+ type: "function";
694
+ required?: boolean | undefined;
695
+ description?: string | undefined;
696
+ } | {
697
+ type: "array";
698
+ required?: boolean | undefined;
699
+ description?: string | undefined;
700
+ items?: Record<string, unknown> | undefined;
701
+ } | {
702
+ type: "node";
703
+ required?: boolean | undefined;
704
+ description?: string | undefined;
705
+ } | {
706
+ type: "union";
707
+ types: ("string" | "number" | "boolean" | "function" | "array" | "node")[];
708
+ required?: boolean | undefined;
709
+ description?: string | undefined;
710
+ }>;
711
+ example: string;
712
+ slots?: Record<string, {
713
+ type: string;
714
+ required?: boolean | undefined;
715
+ }> | undefined;
716
+ composable_with?: string[] | undefined;
717
+ never_inside?: string[] | undefined;
718
+ }>;
719
+ composition_rules?: Record<string, CompositionRuleNode> | undefined;
720
+ patterns?: Record<string, {
721
+ description: string;
722
+ composed_of: string[];
723
+ layout: string;
724
+ files?: Record<string, string> | undefined;
725
+ dependencies?: string[] | undefined;
726
+ }> | undefined;
727
+ }, {
728
+ version: string;
729
+ components: Record<string, {
730
+ description: string;
731
+ props: Record<string, {
732
+ type: "enum";
733
+ values: string[];
734
+ default?: string | undefined;
735
+ required?: boolean | undefined;
736
+ description?: string | undefined;
737
+ } | {
738
+ type: "boolean";
739
+ default?: boolean | undefined;
740
+ required?: boolean | undefined;
741
+ description?: string | undefined;
742
+ } | {
743
+ type: "string";
744
+ default?: string | undefined;
745
+ required?: boolean | undefined;
746
+ description?: string | undefined;
747
+ } | {
748
+ type: "number";
749
+ default?: number | undefined;
750
+ required?: boolean | undefined;
751
+ description?: string | undefined;
752
+ } | {
753
+ type: "function";
754
+ required?: boolean | undefined;
755
+ description?: string | undefined;
756
+ } | {
757
+ type: "array";
758
+ required?: boolean | undefined;
759
+ description?: string | undefined;
760
+ items?: Record<string, unknown> | undefined;
761
+ } | {
762
+ type: "node";
763
+ required?: boolean | undefined;
764
+ description?: string | undefined;
765
+ } | {
766
+ type: "union";
767
+ types: ("string" | "number" | "boolean" | "function" | "array" | "node")[];
768
+ required?: boolean | undefined;
769
+ description?: string | undefined;
770
+ }>;
771
+ example: string;
772
+ slots?: Record<string, {
773
+ type: string;
774
+ required?: boolean | undefined;
775
+ }> | undefined;
776
+ composable_with?: string[] | undefined;
777
+ never_inside?: string[] | undefined;
778
+ }>;
779
+ composition_rules?: Record<string, CompositionRuleNode> | undefined;
780
+ patterns?: Record<string, {
781
+ description: string;
782
+ composed_of: string[];
783
+ layout: string;
784
+ files?: Record<string, string> | undefined;
785
+ dependencies?: string[] | undefined;
786
+ }> | undefined;
787
+ }>;
788
+ /**
789
+ * `components.json`: the component contracts and composition rules in full, and recipe
790
+ * summaries without sources. Complete recipe sources stay in `manifest.json`.
791
+ */
792
+ declare const ComponentsManifestSchema: z.ZodObject<{
793
+ version: z.ZodString;
794
+ components: z.ZodRecord<z.ZodString, z.ZodObject<{
795
+ description: z.ZodString;
796
+ props: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
797
+ type: z.ZodLiteral<"enum">;
798
+ values: z.ZodArray<z.ZodString, "many">;
799
+ default: z.ZodOptional<z.ZodString>;
800
+ required: z.ZodOptional<z.ZodBoolean>;
801
+ description: z.ZodOptional<z.ZodString>;
802
+ }, "strip", z.ZodTypeAny, {
803
+ type: "enum";
804
+ values: string[];
805
+ default?: string | undefined;
806
+ required?: boolean | undefined;
807
+ description?: string | undefined;
808
+ }, {
809
+ type: "enum";
810
+ values: string[];
811
+ default?: string | undefined;
812
+ required?: boolean | undefined;
813
+ description?: string | undefined;
814
+ }>, z.ZodObject<{
815
+ type: z.ZodLiteral<"boolean">;
816
+ default: z.ZodOptional<z.ZodBoolean>;
817
+ required: z.ZodOptional<z.ZodBoolean>;
818
+ description: z.ZodOptional<z.ZodString>;
819
+ }, "strip", z.ZodTypeAny, {
820
+ type: "boolean";
821
+ default?: boolean | undefined;
822
+ required?: boolean | undefined;
823
+ description?: string | undefined;
824
+ }, {
825
+ type: "boolean";
826
+ default?: boolean | undefined;
827
+ required?: boolean | undefined;
828
+ description?: string | undefined;
829
+ }>, z.ZodObject<{
830
+ type: z.ZodLiteral<"string">;
831
+ default: z.ZodOptional<z.ZodString>;
832
+ required: z.ZodOptional<z.ZodBoolean>;
833
+ description: z.ZodOptional<z.ZodString>;
834
+ }, "strip", z.ZodTypeAny, {
835
+ type: "string";
836
+ default?: string | undefined;
837
+ required?: boolean | undefined;
838
+ description?: string | undefined;
839
+ }, {
840
+ type: "string";
841
+ default?: string | undefined;
842
+ required?: boolean | undefined;
843
+ description?: string | undefined;
844
+ }>, z.ZodObject<{
845
+ type: z.ZodLiteral<"number">;
846
+ default: z.ZodOptional<z.ZodNumber>;
847
+ required: z.ZodOptional<z.ZodBoolean>;
848
+ description: z.ZodOptional<z.ZodString>;
849
+ }, "strip", z.ZodTypeAny, {
850
+ type: "number";
851
+ default?: number | undefined;
852
+ required?: boolean | undefined;
853
+ description?: string | undefined;
854
+ }, {
855
+ type: "number";
856
+ default?: number | undefined;
857
+ required?: boolean | undefined;
858
+ description?: string | undefined;
859
+ }>, z.ZodObject<{
860
+ type: z.ZodLiteral<"function">;
861
+ required: z.ZodOptional<z.ZodBoolean>;
862
+ description: z.ZodOptional<z.ZodString>;
863
+ }, "strip", z.ZodTypeAny, {
864
+ type: "function";
865
+ required?: boolean | undefined;
866
+ description?: string | undefined;
867
+ }, {
868
+ type: "function";
869
+ required?: boolean | undefined;
870
+ description?: string | undefined;
871
+ }>, z.ZodObject<{
872
+ type: z.ZodLiteral<"array">;
873
+ items: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
874
+ required: z.ZodOptional<z.ZodBoolean>;
875
+ description: z.ZodOptional<z.ZodString>;
876
+ }, "strip", z.ZodTypeAny, {
877
+ type: "array";
878
+ required?: boolean | undefined;
879
+ description?: string | undefined;
880
+ items?: Record<string, unknown> | undefined;
881
+ }, {
882
+ type: "array";
883
+ required?: boolean | undefined;
884
+ description?: string | undefined;
885
+ items?: Record<string, unknown> | undefined;
886
+ }>, z.ZodObject<{
887
+ type: z.ZodLiteral<"node">;
888
+ required: z.ZodOptional<z.ZodBoolean>;
889
+ description: z.ZodOptional<z.ZodString>;
890
+ }, "strip", z.ZodTypeAny, {
891
+ type: "node";
892
+ required?: boolean | undefined;
893
+ description?: string | undefined;
894
+ }, {
895
+ type: "node";
896
+ required?: boolean | undefined;
897
+ description?: string | undefined;
898
+ }>, z.ZodObject<{
899
+ type: z.ZodLiteral<"union">;
900
+ types: z.ZodEffects<z.ZodArray<z.ZodEnum<["boolean", "string", "number", "function", "array", "node"]>, "many">, ("string" | "number" | "boolean" | "function" | "array" | "node")[], ("string" | "number" | "boolean" | "function" | "array" | "node")[]>;
901
+ required: z.ZodOptional<z.ZodBoolean>;
902
+ description: z.ZodOptional<z.ZodString>;
903
+ }, "strip", z.ZodTypeAny, {
904
+ type: "union";
905
+ types: ("string" | "number" | "boolean" | "function" | "array" | "node")[];
906
+ required?: boolean | undefined;
907
+ description?: string | undefined;
908
+ }, {
909
+ type: "union";
910
+ types: ("string" | "number" | "boolean" | "function" | "array" | "node")[];
911
+ required?: boolean | undefined;
912
+ description?: string | undefined;
913
+ }>]>>;
914
+ slots: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
915
+ type: z.ZodString;
916
+ required: z.ZodOptional<z.ZodBoolean>;
917
+ }, "strip", z.ZodTypeAny, {
918
+ type: string;
919
+ required?: boolean | undefined;
920
+ }, {
921
+ type: string;
922
+ required?: boolean | undefined;
923
+ }>>>;
924
+ composable_with: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
925
+ never_inside: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
926
+ example: z.ZodString;
927
+ }, "strip", z.ZodTypeAny, {
928
+ description: string;
929
+ props: Record<string, {
930
+ type: "enum";
931
+ values: string[];
932
+ default?: string | undefined;
933
+ required?: boolean | undefined;
934
+ description?: string | undefined;
935
+ } | {
936
+ type: "boolean";
937
+ default?: boolean | undefined;
938
+ required?: boolean | undefined;
939
+ description?: string | undefined;
940
+ } | {
941
+ type: "string";
942
+ default?: string | undefined;
943
+ required?: boolean | undefined;
944
+ description?: string | undefined;
945
+ } | {
946
+ type: "number";
947
+ default?: number | undefined;
948
+ required?: boolean | undefined;
949
+ description?: string | undefined;
950
+ } | {
951
+ type: "function";
952
+ required?: boolean | undefined;
953
+ description?: string | undefined;
954
+ } | {
955
+ type: "array";
956
+ required?: boolean | undefined;
957
+ description?: string | undefined;
958
+ items?: Record<string, unknown> | undefined;
959
+ } | {
960
+ type: "node";
961
+ required?: boolean | undefined;
962
+ description?: string | undefined;
963
+ } | {
964
+ type: "union";
965
+ types: ("string" | "number" | "boolean" | "function" | "array" | "node")[];
966
+ required?: boolean | undefined;
967
+ description?: string | undefined;
968
+ }>;
969
+ example: string;
970
+ slots?: Record<string, {
971
+ type: string;
972
+ required?: boolean | undefined;
973
+ }> | undefined;
974
+ composable_with?: string[] | undefined;
975
+ never_inside?: string[] | undefined;
976
+ }, {
977
+ description: string;
978
+ props: Record<string, {
979
+ type: "enum";
980
+ values: string[];
981
+ default?: string | undefined;
982
+ required?: boolean | undefined;
983
+ description?: string | undefined;
984
+ } | {
985
+ type: "boolean";
986
+ default?: boolean | undefined;
987
+ required?: boolean | undefined;
988
+ description?: string | undefined;
989
+ } | {
990
+ type: "string";
991
+ default?: string | undefined;
992
+ required?: boolean | undefined;
993
+ description?: string | undefined;
994
+ } | {
995
+ type: "number";
996
+ default?: number | undefined;
997
+ required?: boolean | undefined;
998
+ description?: string | undefined;
999
+ } | {
1000
+ type: "function";
1001
+ required?: boolean | undefined;
1002
+ description?: string | undefined;
1003
+ } | {
1004
+ type: "array";
1005
+ required?: boolean | undefined;
1006
+ description?: string | undefined;
1007
+ items?: Record<string, unknown> | undefined;
1008
+ } | {
1009
+ type: "node";
1010
+ required?: boolean | undefined;
1011
+ description?: string | undefined;
1012
+ } | {
1013
+ type: "union";
1014
+ types: ("string" | "number" | "boolean" | "function" | "array" | "node")[];
1015
+ required?: boolean | undefined;
1016
+ description?: string | undefined;
1017
+ }>;
1018
+ example: string;
1019
+ slots?: Record<string, {
1020
+ type: string;
1021
+ required?: boolean | undefined;
1022
+ }> | undefined;
1023
+ composable_with?: string[] | undefined;
1024
+ never_inside?: string[] | undefined;
1025
+ }>>;
1026
+ composition_rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<CompositionRuleNode, z.ZodTypeDef, CompositionRuleNode>>>;
1027
+ patterns: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1028
+ description: z.ZodString;
1029
+ composed_of: z.ZodArray<z.ZodString, "many">;
1030
+ layout: z.ZodString;
1031
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1032
+ files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1033
+ install: z.ZodString;
1034
+ }, "strip", z.ZodTypeAny, {
1035
+ description: string;
1036
+ composed_of: string[];
1037
+ layout: string;
1038
+ install: string;
1039
+ files?: Record<string, number> | undefined;
1040
+ dependencies?: string[] | undefined;
1041
+ }, {
1042
+ description: string;
1043
+ composed_of: string[];
1044
+ layout: string;
1045
+ install: string;
1046
+ files?: Record<string, number> | undefined;
1047
+ dependencies?: string[] | undefined;
1048
+ }>>>;
1049
+ }, "strip", z.ZodTypeAny, {
1050
+ version: string;
1051
+ components: Record<string, {
1052
+ description: string;
1053
+ props: Record<string, {
1054
+ type: "enum";
1055
+ values: string[];
1056
+ default?: string | undefined;
1057
+ required?: boolean | undefined;
1058
+ description?: string | undefined;
1059
+ } | {
1060
+ type: "boolean";
1061
+ default?: boolean | undefined;
1062
+ required?: boolean | undefined;
1063
+ description?: string | undefined;
1064
+ } | {
1065
+ type: "string";
1066
+ default?: string | undefined;
1067
+ required?: boolean | undefined;
1068
+ description?: string | undefined;
1069
+ } | {
1070
+ type: "number";
1071
+ default?: number | undefined;
1072
+ required?: boolean | undefined;
1073
+ description?: string | undefined;
1074
+ } | {
1075
+ type: "function";
1076
+ required?: boolean | undefined;
1077
+ description?: string | undefined;
1078
+ } | {
1079
+ type: "array";
1080
+ required?: boolean | undefined;
1081
+ description?: string | undefined;
1082
+ items?: Record<string, unknown> | undefined;
1083
+ } | {
1084
+ type: "node";
1085
+ required?: boolean | undefined;
1086
+ description?: string | undefined;
1087
+ } | {
1088
+ type: "union";
1089
+ types: ("string" | "number" | "boolean" | "function" | "array" | "node")[];
1090
+ required?: boolean | undefined;
1091
+ description?: string | undefined;
1092
+ }>;
1093
+ example: string;
1094
+ slots?: Record<string, {
1095
+ type: string;
1096
+ required?: boolean | undefined;
1097
+ }> | undefined;
1098
+ composable_with?: string[] | undefined;
1099
+ never_inside?: string[] | undefined;
1100
+ }>;
1101
+ composition_rules?: Record<string, CompositionRuleNode> | undefined;
1102
+ patterns?: Record<string, {
1103
+ description: string;
1104
+ composed_of: string[];
1105
+ layout: string;
1106
+ install: string;
1107
+ files?: Record<string, number> | undefined;
1108
+ dependencies?: string[] | undefined;
1109
+ }> | undefined;
1110
+ }, {
1111
+ version: string;
1112
+ components: Record<string, {
1113
+ description: string;
1114
+ props: Record<string, {
1115
+ type: "enum";
1116
+ values: string[];
1117
+ default?: string | undefined;
1118
+ required?: boolean | undefined;
1119
+ description?: string | undefined;
1120
+ } | {
1121
+ type: "boolean";
1122
+ default?: boolean | undefined;
1123
+ required?: boolean | undefined;
1124
+ description?: string | undefined;
1125
+ } | {
1126
+ type: "string";
1127
+ default?: string | undefined;
1128
+ required?: boolean | undefined;
1129
+ description?: string | undefined;
1130
+ } | {
1131
+ type: "number";
1132
+ default?: number | undefined;
1133
+ required?: boolean | undefined;
1134
+ description?: string | undefined;
1135
+ } | {
1136
+ type: "function";
1137
+ required?: boolean | undefined;
1138
+ description?: string | undefined;
1139
+ } | {
1140
+ type: "array";
1141
+ required?: boolean | undefined;
1142
+ description?: string | undefined;
1143
+ items?: Record<string, unknown> | undefined;
1144
+ } | {
1145
+ type: "node";
1146
+ required?: boolean | undefined;
1147
+ description?: string | undefined;
1148
+ } | {
1149
+ type: "union";
1150
+ types: ("string" | "number" | "boolean" | "function" | "array" | "node")[];
1151
+ required?: boolean | undefined;
1152
+ description?: string | undefined;
1153
+ }>;
1154
+ example: string;
1155
+ slots?: Record<string, {
1156
+ type: string;
1157
+ required?: boolean | undefined;
1158
+ }> | undefined;
1159
+ composable_with?: string[] | undefined;
1160
+ never_inside?: string[] | undefined;
1161
+ }>;
1162
+ composition_rules?: Record<string, CompositionRuleNode> | undefined;
1163
+ patterns?: Record<string, {
1164
+ description: string;
1165
+ composed_of: string[];
1166
+ layout: string;
1167
+ install: string;
1168
+ files?: Record<string, number> | undefined;
1169
+ dependencies?: string[] | undefined;
1170
+ }> | undefined;
1171
+ }>;
1172
+ /** A house rule: the thing to do and, where it helps, the usual mistake beside the right way. */
1173
+ declare const GuidanceRuleSchema: z.ZodObject<{
1174
+ id: z.ZodString;
1175
+ rule: z.ZodString;
1176
+ wrong: z.ZodOptional<z.ZodString>;
1177
+ right: z.ZodOptional<z.ZodString>;
1178
+ }, "strip", z.ZodTypeAny, {
1179
+ id: string;
1180
+ rule: string;
1181
+ wrong?: string | undefined;
1182
+ right?: string | undefined;
1183
+ }, {
1184
+ id: string;
1185
+ rule: string;
1186
+ wrong?: string | undefined;
1187
+ right?: string | undefined;
1188
+ }>;
1189
+ /** When to reach for a component, what to use instead, and what each option value is for. */
1190
+ declare const ComponentGuidanceSchema: z.ZodObject<{
1191
+ /** Short phrases for the need it answers, the way a person would ask for it. */
1192
+ use_for: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1193
+ /** For a part that only lives inside another component: that component. */
1194
+ part_of: z.ZodOptional<z.ZodString>;
1195
+ /** Needs that look like this component's and belong to another. */
1196
+ not_for: z.ZodOptional<z.ZodArray<z.ZodObject<{
1197
+ need: z.ZodString;
1198
+ use: z.ZodString;
1199
+ }, "strip", z.ZodTypeAny, {
1200
+ need: string;
1201
+ use: string;
1202
+ }, {
1203
+ need: string;
1204
+ use: string;
1205
+ }>, "many">>;
1206
+ /** Per option prop: a note for each of its values. */
1207
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
1208
+ }, "strip", z.ZodTypeAny, {
1209
+ values?: Record<string, Record<string, string>> | undefined;
1210
+ use_for?: string[] | undefined;
1211
+ part_of?: string | undefined;
1212
+ not_for?: {
1213
+ need: string;
1214
+ use: string;
1215
+ }[] | undefined;
1216
+ }, {
1217
+ values?: Record<string, Record<string, string>> | undefined;
1218
+ use_for?: string[] | undefined;
1219
+ part_of?: string | undefined;
1220
+ not_for?: {
1221
+ need: string;
1222
+ use: string;
1223
+ }[] | undefined;
1224
+ }>;
1225
+ /**
1226
+ * `guidance.json`: the companion to the contract. The contract says what each component accepts;
1227
+ * the guidance says which component, and which option, to choose.
1228
+ */
1229
+ declare const GuidanceSchema: z.ZodObject<{
1230
+ rules: z.ZodArray<z.ZodObject<{
1231
+ id: z.ZodString;
1232
+ rule: z.ZodString;
1233
+ wrong: z.ZodOptional<z.ZodString>;
1234
+ right: z.ZodOptional<z.ZodString>;
1235
+ }, "strip", z.ZodTypeAny, {
1236
+ id: string;
1237
+ rule: string;
1238
+ wrong?: string | undefined;
1239
+ right?: string | undefined;
1240
+ }, {
1241
+ id: string;
1242
+ rule: string;
1243
+ wrong?: string | undefined;
1244
+ right?: string | undefined;
1245
+ }>, "many">;
1246
+ components: z.ZodRecord<z.ZodString, z.ZodObject<{
1247
+ /** Short phrases for the need it answers, the way a person would ask for it. */
1248
+ use_for: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1249
+ /** For a part that only lives inside another component: that component. */
1250
+ part_of: z.ZodOptional<z.ZodString>;
1251
+ /** Needs that look like this component's and belong to another. */
1252
+ not_for: z.ZodOptional<z.ZodArray<z.ZodObject<{
1253
+ need: z.ZodString;
1254
+ use: z.ZodString;
1255
+ }, "strip", z.ZodTypeAny, {
1256
+ need: string;
1257
+ use: string;
1258
+ }, {
1259
+ need: string;
1260
+ use: string;
1261
+ }>, "many">>;
1262
+ /** Per option prop: a note for each of its values. */
1263
+ values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
1264
+ }, "strip", z.ZodTypeAny, {
1265
+ values?: Record<string, Record<string, string>> | undefined;
1266
+ use_for?: string[] | undefined;
1267
+ part_of?: string | undefined;
1268
+ not_for?: {
1269
+ need: string;
1270
+ use: string;
1271
+ }[] | undefined;
1272
+ }, {
1273
+ values?: Record<string, Record<string, string>> | undefined;
1274
+ use_for?: string[] | undefined;
1275
+ part_of?: string | undefined;
1276
+ not_for?: {
1277
+ need: string;
1278
+ use: string;
1279
+ }[] | undefined;
1280
+ }>>;
1281
+ }, "strip", z.ZodTypeAny, {
1282
+ components: Record<string, {
1283
+ values?: Record<string, Record<string, string>> | undefined;
1284
+ use_for?: string[] | undefined;
1285
+ part_of?: string | undefined;
1286
+ not_for?: {
1287
+ need: string;
1288
+ use: string;
1289
+ }[] | undefined;
1290
+ }>;
1291
+ rules: {
1292
+ id: string;
1293
+ rule: string;
1294
+ wrong?: string | undefined;
1295
+ right?: string | undefined;
1296
+ }[];
1297
+ }, {
1298
+ components: Record<string, {
1299
+ values?: Record<string, Record<string, string>> | undefined;
1300
+ use_for?: string[] | undefined;
1301
+ part_of?: string | undefined;
1302
+ not_for?: {
1303
+ need: string;
1304
+ use: string;
1305
+ }[] | undefined;
1306
+ }>;
1307
+ rules: {
1308
+ id: string;
1309
+ rule: string;
1310
+ wrong?: string | undefined;
1311
+ right?: string | undefined;
1312
+ }[];
1313
+ }>;
1314
+ type Component = z.infer<typeof ComponentSchema>;
1315
+ type Guidance = z.infer<typeof GuidanceSchema>;
1316
+ type GuidanceRule = z.infer<typeof GuidanceRuleSchema>;
1317
+ type ComponentGuidance = z.infer<typeof ComponentGuidanceSchema>;
1318
+ type Manifest = z.infer<typeof ManifestSchema>;
1319
+ type Pattern = z.infer<typeof PatternSchema>;
1320
+ type PatternSummary = z.infer<typeof PatternSummarySchema>;
1321
+ type ComponentsManifest = z.infer<typeof ComponentsManifestSchema>;
1322
+ type Prop = z.infer<typeof PropSchema>;
1323
+ type Slot = z.infer<typeof SlotSchema>;
1324
+ type CompositionRule = CompositionRuleNode;
1325
+
1326
+ export { type Component, type ComponentGuidance, ComponentGuidanceSchema, ComponentSchema, type ComponentsManifest, ComponentsManifestSchema, type CompositionRule, type CompositionRuleNode, CompositionRuleSchema, type Guidance, type GuidanceRule, GuidanceRuleSchema, GuidanceSchema, type Manifest, ManifestSchema, type Pattern, PatternSchema, type PatternSummary, PatternSummarySchema, type Prop, PropSchema, type Slot, SlotSchema };