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