@nakshi/genui-blocks 0.0.0-stage → 1.0.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,1152 @@
1
+ /**
2
+ * @nakshi/genui-blocks — a starter set of blocks for @nakshi/genui.
3
+ *
4
+ * Each block is defined once: its schema, what shows while it streams, the
5
+ * line the model reads, its plain-text form and, for numbers, its figures.
6
+ * They come from the blocks a production assistant uses, kept to what any
7
+ * product needs. Views for React: `@nakshi/genui-blocks/react`.
8
+ */
9
+ import { z } from 'zod';
10
+ import { type BlockDefinition, type BlockSchema, type Catalog, type GuideGroup } from '@nakshi/genui';
11
+ export declare const lenient: {
12
+ /** One line of text, clipped to `max` with an ellipsis rather than failing; a number is text. */
13
+ text: (max: number) => z.ZodEffects<z.ZodString, string, unknown>;
14
+ /** Optional text: blank or null means not given. */
15
+ optionalText: (max: number) => z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
16
+ /** Markdown with its line breaks, clipped to `max`. */
17
+ markdown: (max: number) => z.ZodEffects<z.ZodString, string, unknown>;
18
+ /** A list cut to its first `max` items rather than failing for one too many. */
19
+ list: <T extends z.ZodTypeAny>(item: T, min: number, max: number) => z.ZodEffects<z.ZodArray<T, "many">, T["_output"][], unknown>;
20
+ /** A number written as a number, or as a string with separators ("2,500"). */
21
+ amount: z.ZodEffects<z.ZodNumber, number, unknown>;
22
+ };
23
+ export declare const steps: BlockDefinition<"steps", z.ZodObject<{
24
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
25
+ steps: z.ZodEffects<z.ZodArray<z.ZodObject<{
26
+ title: z.ZodEffects<z.ZodString, string, unknown>;
27
+ detail: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
28
+ time: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ title: string;
31
+ detail?: string | undefined;
32
+ time?: string | undefined;
33
+ }, {
34
+ title?: unknown;
35
+ detail?: unknown;
36
+ time?: unknown;
37
+ }>, "many">, {
38
+ title: string;
39
+ detail?: string | undefined;
40
+ time?: string | undefined;
41
+ }[], unknown>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ steps: {
44
+ title: string;
45
+ detail?: string | undefined;
46
+ time?: string | undefined;
47
+ }[];
48
+ title?: string | undefined;
49
+ }, {
50
+ title?: unknown;
51
+ steps?: unknown;
52
+ }>>;
53
+ export declare const checklist: BlockDefinition<"checklist", z.ZodObject<{
54
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
55
+ groups: z.ZodEffects<z.ZodArray<z.ZodObject<{
56
+ label: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
57
+ items: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, unknown>, "many">, string[], unknown>;
58
+ }, "strip", z.ZodTypeAny, {
59
+ items: string[];
60
+ label?: string | undefined;
61
+ }, {
62
+ items?: unknown;
63
+ label?: unknown;
64
+ }>, "many">, {
65
+ items: string[];
66
+ label?: string | undefined;
67
+ }[], unknown>;
68
+ note: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
69
+ }, "strip", z.ZodTypeAny, {
70
+ groups: {
71
+ items: string[];
72
+ label?: string | undefined;
73
+ }[];
74
+ title?: string | undefined;
75
+ note?: string | undefined;
76
+ }, {
77
+ title?: unknown;
78
+ groups?: unknown;
79
+ note?: unknown;
80
+ }>>;
81
+ export declare const recipe: BlockDefinition<"recipe", z.ZodObject<{
82
+ title: z.ZodEffects<z.ZodString, string, unknown>;
83
+ servings: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, unknown>, z.ZodNumber>;
84
+ time: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
85
+ ingredients: z.ZodEffects<z.ZodArray<z.ZodObject<{
86
+ item: z.ZodEffects<z.ZodString, string, unknown>;
87
+ qty: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, unknown>>;
88
+ unit: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
89
+ note: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
90
+ }, "strip", z.ZodTypeAny, {
91
+ item: string;
92
+ unit?: string | undefined;
93
+ note?: string | undefined;
94
+ qty?: number | undefined;
95
+ }, {
96
+ unit?: unknown;
97
+ note?: unknown;
98
+ item?: unknown;
99
+ qty?: unknown;
100
+ }>, "many">, {
101
+ item: string;
102
+ unit?: string | undefined;
103
+ note?: string | undefined;
104
+ qty?: number | undefined;
105
+ }[], unknown>;
106
+ note: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
107
+ }, "strip", z.ZodTypeAny, {
108
+ title: string;
109
+ servings: number;
110
+ ingredients: {
111
+ item: string;
112
+ unit?: string | undefined;
113
+ note?: string | undefined;
114
+ qty?: number | undefined;
115
+ }[];
116
+ time?: string | undefined;
117
+ note?: string | undefined;
118
+ }, {
119
+ title?: unknown;
120
+ time?: unknown;
121
+ note?: unknown;
122
+ servings?: unknown;
123
+ ingredients?: unknown;
124
+ }>>;
125
+ export declare const stats: BlockDefinition<"stats", z.ZodObject<{
126
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
127
+ items: z.ZodEffects<z.ZodArray<z.ZodObject<{
128
+ label: z.ZodEffects<z.ZodString, string, unknown>;
129
+ value: z.ZodEffects<z.ZodString, string, unknown>;
130
+ sub: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
131
+ }, "strip", z.ZodTypeAny, {
132
+ value: string;
133
+ label: string;
134
+ sub?: string | undefined;
135
+ }, {
136
+ value?: unknown;
137
+ label?: unknown;
138
+ sub?: unknown;
139
+ }>, "many">, {
140
+ value: string;
141
+ label: string;
142
+ sub?: string | undefined;
143
+ }[], unknown>;
144
+ note: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
145
+ }, "strip", z.ZodTypeAny, {
146
+ items: {
147
+ value: string;
148
+ label: string;
149
+ sub?: string | undefined;
150
+ }[];
151
+ title?: string | undefined;
152
+ note?: string | undefined;
153
+ }, {
154
+ title?: unknown;
155
+ items?: unknown;
156
+ note?: unknown;
157
+ }>>;
158
+ export declare const CHART_KINDS: readonly ["bar", "line"];
159
+ export declare const chart: BlockDefinition<"chart", z.ZodEffects<z.ZodObject<{
160
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
161
+ kind: z.ZodEnum<["bar", "line"]>;
162
+ unit: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
163
+ labels: z.ZodArray<z.ZodEffects<z.ZodString, string, unknown>, "many">;
164
+ series: z.ZodEffects<z.ZodArray<z.ZodObject<{
165
+ name: z.ZodEffects<z.ZodString, string, unknown>;
166
+ values: z.ZodArray<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, unknown>>, "many">;
167
+ }, "strip", z.ZodTypeAny, {
168
+ values: (number | null)[];
169
+ name: string;
170
+ }, {
171
+ values: unknown[];
172
+ name?: unknown;
173
+ }>, "many">, {
174
+ values: (number | null)[];
175
+ name: string;
176
+ }[], unknown>;
177
+ note: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
178
+ }, "strip", z.ZodTypeAny, {
179
+ kind: "bar" | "line";
180
+ labels: string[];
181
+ series: {
182
+ values: (number | null)[];
183
+ name: string;
184
+ }[];
185
+ title?: string | undefined;
186
+ unit?: string | undefined;
187
+ note?: string | undefined;
188
+ }, {
189
+ kind: "bar" | "line";
190
+ labels: unknown[];
191
+ title?: unknown;
192
+ unit?: unknown;
193
+ note?: unknown;
194
+ series?: unknown;
195
+ }>, {
196
+ kind: "bar" | "line";
197
+ labels: string[];
198
+ series: {
199
+ values: (number | null)[];
200
+ name: string;
201
+ }[];
202
+ title?: string | undefined;
203
+ unit?: string | undefined;
204
+ note?: string | undefined;
205
+ }, {
206
+ kind: "bar" | "line";
207
+ labels: unknown[];
208
+ title?: unknown;
209
+ unit?: unknown;
210
+ note?: unknown;
211
+ series?: unknown;
212
+ }>>;
213
+ export declare const compare: BlockDefinition<"compare", z.ZodEffects<z.ZodObject<{
214
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
215
+ columns: z.ZodArray<z.ZodObject<{
216
+ name: z.ZodEffects<z.ZodString, string, unknown>;
217
+ subtitle: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
218
+ }, "strip", z.ZodTypeAny, {
219
+ name: string;
220
+ subtitle?: string | undefined;
221
+ }, {
222
+ name?: unknown;
223
+ subtitle?: unknown;
224
+ }>, "many">;
225
+ rows: z.ZodEffects<z.ZodArray<z.ZodObject<{
226
+ label: z.ZodEffects<z.ZodString, string, unknown>;
227
+ values: z.ZodArray<z.ZodEffects<z.ZodString, string, unknown>, "many">;
228
+ best: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
229
+ }, "strip", z.ZodTypeAny, {
230
+ values: string[];
231
+ label: string;
232
+ best?: number[] | undefined;
233
+ }, {
234
+ values: unknown[];
235
+ label?: unknown;
236
+ best?: number[] | undefined;
237
+ }>, "many">, {
238
+ values: string[];
239
+ label: string;
240
+ best?: number[] | undefined;
241
+ }[], unknown>;
242
+ note: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
243
+ }, "strip", z.ZodTypeAny, {
244
+ columns: {
245
+ name: string;
246
+ subtitle?: string | undefined;
247
+ }[];
248
+ rows: {
249
+ values: string[];
250
+ label: string;
251
+ best?: number[] | undefined;
252
+ }[];
253
+ title?: string | undefined;
254
+ note?: string | undefined;
255
+ }, {
256
+ columns: {
257
+ name?: unknown;
258
+ subtitle?: unknown;
259
+ }[];
260
+ title?: unknown;
261
+ note?: unknown;
262
+ rows?: unknown;
263
+ }>, {
264
+ columns: {
265
+ name: string;
266
+ subtitle?: string | undefined;
267
+ }[];
268
+ rows: {
269
+ values: string[];
270
+ label: string;
271
+ best?: number[] | undefined;
272
+ }[];
273
+ title?: string | undefined;
274
+ note?: string | undefined;
275
+ }, {
276
+ columns: {
277
+ name?: unknown;
278
+ subtitle?: unknown;
279
+ }[];
280
+ title?: unknown;
281
+ note?: unknown;
282
+ rows?: unknown;
283
+ }>>;
284
+ export declare const cards: BlockDefinition<"cards", z.ZodObject<{
285
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
286
+ items: z.ZodEffects<z.ZodArray<z.ZodObject<{
287
+ title: z.ZodEffects<z.ZodString, string, unknown>;
288
+ text: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
289
+ points: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, unknown>, "many">, string[], unknown>>;
290
+ }, "strip", z.ZodTypeAny, {
291
+ title: string;
292
+ text?: string | undefined;
293
+ points?: string[] | undefined;
294
+ }, {
295
+ title?: unknown;
296
+ text?: unknown;
297
+ points?: unknown;
298
+ }>, "many">, {
299
+ title: string;
300
+ text?: string | undefined;
301
+ points?: string[] | undefined;
302
+ }[], unknown>;
303
+ note: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
304
+ }, "strip", z.ZodTypeAny, {
305
+ items: {
306
+ title: string;
307
+ text?: string | undefined;
308
+ points?: string[] | undefined;
309
+ }[];
310
+ title?: string | undefined;
311
+ note?: string | undefined;
312
+ }, {
313
+ title?: unknown;
314
+ items?: unknown;
315
+ note?: unknown;
316
+ }>>;
317
+ export declare const CALLOUT_TONES: readonly ["info", "tip", "warning"];
318
+ export declare const callout: BlockDefinition<"callout", z.ZodObject<{
319
+ tone: z.ZodOptional<z.ZodEnum<["info", "tip", "warning"]>>;
320
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
321
+ text: z.ZodEffects<z.ZodString, string, unknown>;
322
+ }, "strip", z.ZodTypeAny, {
323
+ text: string;
324
+ title?: string | undefined;
325
+ tone?: "info" | "tip" | "warning" | undefined;
326
+ }, {
327
+ title?: unknown;
328
+ text?: unknown;
329
+ tone?: "info" | "tip" | "warning" | undefined;
330
+ }>>;
331
+ export declare const tabs: BlockDefinition<"tabs", z.ZodObject<{
332
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
333
+ tabs: z.ZodEffects<z.ZodArray<z.ZodObject<{
334
+ label: z.ZodEffects<z.ZodString, string, unknown>;
335
+ body: z.ZodEffects<z.ZodString, string, unknown>;
336
+ }, "strip", z.ZodTypeAny, {
337
+ label: string;
338
+ body: string;
339
+ }, {
340
+ label?: unknown;
341
+ body?: unknown;
342
+ }>, "many">, {
343
+ label: string;
344
+ body: string;
345
+ }[], unknown>;
346
+ }, "strip", z.ZodTypeAny, {
347
+ tabs: {
348
+ label: string;
349
+ body: string;
350
+ }[];
351
+ title?: string | undefined;
352
+ }, {
353
+ title?: unknown;
354
+ tabs?: unknown;
355
+ }>>;
356
+ export declare const accordion: BlockDefinition<"accordion", z.ZodObject<{
357
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
358
+ items: z.ZodEffects<z.ZodArray<z.ZodObject<{
359
+ title: z.ZodEffects<z.ZodString, string, unknown>;
360
+ body: z.ZodEffects<z.ZodString, string, unknown>;
361
+ open: z.ZodOptional<z.ZodBoolean>;
362
+ }, "strip", z.ZodTypeAny, {
363
+ title: string;
364
+ body: string;
365
+ open?: boolean | undefined;
366
+ }, {
367
+ title?: unknown;
368
+ body?: unknown;
369
+ open?: boolean | undefined;
370
+ }>, "many">, {
371
+ title: string;
372
+ body: string;
373
+ open?: boolean | undefined;
374
+ }[], unknown>;
375
+ }, "strip", z.ZodTypeAny, {
376
+ items: {
377
+ title: string;
378
+ body: string;
379
+ open?: boolean | undefined;
380
+ }[];
381
+ title?: string | undefined;
382
+ }, {
383
+ title?: unknown;
384
+ items?: unknown;
385
+ }>>;
386
+ export declare const code: BlockDefinition<"code", z.ZodObject<{
387
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
388
+ language: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
389
+ code: z.ZodString;
390
+ note: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
391
+ }, "strip", z.ZodTypeAny, {
392
+ code: string;
393
+ title?: string | undefined;
394
+ note?: string | undefined;
395
+ language?: string | undefined;
396
+ }, {
397
+ code: string;
398
+ title?: unknown;
399
+ note?: unknown;
400
+ language?: unknown;
401
+ }>>;
402
+ /** Every block in this package, in the order the guide lists them. */
403
+ export declare const defaultBlocks: readonly [BlockDefinition<"steps", z.ZodObject<{
404
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
405
+ steps: z.ZodEffects<z.ZodArray<z.ZodObject<{
406
+ title: z.ZodEffects<z.ZodString, string, unknown>;
407
+ detail: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
408
+ time: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
409
+ }, "strip", z.ZodTypeAny, {
410
+ title: string;
411
+ detail?: string | undefined;
412
+ time?: string | undefined;
413
+ }, {
414
+ title?: unknown;
415
+ detail?: unknown;
416
+ time?: unknown;
417
+ }>, "many">, {
418
+ title: string;
419
+ detail?: string | undefined;
420
+ time?: string | undefined;
421
+ }[], unknown>;
422
+ }, "strip", z.ZodTypeAny, {
423
+ steps: {
424
+ title: string;
425
+ detail?: string | undefined;
426
+ time?: string | undefined;
427
+ }[];
428
+ title?: string | undefined;
429
+ }, {
430
+ title?: unknown;
431
+ steps?: unknown;
432
+ }>>, BlockDefinition<"checklist", z.ZodObject<{
433
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
434
+ groups: z.ZodEffects<z.ZodArray<z.ZodObject<{
435
+ label: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
436
+ items: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, unknown>, "many">, string[], unknown>;
437
+ }, "strip", z.ZodTypeAny, {
438
+ items: string[];
439
+ label?: string | undefined;
440
+ }, {
441
+ items?: unknown;
442
+ label?: unknown;
443
+ }>, "many">, {
444
+ items: string[];
445
+ label?: string | undefined;
446
+ }[], unknown>;
447
+ note: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
448
+ }, "strip", z.ZodTypeAny, {
449
+ groups: {
450
+ items: string[];
451
+ label?: string | undefined;
452
+ }[];
453
+ title?: string | undefined;
454
+ note?: string | undefined;
455
+ }, {
456
+ title?: unknown;
457
+ groups?: unknown;
458
+ note?: unknown;
459
+ }>>, BlockDefinition<"recipe", z.ZodObject<{
460
+ title: z.ZodEffects<z.ZodString, string, unknown>;
461
+ servings: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, unknown>, z.ZodNumber>;
462
+ time: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
463
+ ingredients: z.ZodEffects<z.ZodArray<z.ZodObject<{
464
+ item: z.ZodEffects<z.ZodString, string, unknown>;
465
+ qty: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, unknown>>;
466
+ unit: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
467
+ note: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
468
+ }, "strip", z.ZodTypeAny, {
469
+ item: string;
470
+ unit?: string | undefined;
471
+ note?: string | undefined;
472
+ qty?: number | undefined;
473
+ }, {
474
+ unit?: unknown;
475
+ note?: unknown;
476
+ item?: unknown;
477
+ qty?: unknown;
478
+ }>, "many">, {
479
+ item: string;
480
+ unit?: string | undefined;
481
+ note?: string | undefined;
482
+ qty?: number | undefined;
483
+ }[], unknown>;
484
+ note: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
485
+ }, "strip", z.ZodTypeAny, {
486
+ title: string;
487
+ servings: number;
488
+ ingredients: {
489
+ item: string;
490
+ unit?: string | undefined;
491
+ note?: string | undefined;
492
+ qty?: number | undefined;
493
+ }[];
494
+ time?: string | undefined;
495
+ note?: string | undefined;
496
+ }, {
497
+ title?: unknown;
498
+ time?: unknown;
499
+ note?: unknown;
500
+ servings?: unknown;
501
+ ingredients?: unknown;
502
+ }>>, BlockDefinition<"stats", z.ZodObject<{
503
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
504
+ items: z.ZodEffects<z.ZodArray<z.ZodObject<{
505
+ label: z.ZodEffects<z.ZodString, string, unknown>;
506
+ value: z.ZodEffects<z.ZodString, string, unknown>;
507
+ sub: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
508
+ }, "strip", z.ZodTypeAny, {
509
+ value: string;
510
+ label: string;
511
+ sub?: string | undefined;
512
+ }, {
513
+ value?: unknown;
514
+ label?: unknown;
515
+ sub?: unknown;
516
+ }>, "many">, {
517
+ value: string;
518
+ label: string;
519
+ sub?: string | undefined;
520
+ }[], unknown>;
521
+ note: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
522
+ }, "strip", z.ZodTypeAny, {
523
+ items: {
524
+ value: string;
525
+ label: string;
526
+ sub?: string | undefined;
527
+ }[];
528
+ title?: string | undefined;
529
+ note?: string | undefined;
530
+ }, {
531
+ title?: unknown;
532
+ items?: unknown;
533
+ note?: unknown;
534
+ }>>, BlockDefinition<"chart", z.ZodEffects<z.ZodObject<{
535
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
536
+ kind: z.ZodEnum<["bar", "line"]>;
537
+ unit: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
538
+ labels: z.ZodArray<z.ZodEffects<z.ZodString, string, unknown>, "many">;
539
+ series: z.ZodEffects<z.ZodArray<z.ZodObject<{
540
+ name: z.ZodEffects<z.ZodString, string, unknown>;
541
+ values: z.ZodArray<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, unknown>>, "many">;
542
+ }, "strip", z.ZodTypeAny, {
543
+ values: (number | null)[];
544
+ name: string;
545
+ }, {
546
+ values: unknown[];
547
+ name?: unknown;
548
+ }>, "many">, {
549
+ values: (number | null)[];
550
+ name: string;
551
+ }[], unknown>;
552
+ note: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
553
+ }, "strip", z.ZodTypeAny, {
554
+ kind: "bar" | "line";
555
+ labels: string[];
556
+ series: {
557
+ values: (number | null)[];
558
+ name: string;
559
+ }[];
560
+ title?: string | undefined;
561
+ unit?: string | undefined;
562
+ note?: string | undefined;
563
+ }, {
564
+ kind: "bar" | "line";
565
+ labels: unknown[];
566
+ title?: unknown;
567
+ unit?: unknown;
568
+ note?: unknown;
569
+ series?: unknown;
570
+ }>, {
571
+ kind: "bar" | "line";
572
+ labels: string[];
573
+ series: {
574
+ values: (number | null)[];
575
+ name: string;
576
+ }[];
577
+ title?: string | undefined;
578
+ unit?: string | undefined;
579
+ note?: string | undefined;
580
+ }, {
581
+ kind: "bar" | "line";
582
+ labels: unknown[];
583
+ title?: unknown;
584
+ unit?: unknown;
585
+ note?: unknown;
586
+ series?: unknown;
587
+ }>>, BlockDefinition<"compare", z.ZodEffects<z.ZodObject<{
588
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
589
+ columns: z.ZodArray<z.ZodObject<{
590
+ name: z.ZodEffects<z.ZodString, string, unknown>;
591
+ subtitle: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
592
+ }, "strip", z.ZodTypeAny, {
593
+ name: string;
594
+ subtitle?: string | undefined;
595
+ }, {
596
+ name?: unknown;
597
+ subtitle?: unknown;
598
+ }>, "many">;
599
+ rows: z.ZodEffects<z.ZodArray<z.ZodObject<{
600
+ label: z.ZodEffects<z.ZodString, string, unknown>;
601
+ values: z.ZodArray<z.ZodEffects<z.ZodString, string, unknown>, "many">;
602
+ best: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
603
+ }, "strip", z.ZodTypeAny, {
604
+ values: string[];
605
+ label: string;
606
+ best?: number[] | undefined;
607
+ }, {
608
+ values: unknown[];
609
+ label?: unknown;
610
+ best?: number[] | undefined;
611
+ }>, "many">, {
612
+ values: string[];
613
+ label: string;
614
+ best?: number[] | undefined;
615
+ }[], unknown>;
616
+ note: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
617
+ }, "strip", z.ZodTypeAny, {
618
+ columns: {
619
+ name: string;
620
+ subtitle?: string | undefined;
621
+ }[];
622
+ rows: {
623
+ values: string[];
624
+ label: string;
625
+ best?: number[] | undefined;
626
+ }[];
627
+ title?: string | undefined;
628
+ note?: string | undefined;
629
+ }, {
630
+ columns: {
631
+ name?: unknown;
632
+ subtitle?: unknown;
633
+ }[];
634
+ title?: unknown;
635
+ note?: unknown;
636
+ rows?: unknown;
637
+ }>, {
638
+ columns: {
639
+ name: string;
640
+ subtitle?: string | undefined;
641
+ }[];
642
+ rows: {
643
+ values: string[];
644
+ label: string;
645
+ best?: number[] | undefined;
646
+ }[];
647
+ title?: string | undefined;
648
+ note?: string | undefined;
649
+ }, {
650
+ columns: {
651
+ name?: unknown;
652
+ subtitle?: unknown;
653
+ }[];
654
+ title?: unknown;
655
+ note?: unknown;
656
+ rows?: unknown;
657
+ }>>, BlockDefinition<"cards", z.ZodObject<{
658
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
659
+ items: z.ZodEffects<z.ZodArray<z.ZodObject<{
660
+ title: z.ZodEffects<z.ZodString, string, unknown>;
661
+ text: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
662
+ points: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, unknown>, "many">, string[], unknown>>;
663
+ }, "strip", z.ZodTypeAny, {
664
+ title: string;
665
+ text?: string | undefined;
666
+ points?: string[] | undefined;
667
+ }, {
668
+ title?: unknown;
669
+ text?: unknown;
670
+ points?: unknown;
671
+ }>, "many">, {
672
+ title: string;
673
+ text?: string | undefined;
674
+ points?: string[] | undefined;
675
+ }[], unknown>;
676
+ note: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
677
+ }, "strip", z.ZodTypeAny, {
678
+ items: {
679
+ title: string;
680
+ text?: string | undefined;
681
+ points?: string[] | undefined;
682
+ }[];
683
+ title?: string | undefined;
684
+ note?: string | undefined;
685
+ }, {
686
+ title?: unknown;
687
+ items?: unknown;
688
+ note?: unknown;
689
+ }>>, BlockDefinition<"callout", z.ZodObject<{
690
+ tone: z.ZodOptional<z.ZodEnum<["info", "tip", "warning"]>>;
691
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
692
+ text: z.ZodEffects<z.ZodString, string, unknown>;
693
+ }, "strip", z.ZodTypeAny, {
694
+ text: string;
695
+ title?: string | undefined;
696
+ tone?: "info" | "tip" | "warning" | undefined;
697
+ }, {
698
+ title?: unknown;
699
+ text?: unknown;
700
+ tone?: "info" | "tip" | "warning" | undefined;
701
+ }>>, BlockDefinition<"tabs", z.ZodObject<{
702
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
703
+ tabs: z.ZodEffects<z.ZodArray<z.ZodObject<{
704
+ label: z.ZodEffects<z.ZodString, string, unknown>;
705
+ body: z.ZodEffects<z.ZodString, string, unknown>;
706
+ }, "strip", z.ZodTypeAny, {
707
+ label: string;
708
+ body: string;
709
+ }, {
710
+ label?: unknown;
711
+ body?: unknown;
712
+ }>, "many">, {
713
+ label: string;
714
+ body: string;
715
+ }[], unknown>;
716
+ }, "strip", z.ZodTypeAny, {
717
+ tabs: {
718
+ label: string;
719
+ body: string;
720
+ }[];
721
+ title?: string | undefined;
722
+ }, {
723
+ title?: unknown;
724
+ tabs?: unknown;
725
+ }>>, BlockDefinition<"accordion", z.ZodObject<{
726
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
727
+ items: z.ZodEffects<z.ZodArray<z.ZodObject<{
728
+ title: z.ZodEffects<z.ZodString, string, unknown>;
729
+ body: z.ZodEffects<z.ZodString, string, unknown>;
730
+ open: z.ZodOptional<z.ZodBoolean>;
731
+ }, "strip", z.ZodTypeAny, {
732
+ title: string;
733
+ body: string;
734
+ open?: boolean | undefined;
735
+ }, {
736
+ title?: unknown;
737
+ body?: unknown;
738
+ open?: boolean | undefined;
739
+ }>, "many">, {
740
+ title: string;
741
+ body: string;
742
+ open?: boolean | undefined;
743
+ }[], unknown>;
744
+ }, "strip", z.ZodTypeAny, {
745
+ items: {
746
+ title: string;
747
+ body: string;
748
+ open?: boolean | undefined;
749
+ }[];
750
+ title?: string | undefined;
751
+ }, {
752
+ title?: unknown;
753
+ items?: unknown;
754
+ }>>, BlockDefinition<"code", z.ZodObject<{
755
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
756
+ language: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
757
+ code: z.ZodString;
758
+ note: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
759
+ }, "strip", z.ZodTypeAny, {
760
+ code: string;
761
+ title?: string | undefined;
762
+ note?: string | undefined;
763
+ language?: string | undefined;
764
+ }, {
765
+ code: string;
766
+ title?: unknown;
767
+ note?: unknown;
768
+ language?: unknown;
769
+ }>>];
770
+ /** The guide's grouping for these blocks: by what each is for, rare layouts last. */
771
+ export declare const defaultGuideGroups: readonly GuideGroup[];
772
+ type AnyBlocks = readonly BlockDefinition<string, BlockSchema>[];
773
+ /** `defaultGuideGroups` for the blocks a catalog has (others are left out, and new ones listed last). */
774
+ export declare function guideGroupsFor(catalog: Catalog<AnyBlocks>): GuideGroup[];
775
+ /**
776
+ * Worked examples for the guide: a procedure, a list to tick, and code with no
777
+ * block. Models copy the shape of an example more than they follow any rule,
778
+ * so they span shapes and include an answer with none. No topic here is in
779
+ * @nakshi/genui-eval's cases, so an eval measures the rules, not recall.
780
+ */
781
+ export declare function defaultExamples(prefix: string): string;
782
+ /** The guide for a catalog of these blocks: grouped signatures and the worked examples. */
783
+ export declare function defaultGuide(catalog: Catalog<AnyBlocks>): string;
784
+ /** A catalog of the default blocks, under `prefix` (```ui:steps by default). */
785
+ export declare function createDefaultCatalog(prefix?: string): Catalog<readonly [BlockDefinition<"steps", z.ZodObject<{
786
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
787
+ steps: z.ZodEffects<z.ZodArray<z.ZodObject<{
788
+ title: z.ZodEffects<z.ZodString, string, unknown>;
789
+ detail: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
790
+ time: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
791
+ }, "strip", z.ZodTypeAny, {
792
+ title: string;
793
+ detail?: string | undefined;
794
+ time?: string | undefined;
795
+ }, {
796
+ title?: unknown;
797
+ detail?: unknown;
798
+ time?: unknown;
799
+ }>, "many">, {
800
+ title: string;
801
+ detail?: string | undefined;
802
+ time?: string | undefined;
803
+ }[], unknown>;
804
+ }, "strip", z.ZodTypeAny, {
805
+ steps: {
806
+ title: string;
807
+ detail?: string | undefined;
808
+ time?: string | undefined;
809
+ }[];
810
+ title?: string | undefined;
811
+ }, {
812
+ title?: unknown;
813
+ steps?: unknown;
814
+ }>>, BlockDefinition<"checklist", z.ZodObject<{
815
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
816
+ groups: z.ZodEffects<z.ZodArray<z.ZodObject<{
817
+ label: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
818
+ items: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, unknown>, "many">, string[], unknown>;
819
+ }, "strip", z.ZodTypeAny, {
820
+ items: string[];
821
+ label?: string | undefined;
822
+ }, {
823
+ items?: unknown;
824
+ label?: unknown;
825
+ }>, "many">, {
826
+ items: string[];
827
+ label?: string | undefined;
828
+ }[], unknown>;
829
+ note: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
830
+ }, "strip", z.ZodTypeAny, {
831
+ groups: {
832
+ items: string[];
833
+ label?: string | undefined;
834
+ }[];
835
+ title?: string | undefined;
836
+ note?: string | undefined;
837
+ }, {
838
+ title?: unknown;
839
+ groups?: unknown;
840
+ note?: unknown;
841
+ }>>, BlockDefinition<"recipe", z.ZodObject<{
842
+ title: z.ZodEffects<z.ZodString, string, unknown>;
843
+ servings: z.ZodPipeline<z.ZodEffects<z.ZodNumber, number, unknown>, z.ZodNumber>;
844
+ time: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
845
+ ingredients: z.ZodEffects<z.ZodArray<z.ZodObject<{
846
+ item: z.ZodEffects<z.ZodString, string, unknown>;
847
+ qty: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, unknown>>;
848
+ unit: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
849
+ note: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
850
+ }, "strip", z.ZodTypeAny, {
851
+ item: string;
852
+ unit?: string | undefined;
853
+ note?: string | undefined;
854
+ qty?: number | undefined;
855
+ }, {
856
+ unit?: unknown;
857
+ note?: unknown;
858
+ item?: unknown;
859
+ qty?: unknown;
860
+ }>, "many">, {
861
+ item: string;
862
+ unit?: string | undefined;
863
+ note?: string | undefined;
864
+ qty?: number | undefined;
865
+ }[], unknown>;
866
+ note: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
867
+ }, "strip", z.ZodTypeAny, {
868
+ title: string;
869
+ servings: number;
870
+ ingredients: {
871
+ item: string;
872
+ unit?: string | undefined;
873
+ note?: string | undefined;
874
+ qty?: number | undefined;
875
+ }[];
876
+ time?: string | undefined;
877
+ note?: string | undefined;
878
+ }, {
879
+ title?: unknown;
880
+ time?: unknown;
881
+ note?: unknown;
882
+ servings?: unknown;
883
+ ingredients?: unknown;
884
+ }>>, BlockDefinition<"stats", z.ZodObject<{
885
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
886
+ items: z.ZodEffects<z.ZodArray<z.ZodObject<{
887
+ label: z.ZodEffects<z.ZodString, string, unknown>;
888
+ value: z.ZodEffects<z.ZodString, string, unknown>;
889
+ sub: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
890
+ }, "strip", z.ZodTypeAny, {
891
+ value: string;
892
+ label: string;
893
+ sub?: string | undefined;
894
+ }, {
895
+ value?: unknown;
896
+ label?: unknown;
897
+ sub?: unknown;
898
+ }>, "many">, {
899
+ value: string;
900
+ label: string;
901
+ sub?: string | undefined;
902
+ }[], unknown>;
903
+ note: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
904
+ }, "strip", z.ZodTypeAny, {
905
+ items: {
906
+ value: string;
907
+ label: string;
908
+ sub?: string | undefined;
909
+ }[];
910
+ title?: string | undefined;
911
+ note?: string | undefined;
912
+ }, {
913
+ title?: unknown;
914
+ items?: unknown;
915
+ note?: unknown;
916
+ }>>, BlockDefinition<"chart", z.ZodEffects<z.ZodObject<{
917
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
918
+ kind: z.ZodEnum<["bar", "line"]>;
919
+ unit: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
920
+ labels: z.ZodArray<z.ZodEffects<z.ZodString, string, unknown>, "many">;
921
+ series: z.ZodEffects<z.ZodArray<z.ZodObject<{
922
+ name: z.ZodEffects<z.ZodString, string, unknown>;
923
+ values: z.ZodArray<z.ZodNullable<z.ZodEffects<z.ZodNumber, number, unknown>>, "many">;
924
+ }, "strip", z.ZodTypeAny, {
925
+ values: (number | null)[];
926
+ name: string;
927
+ }, {
928
+ values: unknown[];
929
+ name?: unknown;
930
+ }>, "many">, {
931
+ values: (number | null)[];
932
+ name: string;
933
+ }[], unknown>;
934
+ note: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
935
+ }, "strip", z.ZodTypeAny, {
936
+ kind: "bar" | "line";
937
+ labels: string[];
938
+ series: {
939
+ values: (number | null)[];
940
+ name: string;
941
+ }[];
942
+ title?: string | undefined;
943
+ unit?: string | undefined;
944
+ note?: string | undefined;
945
+ }, {
946
+ kind: "bar" | "line";
947
+ labels: unknown[];
948
+ title?: unknown;
949
+ unit?: unknown;
950
+ note?: unknown;
951
+ series?: unknown;
952
+ }>, {
953
+ kind: "bar" | "line";
954
+ labels: string[];
955
+ series: {
956
+ values: (number | null)[];
957
+ name: string;
958
+ }[];
959
+ title?: string | undefined;
960
+ unit?: string | undefined;
961
+ note?: string | undefined;
962
+ }, {
963
+ kind: "bar" | "line";
964
+ labels: unknown[];
965
+ title?: unknown;
966
+ unit?: unknown;
967
+ note?: unknown;
968
+ series?: unknown;
969
+ }>>, BlockDefinition<"compare", z.ZodEffects<z.ZodObject<{
970
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
971
+ columns: z.ZodArray<z.ZodObject<{
972
+ name: z.ZodEffects<z.ZodString, string, unknown>;
973
+ subtitle: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
974
+ }, "strip", z.ZodTypeAny, {
975
+ name: string;
976
+ subtitle?: string | undefined;
977
+ }, {
978
+ name?: unknown;
979
+ subtitle?: unknown;
980
+ }>, "many">;
981
+ rows: z.ZodEffects<z.ZodArray<z.ZodObject<{
982
+ label: z.ZodEffects<z.ZodString, string, unknown>;
983
+ values: z.ZodArray<z.ZodEffects<z.ZodString, string, unknown>, "many">;
984
+ best: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
985
+ }, "strip", z.ZodTypeAny, {
986
+ values: string[];
987
+ label: string;
988
+ best?: number[] | undefined;
989
+ }, {
990
+ values: unknown[];
991
+ label?: unknown;
992
+ best?: number[] | undefined;
993
+ }>, "many">, {
994
+ values: string[];
995
+ label: string;
996
+ best?: number[] | undefined;
997
+ }[], unknown>;
998
+ note: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
999
+ }, "strip", z.ZodTypeAny, {
1000
+ columns: {
1001
+ name: string;
1002
+ subtitle?: string | undefined;
1003
+ }[];
1004
+ rows: {
1005
+ values: string[];
1006
+ label: string;
1007
+ best?: number[] | undefined;
1008
+ }[];
1009
+ title?: string | undefined;
1010
+ note?: string | undefined;
1011
+ }, {
1012
+ columns: {
1013
+ name?: unknown;
1014
+ subtitle?: unknown;
1015
+ }[];
1016
+ title?: unknown;
1017
+ note?: unknown;
1018
+ rows?: unknown;
1019
+ }>, {
1020
+ columns: {
1021
+ name: string;
1022
+ subtitle?: string | undefined;
1023
+ }[];
1024
+ rows: {
1025
+ values: string[];
1026
+ label: string;
1027
+ best?: number[] | undefined;
1028
+ }[];
1029
+ title?: string | undefined;
1030
+ note?: string | undefined;
1031
+ }, {
1032
+ columns: {
1033
+ name?: unknown;
1034
+ subtitle?: unknown;
1035
+ }[];
1036
+ title?: unknown;
1037
+ note?: unknown;
1038
+ rows?: unknown;
1039
+ }>>, BlockDefinition<"cards", z.ZodObject<{
1040
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
1041
+ items: z.ZodEffects<z.ZodArray<z.ZodObject<{
1042
+ title: z.ZodEffects<z.ZodString, string, unknown>;
1043
+ text: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
1044
+ points: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, unknown>, "many">, string[], unknown>>;
1045
+ }, "strip", z.ZodTypeAny, {
1046
+ title: string;
1047
+ text?: string | undefined;
1048
+ points?: string[] | undefined;
1049
+ }, {
1050
+ title?: unknown;
1051
+ text?: unknown;
1052
+ points?: unknown;
1053
+ }>, "many">, {
1054
+ title: string;
1055
+ text?: string | undefined;
1056
+ points?: string[] | undefined;
1057
+ }[], unknown>;
1058
+ note: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
1059
+ }, "strip", z.ZodTypeAny, {
1060
+ items: {
1061
+ title: string;
1062
+ text?: string | undefined;
1063
+ points?: string[] | undefined;
1064
+ }[];
1065
+ title?: string | undefined;
1066
+ note?: string | undefined;
1067
+ }, {
1068
+ title?: unknown;
1069
+ items?: unknown;
1070
+ note?: unknown;
1071
+ }>>, BlockDefinition<"callout", z.ZodObject<{
1072
+ tone: z.ZodOptional<z.ZodEnum<["info", "tip", "warning"]>>;
1073
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
1074
+ text: z.ZodEffects<z.ZodString, string, unknown>;
1075
+ }, "strip", z.ZodTypeAny, {
1076
+ text: string;
1077
+ title?: string | undefined;
1078
+ tone?: "info" | "tip" | "warning" | undefined;
1079
+ }, {
1080
+ title?: unknown;
1081
+ text?: unknown;
1082
+ tone?: "info" | "tip" | "warning" | undefined;
1083
+ }>>, BlockDefinition<"tabs", z.ZodObject<{
1084
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
1085
+ tabs: z.ZodEffects<z.ZodArray<z.ZodObject<{
1086
+ label: z.ZodEffects<z.ZodString, string, unknown>;
1087
+ body: z.ZodEffects<z.ZodString, string, unknown>;
1088
+ }, "strip", z.ZodTypeAny, {
1089
+ label: string;
1090
+ body: string;
1091
+ }, {
1092
+ label?: unknown;
1093
+ body?: unknown;
1094
+ }>, "many">, {
1095
+ label: string;
1096
+ body: string;
1097
+ }[], unknown>;
1098
+ }, "strip", z.ZodTypeAny, {
1099
+ tabs: {
1100
+ label: string;
1101
+ body: string;
1102
+ }[];
1103
+ title?: string | undefined;
1104
+ }, {
1105
+ title?: unknown;
1106
+ tabs?: unknown;
1107
+ }>>, BlockDefinition<"accordion", z.ZodObject<{
1108
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
1109
+ items: z.ZodEffects<z.ZodArray<z.ZodObject<{
1110
+ title: z.ZodEffects<z.ZodString, string, unknown>;
1111
+ body: z.ZodEffects<z.ZodString, string, unknown>;
1112
+ open: z.ZodOptional<z.ZodBoolean>;
1113
+ }, "strip", z.ZodTypeAny, {
1114
+ title: string;
1115
+ body: string;
1116
+ open?: boolean | undefined;
1117
+ }, {
1118
+ title?: unknown;
1119
+ body?: unknown;
1120
+ open?: boolean | undefined;
1121
+ }>, "many">, {
1122
+ title: string;
1123
+ body: string;
1124
+ open?: boolean | undefined;
1125
+ }[], unknown>;
1126
+ }, "strip", z.ZodTypeAny, {
1127
+ items: {
1128
+ title: string;
1129
+ body: string;
1130
+ open?: boolean | undefined;
1131
+ }[];
1132
+ title?: string | undefined;
1133
+ }, {
1134
+ title?: unknown;
1135
+ items?: unknown;
1136
+ }>>, BlockDefinition<"code", z.ZodObject<{
1137
+ title: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
1138
+ language: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
1139
+ code: z.ZodString;
1140
+ note: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
1141
+ }, "strip", z.ZodTypeAny, {
1142
+ code: string;
1143
+ title?: string | undefined;
1144
+ note?: string | undefined;
1145
+ language?: string | undefined;
1146
+ }, {
1147
+ code: string;
1148
+ title?: unknown;
1149
+ note?: unknown;
1150
+ language?: unknown;
1151
+ }>>]>;
1152
+ export {};