@builder-builder/builder 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/README.md +38 -0
  2. package/dist/assert/assert.d.ts +28 -0
  3. package/dist/assert/assert.js +28 -0
  4. package/dist/assert/expectation.d.ts +20 -0
  5. package/dist/assert/expectation.js +21 -0
  6. package/dist/assert/index.d.ts +3 -0
  7. package/dist/assert/index.js +2 -0
  8. package/dist/config.d.ts +14 -0
  9. package/dist/config.js +1 -0
  10. package/dist/core/builder.d.ts +61 -0
  11. package/dist/core/builder.js +72 -0
  12. package/dist/core/collection/collection.d.ts +33 -0
  13. package/dist/core/collection/collection.js +55 -0
  14. package/dist/core/collection/index.d.ts +4 -0
  15. package/dist/core/collection/index.js +2 -0
  16. package/dist/core/collection/method.d.ts +51 -0
  17. package/dist/core/collection/method.js +11 -0
  18. package/dist/core/component/component.d.ts +14 -0
  19. package/dist/core/component/component.js +17 -0
  20. package/dist/core/component/graph.d.ts +13 -0
  21. package/dist/core/component/graph.js +52 -0
  22. package/dist/core/component/index.d.ts +4 -0
  23. package/dist/core/component/index.js +2 -0
  24. package/dist/core/component/method.d.ts +13 -0
  25. package/dist/core/component/method.js +1 -0
  26. package/dist/core/graph.d.ts +8 -0
  27. package/dist/core/graph.js +1 -0
  28. package/dist/core/index.d.ts +8 -0
  29. package/dist/core/index.js +4 -0
  30. package/dist/core/option/graph.d.ts +11 -0
  31. package/dist/core/option/graph.js +78 -0
  32. package/dist/core/option/index.d.ts +9 -0
  33. package/dist/core/option/index.js +5 -0
  34. package/dist/core/option/method.d.ts +52 -0
  35. package/dist/core/option/method.js +9 -0
  36. package/dist/core/option/option.d.ts +22 -0
  37. package/dist/core/option/option.js +49 -0
  38. package/dist/core/option/select.d.ts +17 -0
  39. package/dist/core/option/select.js +30 -0
  40. package/dist/core/option/toggle.d.ts +14 -0
  41. package/dist/core/option/toggle.js +27 -0
  42. package/dist/index.d.ts +16 -0
  43. package/dist/index.js +6 -0
  44. package/dist/invariant.d.ts +1 -0
  45. package/dist/invariant.js +6 -0
  46. package/dist/paths.d.ts +14 -0
  47. package/dist/paths.js +8 -0
  48. package/dist/prettify.d.ts +3 -0
  49. package/dist/prettify.js +1 -0
  50. package/dist/resolve/index.d.ts +9 -0
  51. package/dist/resolve/index.js +5 -0
  52. package/dist/resolve/instance.d.ts +3 -0
  53. package/dist/resolve/instance.js +26 -0
  54. package/dist/resolve/models.d.ts +3 -0
  55. package/dist/resolve/models.js +10 -0
  56. package/dist/resolve/order.d.ts +18 -0
  57. package/dist/resolve/order.js +24 -0
  58. package/dist/resolve/render.d.ts +21 -0
  59. package/dist/resolve/render.js +182 -0
  60. package/dist/resolve/validate.d.ts +32 -0
  61. package/dist/resolve/validate.js +50 -0
  62. package/dist/schemas/description.d.ts +5 -0
  63. package/dist/schemas/description.js +3 -0
  64. package/dist/schemas/index.d.ts +10 -0
  65. package/dist/schemas/index.js +5 -0
  66. package/dist/schemas/layout.d.ts +52 -0
  67. package/dist/schemas/layout.js +6 -0
  68. package/dist/schemas/primitives.d.ts +9 -0
  69. package/dist/schemas/primitives.js +5 -0
  70. package/dist/schemas/serialise.d.ts +1077 -0
  71. package/dist/schemas/serialise.js +141 -0
  72. package/dist/schemas/ui.d.ts +96 -0
  73. package/dist/schemas/ui.js +23 -0
  74. package/dist/serialise/deserialise.d.ts +9 -0
  75. package/dist/serialise/deserialise.js +108 -0
  76. package/dist/serialise/index.d.ts +4 -0
  77. package/dist/serialise/index.js +3 -0
  78. package/dist/serialise/serialise.d.ts +10 -0
  79. package/dist/serialise/serialise.js +123 -0
  80. package/dist/ui.d.ts +18 -0
  81. package/dist/ui.js +35 -0
  82. package/package.json +70 -0
@@ -0,0 +1,1077 @@
1
+ import * as v from 'valibot';
2
+ import { BuilderPathSchema, BuilderPathsSchema } from './primitives.js';
3
+ export declare const BuilderSelectTypeSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
4
+ readonly type: v.LiteralSchema<"select", undefined>;
5
+ readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
6
+ readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
7
+ readonly optional: v.BooleanSchema<undefined>;
8
+ readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
9
+ }, undefined>, v.ReadonlyAction<{
10
+ type: "select";
11
+ readonly options: readonly [string, ...string[]];
12
+ defaultValue: string | null;
13
+ optional: boolean;
14
+ labels: {
15
+ [x: string]: string;
16
+ };
17
+ }>]>;
18
+ export type BuilderSelectTypeSerialised = v.InferOutput<typeof BuilderSelectTypeSerialisedSchema>;
19
+ export declare const BuilderToggleTypeSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
20
+ readonly type: v.LiteralSchema<"toggle", undefined>;
21
+ readonly valueType: v.StringSchema<undefined>;
22
+ readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
23
+ readonly optional: v.BooleanSchema<undefined>;
24
+ }, undefined>, v.ReadonlyAction<{
25
+ type: "toggle";
26
+ valueType: string;
27
+ defaultValue: string | number | boolean | null;
28
+ optional: boolean;
29
+ }>]>;
30
+ export type BuilderToggleTypeSerialised = v.InferOutput<typeof BuilderToggleTypeSerialisedSchema>;
31
+ export declare const BuilderValuesSerialisedSchema: v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.ObjectSchema<{
32
+ readonly type: v.LiteralSchema<"select", undefined>;
33
+ readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
34
+ readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
35
+ readonly optional: v.BooleanSchema<undefined>;
36
+ readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
37
+ }, undefined>, v.ObjectSchema<{
38
+ readonly type: v.LiteralSchema<"toggle", undefined>;
39
+ readonly valueType: v.StringSchema<undefined>;
40
+ readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
41
+ readonly optional: v.BooleanSchema<undefined>;
42
+ }, undefined>], undefined>, v.ReadonlyAction<{
43
+ type: "select";
44
+ readonly options: readonly [string, ...string[]];
45
+ defaultValue: string | null;
46
+ optional: boolean;
47
+ labels: {
48
+ [x: string]: string;
49
+ };
50
+ } | {
51
+ type: "toggle";
52
+ valueType: string;
53
+ defaultValue: string | number | boolean | null;
54
+ optional: boolean;
55
+ }>]>;
56
+ export type BuilderValuesSerialised = v.InferOutput<typeof BuilderValuesSerialisedSchema>;
57
+ export declare const BuilderOptionEnableConfigSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
58
+ readonly type: v.LiteralSchema<"enable", undefined>;
59
+ readonly values: v.VariantSchema<"type", [v.ObjectSchema<{
60
+ readonly type: v.LiteralSchema<"select", undefined>;
61
+ readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
62
+ readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
63
+ readonly optional: v.BooleanSchema<undefined>;
64
+ readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
65
+ }, undefined>, v.ObjectSchema<{
66
+ readonly type: v.LiteralSchema<"toggle", undefined>;
67
+ readonly valueType: v.StringSchema<undefined>;
68
+ readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
69
+ readonly optional: v.BooleanSchema<undefined>;
70
+ }, undefined>], undefined>;
71
+ }, undefined>, v.ReadonlyAction<{
72
+ type: "enable";
73
+ values: {
74
+ type: "select";
75
+ readonly options: readonly [string, ...string[]];
76
+ defaultValue: string | null;
77
+ optional: boolean;
78
+ labels: {
79
+ [x: string]: string;
80
+ };
81
+ } | {
82
+ type: "toggle";
83
+ valueType: string;
84
+ defaultValue: string | number | boolean | null;
85
+ optional: boolean;
86
+ };
87
+ }>]>;
88
+ export type BuilderOptionEnableConfigSerialised = v.InferOutput<typeof BuilderOptionEnableConfigSerialisedSchema>;
89
+ export declare const BuilderOptionMatchConfigSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
90
+ readonly type: v.LiteralSchema<"match", undefined>;
91
+ readonly matchPath: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>;
92
+ readonly selectMap: v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
93
+ readonly type: v.LiteralSchema<"select", undefined>;
94
+ readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
95
+ readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
96
+ readonly optional: v.BooleanSchema<undefined>;
97
+ readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
98
+ }, undefined>, v.ObjectSchema<{
99
+ readonly type: v.LiteralSchema<"toggle", undefined>;
100
+ readonly valueType: v.StringSchema<undefined>;
101
+ readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
102
+ readonly optional: v.BooleanSchema<undefined>;
103
+ }, undefined>], undefined>, undefined>, undefined>;
104
+ }, undefined>, v.ReadonlyAction<{
105
+ type: "match";
106
+ readonly matchPath: readonly (string | number)[];
107
+ selectMap: {
108
+ [x: string]: {
109
+ type: "select";
110
+ readonly options: readonly [string, ...string[]];
111
+ defaultValue: string | null;
112
+ optional: boolean;
113
+ labels: {
114
+ [x: string]: string;
115
+ };
116
+ } | {
117
+ type: "toggle";
118
+ valueType: string;
119
+ defaultValue: string | number | boolean | null;
120
+ optional: boolean;
121
+ } | null;
122
+ };
123
+ }>]>;
124
+ export type BuilderOptionMatchConfigSerialised = v.InferOutput<typeof BuilderOptionMatchConfigSerialisedSchema>;
125
+ export declare const BuilderOptionUnlessConfigSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
126
+ readonly type: v.LiteralSchema<"unless", undefined>;
127
+ readonly unlessPath: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>;
128
+ readonly disabledValues: v.SchemaWithPipe<readonly [v.ArraySchema<v.NullableSchema<v.UnionSchema<[v.StringSchema<undefined>, v.BooleanSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, undefined>, v.ReadonlyAction<(string | number | boolean | null)[]>]>;
129
+ readonly values: v.VariantSchema<"type", [v.ObjectSchema<{
130
+ readonly type: v.LiteralSchema<"select", undefined>;
131
+ readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
132
+ readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
133
+ readonly optional: v.BooleanSchema<undefined>;
134
+ readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
135
+ }, undefined>, v.ObjectSchema<{
136
+ readonly type: v.LiteralSchema<"toggle", undefined>;
137
+ readonly valueType: v.StringSchema<undefined>;
138
+ readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
139
+ readonly optional: v.BooleanSchema<undefined>;
140
+ }, undefined>], undefined>;
141
+ }, undefined>, v.ReadonlyAction<{
142
+ type: "unless";
143
+ readonly unlessPath: readonly (string | number)[];
144
+ readonly disabledValues: readonly (string | number | boolean | null)[];
145
+ values: {
146
+ type: "select";
147
+ readonly options: readonly [string, ...string[]];
148
+ defaultValue: string | null;
149
+ optional: boolean;
150
+ labels: {
151
+ [x: string]: string;
152
+ };
153
+ } | {
154
+ type: "toggle";
155
+ valueType: string;
156
+ defaultValue: string | number | boolean | null;
157
+ optional: boolean;
158
+ };
159
+ }>]>;
160
+ export type BuilderOptionUnlessConfigSerialised = v.InferOutput<typeof BuilderOptionUnlessConfigSerialisedSchema>;
161
+ export declare const BuilderOptionWhenConfigSerialisedSchema: v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.ObjectSchema<{
162
+ readonly type: v.LiteralSchema<"enable", undefined>;
163
+ readonly values: v.VariantSchema<"type", [v.ObjectSchema<{
164
+ readonly type: v.LiteralSchema<"select", undefined>;
165
+ readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
166
+ readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
167
+ readonly optional: v.BooleanSchema<undefined>;
168
+ readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
169
+ }, undefined>, v.ObjectSchema<{
170
+ readonly type: v.LiteralSchema<"toggle", undefined>;
171
+ readonly valueType: v.StringSchema<undefined>;
172
+ readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
173
+ readonly optional: v.BooleanSchema<undefined>;
174
+ }, undefined>], undefined>;
175
+ }, undefined>, v.ObjectSchema<{
176
+ readonly type: v.LiteralSchema<"match", undefined>;
177
+ readonly matchPath: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>;
178
+ readonly selectMap: v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
179
+ readonly type: v.LiteralSchema<"select", undefined>;
180
+ readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
181
+ readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
182
+ readonly optional: v.BooleanSchema<undefined>;
183
+ readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
184
+ }, undefined>, v.ObjectSchema<{
185
+ readonly type: v.LiteralSchema<"toggle", undefined>;
186
+ readonly valueType: v.StringSchema<undefined>;
187
+ readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
188
+ readonly optional: v.BooleanSchema<undefined>;
189
+ }, undefined>], undefined>, undefined>, undefined>;
190
+ }, undefined>, v.ObjectSchema<{
191
+ readonly type: v.LiteralSchema<"unless", undefined>;
192
+ readonly unlessPath: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>;
193
+ readonly disabledValues: v.SchemaWithPipe<readonly [v.ArraySchema<v.NullableSchema<v.UnionSchema<[v.StringSchema<undefined>, v.BooleanSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, undefined>, v.ReadonlyAction<(string | number | boolean | null)[]>]>;
194
+ readonly values: v.VariantSchema<"type", [v.ObjectSchema<{
195
+ readonly type: v.LiteralSchema<"select", undefined>;
196
+ readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
197
+ readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
198
+ readonly optional: v.BooleanSchema<undefined>;
199
+ readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
200
+ }, undefined>, v.ObjectSchema<{
201
+ readonly type: v.LiteralSchema<"toggle", undefined>;
202
+ readonly valueType: v.StringSchema<undefined>;
203
+ readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
204
+ readonly optional: v.BooleanSchema<undefined>;
205
+ }, undefined>], undefined>;
206
+ }, undefined>], undefined>, v.ReadonlyAction<{
207
+ type: "enable";
208
+ values: {
209
+ type: "select";
210
+ readonly options: readonly [string, ...string[]];
211
+ defaultValue: string | null;
212
+ optional: boolean;
213
+ labels: {
214
+ [x: string]: string;
215
+ };
216
+ } | {
217
+ type: "toggle";
218
+ valueType: string;
219
+ defaultValue: string | number | boolean | null;
220
+ optional: boolean;
221
+ };
222
+ } | {
223
+ type: "match";
224
+ readonly matchPath: readonly (string | number)[];
225
+ selectMap: {
226
+ [x: string]: {
227
+ type: "select";
228
+ readonly options: readonly [string, ...string[]];
229
+ defaultValue: string | null;
230
+ optional: boolean;
231
+ labels: {
232
+ [x: string]: string;
233
+ };
234
+ } | {
235
+ type: "toggle";
236
+ valueType: string;
237
+ defaultValue: string | number | boolean | null;
238
+ optional: boolean;
239
+ } | null;
240
+ };
241
+ } | {
242
+ type: "unless";
243
+ readonly unlessPath: readonly (string | number)[];
244
+ readonly disabledValues: readonly (string | number | boolean | null)[];
245
+ values: {
246
+ type: "select";
247
+ readonly options: readonly [string, ...string[]];
248
+ defaultValue: string | null;
249
+ optional: boolean;
250
+ labels: {
251
+ [x: string]: string;
252
+ };
253
+ } | {
254
+ type: "toggle";
255
+ valueType: string;
256
+ defaultValue: string | number | boolean | null;
257
+ optional: boolean;
258
+ };
259
+ }>]>;
260
+ export type BuilderOptionWhenConfigSerialised = v.InferOutput<typeof BuilderOptionWhenConfigSerialisedSchema>;
261
+ export declare const BuilderOptionSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
262
+ readonly name: v.StringSchema<undefined>;
263
+ readonly values: v.VariantSchema<"type", [v.ObjectSchema<{
264
+ readonly type: v.LiteralSchema<"select", undefined>;
265
+ readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
266
+ readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
267
+ readonly optional: v.BooleanSchema<undefined>;
268
+ readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
269
+ }, undefined>, v.ObjectSchema<{
270
+ readonly type: v.LiteralSchema<"toggle", undefined>;
271
+ readonly valueType: v.StringSchema<undefined>;
272
+ readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
273
+ readonly optional: v.BooleanSchema<undefined>;
274
+ }, undefined>], undefined>;
275
+ readonly gatePaths: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>, undefined>, v.ReadonlyAction<(readonly (string | number)[])[]>]>;
276
+ readonly config: v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
277
+ readonly type: v.LiteralSchema<"enable", undefined>;
278
+ readonly values: v.VariantSchema<"type", [v.ObjectSchema<{
279
+ readonly type: v.LiteralSchema<"select", undefined>;
280
+ readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
281
+ readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
282
+ readonly optional: v.BooleanSchema<undefined>;
283
+ readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
284
+ }, undefined>, v.ObjectSchema<{
285
+ readonly type: v.LiteralSchema<"toggle", undefined>;
286
+ readonly valueType: v.StringSchema<undefined>;
287
+ readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
288
+ readonly optional: v.BooleanSchema<undefined>;
289
+ }, undefined>], undefined>;
290
+ }, undefined>, v.ObjectSchema<{
291
+ readonly type: v.LiteralSchema<"match", undefined>;
292
+ readonly matchPath: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>;
293
+ readonly selectMap: v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
294
+ readonly type: v.LiteralSchema<"select", undefined>;
295
+ readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
296
+ readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
297
+ readonly optional: v.BooleanSchema<undefined>;
298
+ readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
299
+ }, undefined>, v.ObjectSchema<{
300
+ readonly type: v.LiteralSchema<"toggle", undefined>;
301
+ readonly valueType: v.StringSchema<undefined>;
302
+ readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
303
+ readonly optional: v.BooleanSchema<undefined>;
304
+ }, undefined>], undefined>, undefined>, undefined>;
305
+ }, undefined>, v.ObjectSchema<{
306
+ readonly type: v.LiteralSchema<"unless", undefined>;
307
+ readonly unlessPath: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>;
308
+ readonly disabledValues: v.SchemaWithPipe<readonly [v.ArraySchema<v.NullableSchema<v.UnionSchema<[v.StringSchema<undefined>, v.BooleanSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, undefined>, v.ReadonlyAction<(string | number | boolean | null)[]>]>;
309
+ readonly values: v.VariantSchema<"type", [v.ObjectSchema<{
310
+ readonly type: v.LiteralSchema<"select", undefined>;
311
+ readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
312
+ readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
313
+ readonly optional: v.BooleanSchema<undefined>;
314
+ readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
315
+ }, undefined>, v.ObjectSchema<{
316
+ readonly type: v.LiteralSchema<"toggle", undefined>;
317
+ readonly valueType: v.StringSchema<undefined>;
318
+ readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
319
+ readonly optional: v.BooleanSchema<undefined>;
320
+ }, undefined>], undefined>;
321
+ }, undefined>], undefined>, undefined>;
322
+ }, undefined>, v.ReadonlyAction<{
323
+ name: string;
324
+ values: {
325
+ type: "select";
326
+ readonly options: readonly [string, ...string[]];
327
+ defaultValue: string | null;
328
+ optional: boolean;
329
+ labels: {
330
+ [x: string]: string;
331
+ };
332
+ } | {
333
+ type: "toggle";
334
+ valueType: string;
335
+ defaultValue: string | number | boolean | null;
336
+ optional: boolean;
337
+ };
338
+ readonly gatePaths: readonly (readonly (string | number)[])[];
339
+ config: {
340
+ type: "enable";
341
+ values: {
342
+ type: "select";
343
+ readonly options: readonly [string, ...string[]];
344
+ defaultValue: string | null;
345
+ optional: boolean;
346
+ labels: {
347
+ [x: string]: string;
348
+ };
349
+ } | {
350
+ type: "toggle";
351
+ valueType: string;
352
+ defaultValue: string | number | boolean | null;
353
+ optional: boolean;
354
+ };
355
+ } | {
356
+ type: "match";
357
+ readonly matchPath: readonly (string | number)[];
358
+ selectMap: {
359
+ [x: string]: {
360
+ type: "select";
361
+ readonly options: readonly [string, ...string[]];
362
+ defaultValue: string | null;
363
+ optional: boolean;
364
+ labels: {
365
+ [x: string]: string;
366
+ };
367
+ } | {
368
+ type: "toggle";
369
+ valueType: string;
370
+ defaultValue: string | number | boolean | null;
371
+ optional: boolean;
372
+ } | null;
373
+ };
374
+ } | {
375
+ type: "unless";
376
+ readonly unlessPath: readonly (string | number)[];
377
+ readonly disabledValues: readonly (string | number | boolean | null)[];
378
+ values: {
379
+ type: "select";
380
+ readonly options: readonly [string, ...string[]];
381
+ defaultValue: string | null;
382
+ optional: boolean;
383
+ labels: {
384
+ [x: string]: string;
385
+ };
386
+ } | {
387
+ type: "toggle";
388
+ valueType: string;
389
+ defaultValue: string | number | boolean | null;
390
+ optional: boolean;
391
+ };
392
+ } | null;
393
+ }>]>;
394
+ export type BuilderOptionSerialised = v.InferOutput<typeof BuilderOptionSerialisedSchema>;
395
+ export declare const BuilderComponentSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
396
+ readonly name: v.StringSchema<undefined>;
397
+ readonly paths: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>, undefined>, v.ReadonlyAction<(readonly (string | number)[])[]>]>;
398
+ readonly dependencies: v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>;
399
+ }, undefined>, v.ReadonlyAction<{
400
+ name: string;
401
+ readonly paths: readonly (readonly (string | number)[])[];
402
+ readonly dependencies: readonly string[];
403
+ }>]>;
404
+ export type BuilderComponentSerialised = v.InferOutput<typeof BuilderComponentSerialisedSchema>;
405
+ export type BuilderCollectionConfigSerialised = {
406
+ readonly builder: BuilderSerialised;
407
+ readonly min: number;
408
+ readonly max: number;
409
+ };
410
+ export type BuilderCollectionEnableConfigSerialised = {
411
+ readonly type: 'enable';
412
+ readonly builder: BuilderSerialised;
413
+ readonly min: number;
414
+ readonly max: number;
415
+ };
416
+ export type BuilderCollectionMatchConfigSerialised = {
417
+ readonly type: 'match';
418
+ readonly matchPath: v.InferOutput<typeof BuilderPathSchema>;
419
+ readonly selectMap: Record<string, BuilderCollectionConfigSerialised | null>;
420
+ };
421
+ export type BuilderCollectionUnlessConfigSerialised = {
422
+ readonly type: 'unless';
423
+ readonly unlessPath: v.InferOutput<typeof BuilderPathSchema>;
424
+ readonly disabledValues: ReadonlyArray<string | boolean | number | null>;
425
+ readonly builder: BuilderSerialised;
426
+ readonly min: number;
427
+ readonly max: number;
428
+ };
429
+ export type BuilderCollectionWhenConfigSerialised = BuilderCollectionEnableConfigSerialised | BuilderCollectionMatchConfigSerialised | BuilderCollectionUnlessConfigSerialised;
430
+ export type BuilderCollectionSerialised = {
431
+ readonly name: string;
432
+ readonly builder: BuilderSerialised;
433
+ readonly min: number;
434
+ readonly max: number;
435
+ readonly gatePaths: v.InferOutput<typeof BuilderPathsSchema>;
436
+ readonly config: BuilderCollectionWhenConfigSerialised | null;
437
+ };
438
+ export type BuilderSerialised = {
439
+ readonly options: ReadonlyArray<BuilderOptionSerialised>;
440
+ readonly components: ReadonlyArray<BuilderComponentSerialised>;
441
+ readonly collections: ReadonlyArray<BuilderCollectionSerialised>;
442
+ };
443
+ type SerialisedSchemaType = v.GenericSchema<BuilderSerialised, BuilderSerialised>;
444
+ export declare const BuilderCollectionConfigSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
445
+ readonly builder: v.LazySchema<SerialisedSchemaType>;
446
+ readonly min: v.NumberSchema<undefined>;
447
+ readonly max: v.NumberSchema<undefined>;
448
+ }, undefined>, v.ReadonlyAction<{
449
+ builder: BuilderSerialised;
450
+ min: number;
451
+ max: number;
452
+ }>]>;
453
+ export declare const BuilderCollectionEnableConfigSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
454
+ readonly type: v.LiteralSchema<"enable", undefined>;
455
+ readonly builder: v.LazySchema<SerialisedSchemaType>;
456
+ readonly min: v.NumberSchema<undefined>;
457
+ readonly max: v.NumberSchema<undefined>;
458
+ }, undefined>, v.ReadonlyAction<{
459
+ type: "enable";
460
+ builder: BuilderSerialised;
461
+ min: number;
462
+ max: number;
463
+ }>]>;
464
+ export declare const BuilderCollectionMatchConfigSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
465
+ readonly type: v.LiteralSchema<"match", undefined>;
466
+ readonly matchPath: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>;
467
+ readonly selectMap: v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.ObjectSchema<{
468
+ readonly builder: v.LazySchema<SerialisedSchemaType>;
469
+ readonly min: v.NumberSchema<undefined>;
470
+ readonly max: v.NumberSchema<undefined>;
471
+ }, undefined>, undefined>, undefined>;
472
+ }, undefined>, v.ReadonlyAction<{
473
+ type: "match";
474
+ readonly matchPath: readonly (string | number)[];
475
+ selectMap: {
476
+ [x: string]: {
477
+ builder: BuilderSerialised;
478
+ min: number;
479
+ max: number;
480
+ } | null;
481
+ };
482
+ }>]>;
483
+ export declare const BuilderCollectionUnlessConfigSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
484
+ readonly type: v.LiteralSchema<"unless", undefined>;
485
+ readonly unlessPath: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>;
486
+ readonly disabledValues: v.SchemaWithPipe<readonly [v.ArraySchema<v.NullableSchema<v.UnionSchema<[v.StringSchema<undefined>, v.BooleanSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, undefined>, v.ReadonlyAction<(string | number | boolean | null)[]>]>;
487
+ readonly builder: v.LazySchema<SerialisedSchemaType>;
488
+ readonly min: v.NumberSchema<undefined>;
489
+ readonly max: v.NumberSchema<undefined>;
490
+ }, undefined>, v.ReadonlyAction<{
491
+ type: "unless";
492
+ readonly unlessPath: readonly (string | number)[];
493
+ readonly disabledValues: readonly (string | number | boolean | null)[];
494
+ builder: BuilderSerialised;
495
+ min: number;
496
+ max: number;
497
+ }>]>;
498
+ export declare const BuilderCollectionWhenConfigSerialisedSchema: v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.ObjectSchema<{
499
+ readonly type: v.LiteralSchema<"enable", undefined>;
500
+ readonly builder: v.LazySchema<SerialisedSchemaType>;
501
+ readonly min: v.NumberSchema<undefined>;
502
+ readonly max: v.NumberSchema<undefined>;
503
+ }, undefined>, v.ObjectSchema<{
504
+ readonly type: v.LiteralSchema<"match", undefined>;
505
+ readonly matchPath: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>;
506
+ readonly selectMap: v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.ObjectSchema<{
507
+ readonly builder: v.LazySchema<SerialisedSchemaType>;
508
+ readonly min: v.NumberSchema<undefined>;
509
+ readonly max: v.NumberSchema<undefined>;
510
+ }, undefined>, undefined>, undefined>;
511
+ }, undefined>, v.ObjectSchema<{
512
+ readonly type: v.LiteralSchema<"unless", undefined>;
513
+ readonly unlessPath: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>;
514
+ readonly disabledValues: v.SchemaWithPipe<readonly [v.ArraySchema<v.NullableSchema<v.UnionSchema<[v.StringSchema<undefined>, v.BooleanSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, undefined>, v.ReadonlyAction<(string | number | boolean | null)[]>]>;
515
+ readonly builder: v.LazySchema<SerialisedSchemaType>;
516
+ readonly min: v.NumberSchema<undefined>;
517
+ readonly max: v.NumberSchema<undefined>;
518
+ }, undefined>], undefined>, v.ReadonlyAction<{
519
+ type: "enable";
520
+ builder: BuilderSerialised;
521
+ min: number;
522
+ max: number;
523
+ } | {
524
+ type: "match";
525
+ readonly matchPath: readonly (string | number)[];
526
+ selectMap: {
527
+ [x: string]: {
528
+ builder: BuilderSerialised;
529
+ min: number;
530
+ max: number;
531
+ } | null;
532
+ };
533
+ } | {
534
+ type: "unless";
535
+ readonly unlessPath: readonly (string | number)[];
536
+ readonly disabledValues: readonly (string | number | boolean | null)[];
537
+ builder: BuilderSerialised;
538
+ min: number;
539
+ max: number;
540
+ }>]>;
541
+ export declare const BuilderCollectionSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
542
+ readonly name: v.StringSchema<undefined>;
543
+ readonly builder: v.LazySchema<SerialisedSchemaType>;
544
+ readonly min: v.NumberSchema<undefined>;
545
+ readonly max: v.NumberSchema<undefined>;
546
+ readonly gatePaths: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>, undefined>, v.ReadonlyAction<(readonly (string | number)[])[]>]>;
547
+ readonly config: v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
548
+ readonly type: v.LiteralSchema<"enable", undefined>;
549
+ readonly builder: v.LazySchema<SerialisedSchemaType>;
550
+ readonly min: v.NumberSchema<undefined>;
551
+ readonly max: v.NumberSchema<undefined>;
552
+ }, undefined>, v.ObjectSchema<{
553
+ readonly type: v.LiteralSchema<"match", undefined>;
554
+ readonly matchPath: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>;
555
+ readonly selectMap: v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.ObjectSchema<{
556
+ readonly builder: v.LazySchema<SerialisedSchemaType>;
557
+ readonly min: v.NumberSchema<undefined>;
558
+ readonly max: v.NumberSchema<undefined>;
559
+ }, undefined>, undefined>, undefined>;
560
+ }, undefined>, v.ObjectSchema<{
561
+ readonly type: v.LiteralSchema<"unless", undefined>;
562
+ readonly unlessPath: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>;
563
+ readonly disabledValues: v.SchemaWithPipe<readonly [v.ArraySchema<v.NullableSchema<v.UnionSchema<[v.StringSchema<undefined>, v.BooleanSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, undefined>, v.ReadonlyAction<(string | number | boolean | null)[]>]>;
564
+ readonly builder: v.LazySchema<SerialisedSchemaType>;
565
+ readonly min: v.NumberSchema<undefined>;
566
+ readonly max: v.NumberSchema<undefined>;
567
+ }, undefined>], undefined>, undefined>;
568
+ }, undefined>, v.ReadonlyAction<{
569
+ name: string;
570
+ builder: BuilderSerialised;
571
+ min: number;
572
+ max: number;
573
+ readonly gatePaths: readonly (readonly (string | number)[])[];
574
+ config: {
575
+ type: "enable";
576
+ builder: BuilderSerialised;
577
+ min: number;
578
+ max: number;
579
+ } | {
580
+ type: "match";
581
+ readonly matchPath: readonly (string | number)[];
582
+ selectMap: {
583
+ [x: string]: {
584
+ builder: BuilderSerialised;
585
+ min: number;
586
+ max: number;
587
+ } | null;
588
+ };
589
+ } | {
590
+ type: "unless";
591
+ readonly unlessPath: readonly (string | number)[];
592
+ readonly disabledValues: readonly (string | number | boolean | null)[];
593
+ builder: BuilderSerialised;
594
+ min: number;
595
+ max: number;
596
+ } | null;
597
+ }>]>;
598
+ export declare const BuilderSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
599
+ readonly options: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
600
+ readonly name: v.StringSchema<undefined>;
601
+ readonly values: v.VariantSchema<"type", [v.ObjectSchema<{
602
+ readonly type: v.LiteralSchema<"select", undefined>;
603
+ readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
604
+ readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
605
+ readonly optional: v.BooleanSchema<undefined>;
606
+ readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
607
+ }, undefined>, v.ObjectSchema<{
608
+ readonly type: v.LiteralSchema<"toggle", undefined>;
609
+ readonly valueType: v.StringSchema<undefined>;
610
+ readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
611
+ readonly optional: v.BooleanSchema<undefined>;
612
+ }, undefined>], undefined>;
613
+ readonly gatePaths: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>, undefined>, v.ReadonlyAction<(readonly (string | number)[])[]>]>;
614
+ readonly config: v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
615
+ readonly type: v.LiteralSchema<"enable", undefined>;
616
+ readonly values: v.VariantSchema<"type", [v.ObjectSchema<{
617
+ readonly type: v.LiteralSchema<"select", undefined>;
618
+ readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
619
+ readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
620
+ readonly optional: v.BooleanSchema<undefined>;
621
+ readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
622
+ }, undefined>, v.ObjectSchema<{
623
+ readonly type: v.LiteralSchema<"toggle", undefined>;
624
+ readonly valueType: v.StringSchema<undefined>;
625
+ readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
626
+ readonly optional: v.BooleanSchema<undefined>;
627
+ }, undefined>], undefined>;
628
+ }, undefined>, v.ObjectSchema<{
629
+ readonly type: v.LiteralSchema<"match", undefined>;
630
+ readonly matchPath: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>;
631
+ readonly selectMap: v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
632
+ readonly type: v.LiteralSchema<"select", undefined>;
633
+ readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
634
+ readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
635
+ readonly optional: v.BooleanSchema<undefined>;
636
+ readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
637
+ }, undefined>, v.ObjectSchema<{
638
+ readonly type: v.LiteralSchema<"toggle", undefined>;
639
+ readonly valueType: v.StringSchema<undefined>;
640
+ readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
641
+ readonly optional: v.BooleanSchema<undefined>;
642
+ }, undefined>], undefined>, undefined>, undefined>;
643
+ }, undefined>, v.ObjectSchema<{
644
+ readonly type: v.LiteralSchema<"unless", undefined>;
645
+ readonly unlessPath: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>;
646
+ readonly disabledValues: v.SchemaWithPipe<readonly [v.ArraySchema<v.NullableSchema<v.UnionSchema<[v.StringSchema<undefined>, v.BooleanSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, undefined>, v.ReadonlyAction<(string | number | boolean | null)[]>]>;
647
+ readonly values: v.VariantSchema<"type", [v.ObjectSchema<{
648
+ readonly type: v.LiteralSchema<"select", undefined>;
649
+ readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
650
+ readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
651
+ readonly optional: v.BooleanSchema<undefined>;
652
+ readonly labels: v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>;
653
+ }, undefined>, v.ObjectSchema<{
654
+ readonly type: v.LiteralSchema<"toggle", undefined>;
655
+ readonly valueType: v.StringSchema<undefined>;
656
+ readonly defaultValue: v.NullableSchema<v.UnionSchema<[v.BooleanSchema<undefined>, v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>;
657
+ readonly optional: v.BooleanSchema<undefined>;
658
+ }, undefined>], undefined>;
659
+ }, undefined>], undefined>, undefined>;
660
+ }, undefined>, v.ReadonlyAction<{
661
+ name: string;
662
+ values: {
663
+ type: "select";
664
+ readonly options: readonly [string, ...string[]];
665
+ defaultValue: string | null;
666
+ optional: boolean;
667
+ labels: {
668
+ [x: string]: string;
669
+ };
670
+ } | {
671
+ type: "toggle";
672
+ valueType: string;
673
+ defaultValue: string | number | boolean | null;
674
+ optional: boolean;
675
+ };
676
+ readonly gatePaths: readonly (readonly (string | number)[])[];
677
+ config: {
678
+ type: "enable";
679
+ values: {
680
+ type: "select";
681
+ readonly options: readonly [string, ...string[]];
682
+ defaultValue: string | null;
683
+ optional: boolean;
684
+ labels: {
685
+ [x: string]: string;
686
+ };
687
+ } | {
688
+ type: "toggle";
689
+ valueType: string;
690
+ defaultValue: string | number | boolean | null;
691
+ optional: boolean;
692
+ };
693
+ } | {
694
+ type: "match";
695
+ readonly matchPath: readonly (string | number)[];
696
+ selectMap: {
697
+ [x: string]: {
698
+ type: "select";
699
+ readonly options: readonly [string, ...string[]];
700
+ defaultValue: string | null;
701
+ optional: boolean;
702
+ labels: {
703
+ [x: string]: string;
704
+ };
705
+ } | {
706
+ type: "toggle";
707
+ valueType: string;
708
+ defaultValue: string | number | boolean | null;
709
+ optional: boolean;
710
+ } | null;
711
+ };
712
+ } | {
713
+ type: "unless";
714
+ readonly unlessPath: readonly (string | number)[];
715
+ readonly disabledValues: readonly (string | number | boolean | null)[];
716
+ values: {
717
+ type: "select";
718
+ readonly options: readonly [string, ...string[]];
719
+ defaultValue: string | null;
720
+ optional: boolean;
721
+ labels: {
722
+ [x: string]: string;
723
+ };
724
+ } | {
725
+ type: "toggle";
726
+ valueType: string;
727
+ defaultValue: string | number | boolean | null;
728
+ optional: boolean;
729
+ };
730
+ } | null;
731
+ }>]>, undefined>, v.ReadonlyAction<Readonly<{
732
+ name: string;
733
+ values: {
734
+ type: "select";
735
+ readonly options: readonly [string, ...string[]];
736
+ defaultValue: string | null;
737
+ optional: boolean;
738
+ labels: {
739
+ [x: string]: string;
740
+ };
741
+ } | {
742
+ type: "toggle";
743
+ valueType: string;
744
+ defaultValue: string | number | boolean | null;
745
+ optional: boolean;
746
+ };
747
+ readonly gatePaths: readonly (readonly (string | number)[])[];
748
+ config: {
749
+ type: "enable";
750
+ values: {
751
+ type: "select";
752
+ readonly options: readonly [string, ...string[]];
753
+ defaultValue: string | null;
754
+ optional: boolean;
755
+ labels: {
756
+ [x: string]: string;
757
+ };
758
+ } | {
759
+ type: "toggle";
760
+ valueType: string;
761
+ defaultValue: string | number | boolean | null;
762
+ optional: boolean;
763
+ };
764
+ } | {
765
+ type: "match";
766
+ readonly matchPath: readonly (string | number)[];
767
+ selectMap: {
768
+ [x: string]: {
769
+ type: "select";
770
+ readonly options: readonly [string, ...string[]];
771
+ defaultValue: string | null;
772
+ optional: boolean;
773
+ labels: {
774
+ [x: string]: string;
775
+ };
776
+ } | {
777
+ type: "toggle";
778
+ valueType: string;
779
+ defaultValue: string | number | boolean | null;
780
+ optional: boolean;
781
+ } | null;
782
+ };
783
+ } | {
784
+ type: "unless";
785
+ readonly unlessPath: readonly (string | number)[];
786
+ readonly disabledValues: readonly (string | number | boolean | null)[];
787
+ values: {
788
+ type: "select";
789
+ readonly options: readonly [string, ...string[]];
790
+ defaultValue: string | null;
791
+ optional: boolean;
792
+ labels: {
793
+ [x: string]: string;
794
+ };
795
+ } | {
796
+ type: "toggle";
797
+ valueType: string;
798
+ defaultValue: string | number | boolean | null;
799
+ optional: boolean;
800
+ };
801
+ } | null;
802
+ }>[]>]>;
803
+ readonly components: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
804
+ readonly name: v.StringSchema<undefined>;
805
+ readonly paths: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>, undefined>, v.ReadonlyAction<(readonly (string | number)[])[]>]>;
806
+ readonly dependencies: v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ReadonlyAction<string[]>]>;
807
+ }, undefined>, v.ReadonlyAction<{
808
+ name: string;
809
+ readonly paths: readonly (readonly (string | number)[])[];
810
+ readonly dependencies: readonly string[];
811
+ }>]>, undefined>, v.ReadonlyAction<Readonly<{
812
+ name: string;
813
+ readonly paths: readonly (readonly (string | number)[])[];
814
+ readonly dependencies: readonly string[];
815
+ }>[]>]>;
816
+ readonly collections: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
817
+ readonly name: v.StringSchema<undefined>;
818
+ readonly builder: v.LazySchema<SerialisedSchemaType>;
819
+ readonly min: v.NumberSchema<undefined>;
820
+ readonly max: v.NumberSchema<undefined>;
821
+ readonly gatePaths: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>, undefined>, v.ReadonlyAction<(readonly (string | number)[])[]>]>;
822
+ readonly config: v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
823
+ readonly type: v.LiteralSchema<"enable", undefined>;
824
+ readonly builder: v.LazySchema<SerialisedSchemaType>;
825
+ readonly min: v.NumberSchema<undefined>;
826
+ readonly max: v.NumberSchema<undefined>;
827
+ }, undefined>, v.ObjectSchema<{
828
+ readonly type: v.LiteralSchema<"match", undefined>;
829
+ readonly matchPath: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>;
830
+ readonly selectMap: v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.ObjectSchema<{
831
+ readonly builder: v.LazySchema<SerialisedSchemaType>;
832
+ readonly min: v.NumberSchema<undefined>;
833
+ readonly max: v.NumberSchema<undefined>;
834
+ }, undefined>, undefined>, undefined>;
835
+ }, undefined>, v.ObjectSchema<{
836
+ readonly type: v.LiteralSchema<"unless", undefined>;
837
+ readonly unlessPath: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>;
838
+ readonly disabledValues: v.SchemaWithPipe<readonly [v.ArraySchema<v.NullableSchema<v.UnionSchema<[v.StringSchema<undefined>, v.BooleanSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, undefined>, v.ReadonlyAction<(string | number | boolean | null)[]>]>;
839
+ readonly builder: v.LazySchema<SerialisedSchemaType>;
840
+ readonly min: v.NumberSchema<undefined>;
841
+ readonly max: v.NumberSchema<undefined>;
842
+ }, undefined>], undefined>, undefined>;
843
+ }, undefined>, undefined>, v.ReadonlyAction<{
844
+ name: string;
845
+ builder: BuilderSerialised;
846
+ min: number;
847
+ max: number;
848
+ readonly gatePaths: readonly (readonly (string | number)[])[];
849
+ config: {
850
+ type: "enable";
851
+ builder: BuilderSerialised;
852
+ min: number;
853
+ max: number;
854
+ } | {
855
+ type: "match";
856
+ readonly matchPath: readonly (string | number)[];
857
+ selectMap: {
858
+ [x: string]: {
859
+ builder: BuilderSerialised;
860
+ min: number;
861
+ max: number;
862
+ } | null;
863
+ };
864
+ } | {
865
+ type: "unless";
866
+ readonly unlessPath: readonly (string | number)[];
867
+ readonly disabledValues: readonly (string | number | boolean | null)[];
868
+ builder: BuilderSerialised;
869
+ min: number;
870
+ max: number;
871
+ } | null;
872
+ }[]>]>;
873
+ }, undefined>, v.ReadonlyAction<{
874
+ readonly options: readonly Readonly<{
875
+ name: string;
876
+ values: {
877
+ type: "select";
878
+ readonly options: readonly [string, ...string[]];
879
+ defaultValue: string | null;
880
+ optional: boolean;
881
+ labels: {
882
+ [x: string]: string;
883
+ };
884
+ } | {
885
+ type: "toggle";
886
+ valueType: string;
887
+ defaultValue: string | number | boolean | null;
888
+ optional: boolean;
889
+ };
890
+ readonly gatePaths: readonly (readonly (string | number)[])[];
891
+ config: {
892
+ type: "enable";
893
+ values: {
894
+ type: "select";
895
+ readonly options: readonly [string, ...string[]];
896
+ defaultValue: string | null;
897
+ optional: boolean;
898
+ labels: {
899
+ [x: string]: string;
900
+ };
901
+ } | {
902
+ type: "toggle";
903
+ valueType: string;
904
+ defaultValue: string | number | boolean | null;
905
+ optional: boolean;
906
+ };
907
+ } | {
908
+ type: "match";
909
+ readonly matchPath: readonly (string | number)[];
910
+ selectMap: {
911
+ [x: string]: {
912
+ type: "select";
913
+ readonly options: readonly [string, ...string[]];
914
+ defaultValue: string | null;
915
+ optional: boolean;
916
+ labels: {
917
+ [x: string]: string;
918
+ };
919
+ } | {
920
+ type: "toggle";
921
+ valueType: string;
922
+ defaultValue: string | number | boolean | null;
923
+ optional: boolean;
924
+ } | null;
925
+ };
926
+ } | {
927
+ type: "unless";
928
+ readonly unlessPath: readonly (string | number)[];
929
+ readonly disabledValues: readonly (string | number | boolean | null)[];
930
+ values: {
931
+ type: "select";
932
+ readonly options: readonly [string, ...string[]];
933
+ defaultValue: string | null;
934
+ optional: boolean;
935
+ labels: {
936
+ [x: string]: string;
937
+ };
938
+ } | {
939
+ type: "toggle";
940
+ valueType: string;
941
+ defaultValue: string | number | boolean | null;
942
+ optional: boolean;
943
+ };
944
+ } | null;
945
+ }>[];
946
+ readonly components: readonly Readonly<{
947
+ name: string;
948
+ readonly paths: readonly (readonly (string | number)[])[];
949
+ readonly dependencies: readonly string[];
950
+ }>[];
951
+ readonly collections: readonly {
952
+ name: string;
953
+ builder: BuilderSerialised;
954
+ min: number;
955
+ max: number;
956
+ readonly gatePaths: readonly (readonly (string | number)[])[];
957
+ config: {
958
+ type: "enable";
959
+ builder: BuilderSerialised;
960
+ min: number;
961
+ max: number;
962
+ } | {
963
+ type: "match";
964
+ readonly matchPath: readonly (string | number)[];
965
+ selectMap: {
966
+ [x: string]: {
967
+ builder: BuilderSerialised;
968
+ min: number;
969
+ max: number;
970
+ } | null;
971
+ };
972
+ } | {
973
+ type: "unless";
974
+ readonly unlessPath: readonly (string | number)[];
975
+ readonly disabledValues: readonly (string | number | boolean | null)[];
976
+ builder: BuilderSerialised;
977
+ min: number;
978
+ max: number;
979
+ } | null;
980
+ }[];
981
+ }>]>;
982
+ export type BuilderUICollectionSerialised = {
983
+ readonly type: 'collection';
984
+ readonly name: string;
985
+ readonly label: string;
986
+ readonly items: BuilderUIItemsSerialised;
987
+ };
988
+ export type BuilderUIItemSerialised = BuilderUIPageSerialised | BuilderUIDescribeSerialised | BuilderUICollectionSerialised;
989
+ export type BuilderUIItemsSerialised = ReadonlyArray<BuilderUIItemSerialised>;
990
+ export type BuilderUISerialised = BuilderUIItemsSerialised;
991
+ type UIItemsSerialisedSchemaType = v.GenericSchema<BuilderUIItemsSerialised, BuilderUIItemsSerialised>;
992
+ export declare const BuilderUIPageSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
993
+ readonly type: v.LiteralSchema<"page", undefined>;
994
+ readonly label: v.NullableSchema<v.StringSchema<undefined>, undefined>;
995
+ readonly paths: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>, undefined>, v.ReadonlyAction<(readonly (string | number)[])[]>]>;
996
+ }, undefined>, v.ReadonlyAction<{
997
+ type: "page";
998
+ label: string | null;
999
+ readonly paths: readonly (readonly (string | number)[])[];
1000
+ }>]>;
1001
+ export type BuilderUIPageSerialised = v.InferOutput<typeof BuilderUIPageSerialisedSchema>;
1002
+ export declare const BuilderUIDescribeSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
1003
+ readonly type: v.LiteralSchema<"describe", undefined>;
1004
+ readonly label: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1005
+ readonly paths: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>, undefined>, v.ReadonlyAction<(readonly (string | number)[])[]>]>;
1006
+ }, undefined>, v.ReadonlyAction<{
1007
+ type: "describe";
1008
+ label: string | null;
1009
+ readonly paths: readonly (readonly (string | number)[])[];
1010
+ }>]>;
1011
+ export type BuilderUIDescribeSerialised = v.InferOutput<typeof BuilderUIDescribeSerialisedSchema>;
1012
+ export declare const BuilderUICollectionSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
1013
+ readonly type: v.LiteralSchema<"collection", undefined>;
1014
+ readonly name: v.StringSchema<undefined>;
1015
+ readonly label: v.StringSchema<undefined>;
1016
+ readonly items: v.LazySchema<UIItemsSerialisedSchemaType>;
1017
+ }, undefined>, v.ReadonlyAction<{
1018
+ type: "collection";
1019
+ name: string;
1020
+ label: string;
1021
+ items: BuilderUIItemsSerialised;
1022
+ }>]>;
1023
+ export declare const BuilderUIItemSerialisedSchema: v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.ObjectSchema<{
1024
+ readonly type: v.LiteralSchema<"page", undefined>;
1025
+ readonly label: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1026
+ readonly paths: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>, undefined>, v.ReadonlyAction<(readonly (string | number)[])[]>]>;
1027
+ }, undefined>, v.ObjectSchema<{
1028
+ readonly type: v.LiteralSchema<"describe", undefined>;
1029
+ readonly label: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1030
+ readonly paths: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>, undefined>, v.ReadonlyAction<(readonly (string | number)[])[]>]>;
1031
+ }, undefined>, v.ObjectSchema<{
1032
+ readonly type: v.LiteralSchema<"collection", undefined>;
1033
+ readonly name: v.StringSchema<undefined>;
1034
+ readonly label: v.StringSchema<undefined>;
1035
+ readonly items: v.LazySchema<UIItemsSerialisedSchemaType>;
1036
+ }, undefined>], undefined>, v.ReadonlyAction<{
1037
+ type: "page";
1038
+ label: string | null;
1039
+ readonly paths: readonly (readonly (string | number)[])[];
1040
+ } | {
1041
+ type: "describe";
1042
+ label: string | null;
1043
+ readonly paths: readonly (readonly (string | number)[])[];
1044
+ } | {
1045
+ type: "collection";
1046
+ name: string;
1047
+ label: string;
1048
+ items: BuilderUIItemsSerialised;
1049
+ }>]>;
1050
+ export declare const BuilderUIItemsSerialisedSchema: v.SchemaWithPipe<readonly [v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
1051
+ readonly type: v.LiteralSchema<"page", undefined>;
1052
+ readonly label: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1053
+ readonly paths: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>, undefined>, v.ReadonlyAction<(readonly (string | number)[])[]>]>;
1054
+ }, undefined>, v.ObjectSchema<{
1055
+ readonly type: v.LiteralSchema<"describe", undefined>;
1056
+ readonly label: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1057
+ readonly paths: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, v.ReadonlyAction<(string | number)[]>]>, undefined>, v.ReadonlyAction<(readonly (string | number)[])[]>]>;
1058
+ }, undefined>, v.ObjectSchema<{
1059
+ readonly type: v.LiteralSchema<"collection", undefined>;
1060
+ readonly name: v.StringSchema<undefined>;
1061
+ readonly label: v.StringSchema<undefined>;
1062
+ readonly items: v.LazySchema<UIItemsSerialisedSchemaType>;
1063
+ }, undefined>], undefined>, undefined>, v.ReadonlyAction<({
1064
+ type: "page";
1065
+ label: string | null;
1066
+ readonly paths: readonly (readonly (string | number)[])[];
1067
+ } | {
1068
+ type: "describe";
1069
+ label: string | null;
1070
+ readonly paths: readonly (readonly (string | number)[])[];
1071
+ } | {
1072
+ type: "collection";
1073
+ name: string;
1074
+ label: string;
1075
+ items: BuilderUIItemsSerialised;
1076
+ })[]>]>;
1077
+ export {};