@builder-builder/builder 0.0.8 → 0.0.10

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 (83) hide show
  1. package/dist/entities/bind.d.ts +4 -0
  2. package/dist/entities/bind.js +44 -0
  3. package/dist/entities/builder/bind.d.ts +85 -0
  4. package/dist/entities/builder/bind.js +9 -0
  5. package/dist/entities/builder/builder.d.ts +111 -92
  6. package/dist/entities/builder/builder.js +11 -8
  7. package/dist/entities/builder/builders.d.ts +23 -8
  8. package/dist/entities/builder/builders.js +6 -5
  9. package/dist/entities/builder/index.d.ts +3 -3
  10. package/dist/entities/builder/index.js +1 -1
  11. package/dist/entities/builder/methods.d.ts +17 -17
  12. package/dist/entities/builder/state.d.ts +4 -4
  13. package/dist/entities/builder/validate.js +7 -7
  14. package/dist/entities/collection/collection.d.ts +6 -5
  15. package/dist/entities/collection/collection.js +6 -5
  16. package/dist/entities/collection/config.d.ts +280 -232
  17. package/dist/entities/collection/config.js +4 -4
  18. package/dist/entities/collection/index.d.ts +1 -1
  19. package/dist/entities/collection/index.js +1 -1
  20. package/dist/entities/collection/when.d.ts +5 -5
  21. package/dist/entities/component/component.d.ts +91 -90
  22. package/dist/entities/component/component.js +5 -4
  23. package/dist/entities/component/details.d.ts +16 -16
  24. package/dist/entities/component/details.js +2 -2
  25. package/dist/entities/component/index.d.ts +1 -1
  26. package/dist/entities/component/index.js +1 -1
  27. package/dist/entities/component/when.d.ts +5 -5
  28. package/dist/entities/index.d.ts +10 -8
  29. package/dist/entities/index.js +7 -6
  30. package/dist/entities/kind.d.ts +6 -0
  31. package/dist/entities/kind.js +6 -0
  32. package/dist/entities/option/index.d.ts +1 -1
  33. package/dist/entities/option/index.js +1 -1
  34. package/dist/entities/option/option.d.ts +39 -38
  35. package/dist/entities/option/option.js +5 -4
  36. package/dist/entities/option/values.d.ts +5 -7
  37. package/dist/entities/option/values.js +4 -4
  38. package/dist/entities/option/when.d.ts +5 -5
  39. package/dist/entities/serialise.d.ts +1582 -2226
  40. package/dist/entities/serialise.js +52 -22
  41. package/dist/entities/ui/bind.d.ts +10 -0
  42. package/dist/entities/ui/bind.js +9 -0
  43. package/dist/entities/ui/describe.d.ts +26 -51
  44. package/dist/entities/ui/describe.js +3 -4
  45. package/dist/entities/ui/index.d.ts +5 -7
  46. package/dist/entities/ui/index.js +2 -3
  47. package/dist/entities/ui/page.d.ts +26 -51
  48. package/dist/entities/ui/page.js +3 -4
  49. package/dist/entities/ui/pages.d.ts +17 -405
  50. package/dist/entities/ui/pages.js +6 -6
  51. package/dist/entities/ui/ui.d.ts +307 -688
  52. package/dist/entities/ui/ui.js +16 -17
  53. package/dist/entities/ui/uis.d.ts +11 -5
  54. package/dist/entities/ui/uis.js +9 -10
  55. package/dist/entities/ui/validate.d.ts +2 -2
  56. package/dist/entities/ui/validate.js +3 -3
  57. package/dist/entities/validate.d.ts +3 -3
  58. package/dist/entities/when.d.ts +45 -44
  59. package/dist/entities/when.js +10 -7
  60. package/dist/index.d.ts +19 -14
  61. package/dist/index.js +6 -2
  62. package/dist/mappers/assert/builder.js +13 -13
  63. package/dist/mappers/assert/ui.js +4 -4
  64. package/dist/mappers/index.d.ts +2 -0
  65. package/dist/mappers/index.js +1 -0
  66. package/dist/mappers/refs.d.ts +12 -0
  67. package/dist/mappers/refs.js +36 -0
  68. package/dist/mappers/render/render.js +3 -3
  69. package/dist/model.d.ts +29 -8
  70. package/dist/model.js +9 -1
  71. package/dist/references.d.ts +55 -29
  72. package/dist/references.js +25 -10
  73. package/dist/walker/walker.d.ts +13 -5
  74. package/dist/walker/walker.js +39 -27
  75. package/dist/walker/walkers.d.ts +4 -3
  76. package/dist/walker/walkers.js +18 -14
  77. package/package.json +10 -8
  78. package/dist/entities/builder/parameter.d.ts +0 -61
  79. package/dist/entities/builder/parameter.js +0 -18
  80. package/dist/entities/ui/label.d.ts +0 -18
  81. package/dist/entities/ui/label.js +0 -12
  82. package/dist/entities/ui/parameter.d.ts +0 -7
  83. package/dist/entities/ui/parameter.js +0 -29
@@ -1,7 +1,7 @@
1
1
  import type { BuilderGeneric } from '../builder/index';
2
- import type { Refable } from '../../references';
2
+ import type { Paramable } from '../../references';
3
3
  import * as v from 'valibot';
4
- export declare class BuilderCollectionConfig<Builder extends Refable<BuilderGeneric> = Refable<BuilderGeneric>, Min extends Refable<number> = Refable<number>, Max extends Refable<number> = Refable<number>> {
4
+ export declare class BuilderCollectionConfig<Builder extends Paramable<BuilderGeneric> = Paramable<BuilderGeneric>, Min extends Paramable<number> = Paramable<number>, Max extends Paramable<number> = Paramable<number>> {
5
5
  readonly type: 'collection-config';
6
6
  readonly builder: Builder;
7
7
  readonly min: Min;
@@ -11,38 +11,38 @@ export declare class BuilderCollectionConfig<Builder extends Refable<BuilderGene
11
11
  export declare const BuilderCollectionConfigSchema: v.InstanceSchema<typeof BuilderCollectionConfig, undefined>;
12
12
  export declare const BuilderCollectionConfigSerialisedSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
13
13
  readonly builder: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
14
- readonly type: v.LiteralSchema<"ref", undefined>;
14
+ readonly type: v.LiteralSchema<"parameter", undefined>;
15
15
  readonly id: v.StringSchema<undefined>;
16
16
  readonly name: v.StringSchema<undefined>;
17
17
  }, undefined>, v.ReadonlyAction<{
18
- type: "ref";
18
+ type: "parameter";
19
19
  id: string;
20
20
  name: string;
21
- }>]>, v.InstanceSchema<typeof import("../..").BuilderRef, undefined>, v.LazySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
22
- readonly references: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
23
- readonly type: v.LiteralSchema<"ref", undefined>;
21
+ }>]>, v.InstanceSchema<typeof import("../..").BuilderParameter, undefined>, v.LazySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
22
+ readonly parameters: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
23
+ readonly type: v.LiteralSchema<"parameter", undefined>;
24
24
  readonly id: v.StringSchema<undefined>;
25
25
  readonly name: v.StringSchema<undefined>;
26
26
  }, undefined>, v.ReadonlyAction<{
27
- type: "ref";
27
+ type: "parameter";
28
28
  id: string;
29
29
  name: string;
30
30
  }>]>, undefined>, v.ReadonlyAction<Readonly<{
31
- type: "ref";
31
+ type: "parameter";
32
32
  id: string;
33
33
  name: string;
34
34
  }>[]>]>;
35
35
  readonly options: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
36
36
  readonly name: v.StringSchema<undefined>;
37
37
  readonly payload: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
38
- readonly type: v.LiteralSchema<"ref", undefined>;
38
+ readonly type: v.LiteralSchema<"parameter", undefined>;
39
39
  readonly id: v.StringSchema<undefined>;
40
40
  readonly name: v.StringSchema<undefined>;
41
41
  }, undefined>, v.ReadonlyAction<{
42
- type: "ref";
42
+ type: "parameter";
43
43
  id: string;
44
44
  name: string;
45
- }>]>, v.InstanceSchema<typeof import("../..").BuilderRef, undefined>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.ObjectSchema<{
45
+ }>]>, v.InstanceSchema<typeof import("../..").BuilderParameter, undefined>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.ObjectSchema<{
46
46
  readonly type: v.LiteralSchema<"select", undefined>;
47
47
  readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
48
48
  readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
@@ -99,7 +99,7 @@ export declare const BuilderCollectionConfigSerialisedSchema: v.SchemaWithPipe<r
99
99
  defaultValue: string | number | boolean | null;
100
100
  isOptional: boolean;
101
101
  }>>]>, v.GenericSchema], undefined>], undefined>, v.MetadataAction<unknown, {
102
- readonly refable: v.UnionSchema<[v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.ObjectSchema<{
102
+ readonly paramable: v.UnionSchema<[v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.ObjectSchema<{
103
103
  readonly type: v.LiteralSchema<"select", undefined>;
104
104
  readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
105
105
  readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
@@ -158,68 +158,68 @@ export declare const BuilderCollectionConfigSerialisedSchema: v.SchemaWithPipe<r
158
158
  }>>]>, v.GenericSchema], undefined>;
159
159
  }>]>;
160
160
  readonly gatePaths: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
161
- readonly type: v.LiteralSchema<"ref", undefined>;
161
+ readonly type: v.LiteralSchema<"parameter", undefined>;
162
162
  readonly id: v.StringSchema<undefined>;
163
163
  readonly name: v.StringSchema<undefined>;
164
164
  }, undefined>, v.ReadonlyAction<{
165
- type: "ref";
165
+ type: "parameter";
166
166
  id: string;
167
167
  name: string;
168
- }>]>, v.InstanceSchema<typeof import("../..").BuilderRef, undefined>, 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)[])[]>]>], undefined>, v.MetadataAction<readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
169
- type: "ref";
168
+ }>]>, v.InstanceSchema<typeof import("../..").BuilderParameter, undefined>, 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)[])[]>]>], undefined>, v.MetadataAction<readonly (readonly (string | number)[])[] | Readonly<{
169
+ type: "parameter";
170
170
  id: string;
171
171
  name: string;
172
- }>, {
173
- readonly refable: 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)[])[]>]>;
172
+ }> | import("../..").BuilderParameter<string>, {
173
+ readonly paramable: 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)[])[]>]>;
174
174
  }>]>, undefined>;
175
175
  }, undefined>, v.MetadataAction<{
176
176
  name: string;
177
177
  payload: unknown;
178
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
179
- type: "ref";
178
+ gatePaths?: readonly (readonly (string | number)[])[] | Readonly<{
179
+ type: "parameter";
180
180
  id: string;
181
181
  name: string;
182
- }> | undefined;
182
+ }> | import("../..").BuilderParameter<string> | undefined;
183
183
  }, {
184
184
  readonly serialisable: typeof import("..").BuilderOption;
185
185
  readonly instance: v.InstanceSchema<typeof import("..").BuilderOption, undefined>;
186
186
  }>, v.ReadonlyAction<{
187
187
  name: string;
188
188
  payload: unknown;
189
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
190
- type: "ref";
189
+ gatePaths?: readonly (readonly (string | number)[])[] | Readonly<{
190
+ type: "parameter";
191
191
  id: string;
192
192
  name: string;
193
- }> | undefined;
193
+ }> | import("../..").BuilderParameter<string> | undefined;
194
194
  }>]>, undefined>, v.ReadonlyAction<Readonly<{
195
195
  name: string;
196
196
  payload: unknown;
197
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
198
- type: "ref";
197
+ gatePaths?: readonly (readonly (string | number)[])[] | Readonly<{
198
+ type: "parameter";
199
199
  id: string;
200
200
  name: string;
201
- }> | undefined;
201
+ }> | import("../..").BuilderParameter<string> | undefined;
202
202
  }>[]>]>;
203
203
  readonly components: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
204
204
  readonly name: v.StringSchema<undefined>;
205
205
  readonly payload: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
206
- readonly type: v.LiteralSchema<"ref", undefined>;
206
+ readonly type: v.LiteralSchema<"parameter", undefined>;
207
207
  readonly id: v.StringSchema<undefined>;
208
208
  readonly name: v.StringSchema<undefined>;
209
209
  }, undefined>, v.ReadonlyAction<{
210
- type: "ref";
210
+ type: "parameter";
211
211
  id: string;
212
212
  name: string;
213
- }>]>, v.InstanceSchema<typeof import("../..").BuilderRef, undefined>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
213
+ }>]>, v.InstanceSchema<typeof import("../..").BuilderParameter, undefined>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
214
214
  readonly expectations: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
215
- readonly type: v.LiteralSchema<"ref", undefined>;
215
+ readonly type: v.LiteralSchema<"parameter", undefined>;
216
216
  readonly id: v.StringSchema<undefined>;
217
217
  readonly name: v.StringSchema<undefined>;
218
218
  }, undefined>, v.ReadonlyAction<{
219
- type: "ref";
219
+ type: "parameter";
220
220
  id: string;
221
221
  name: string;
222
- }>]>, v.InstanceSchema<typeof import("../..").BuilderRef, undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
222
+ }>]>, v.InstanceSchema<typeof import("../..").BuilderParameter, undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
223
223
  readonly name: v.StringSchema<undefined>;
224
224
  readonly kind: v.PicklistSchema<["option", "component", "collection", "detail"], undefined>;
225
225
  }, undefined>, v.MetadataAction<{
@@ -234,15 +234,15 @@ export declare const BuilderCollectionConfigSerialisedSchema: v.SchemaWithPipe<r
234
234
  }>]>, undefined>, v.ReadonlyAction<Readonly<{
235
235
  name: string;
236
236
  kind: "option" | "component" | "collection" | "detail";
237
- }>[]>]>], undefined>, v.MetadataAction<import("../..").BuilderRef | Readonly<{
238
- type: "ref";
237
+ }>[]>]>], undefined>, v.MetadataAction<Readonly<{
238
+ type: "parameter";
239
239
  id: string;
240
240
  name: string;
241
- }> | readonly Readonly<{
241
+ }> | import("../..").BuilderParameter<string> | readonly Readonly<{
242
242
  name: string;
243
243
  kind: "option" | "component" | "collection" | "detail";
244
244
  }>[], {
245
- readonly refable: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
245
+ readonly paramable: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
246
246
  readonly name: v.StringSchema<undefined>;
247
247
  readonly kind: v.PicklistSchema<["option", "component", "collection", "detail"], undefined>;
248
248
  }, undefined>, v.MetadataAction<{
@@ -260,11 +260,11 @@ export declare const BuilderCollectionConfigSerialisedSchema: v.SchemaWithPipe<r
260
260
  }>[]>]>;
261
261
  }>]>;
262
262
  }, undefined>, v.MetadataAction<{
263
- expectations: import("../..").BuilderRef | Readonly<{
264
- type: "ref";
263
+ expectations: Readonly<{
264
+ type: "parameter";
265
265
  id: string;
266
266
  name: string;
267
- }> | readonly Readonly<{
267
+ }> | import("../..").BuilderParameter<string> | readonly Readonly<{
268
268
  name: string;
269
269
  kind: "option" | "component" | "collection" | "detail";
270
270
  }>[];
@@ -272,25 +272,25 @@ export declare const BuilderCollectionConfigSerialisedSchema: v.SchemaWithPipe<r
272
272
  readonly serialisable: typeof import("..").BuilderComponentDetails;
273
273
  readonly instance: v.InstanceSchema<typeof import("..").BuilderComponentDetails, undefined>;
274
274
  }>, v.ReadonlyAction<{
275
- expectations: import("../..").BuilderRef | Readonly<{
276
- type: "ref";
275
+ expectations: Readonly<{
276
+ type: "parameter";
277
277
  id: string;
278
278
  name: string;
279
- }> | readonly Readonly<{
279
+ }> | import("../..").BuilderParameter<string> | readonly Readonly<{
280
280
  name: string;
281
281
  kind: "option" | "component" | "collection" | "detail";
282
282
  }>[];
283
283
  }>]>, v.GenericSchema], undefined>], undefined>, v.MetadataAction<unknown, {
284
- readonly refable: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
284
+ readonly paramable: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
285
285
  readonly expectations: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
286
- readonly type: v.LiteralSchema<"ref", undefined>;
286
+ readonly type: v.LiteralSchema<"parameter", undefined>;
287
287
  readonly id: v.StringSchema<undefined>;
288
288
  readonly name: v.StringSchema<undefined>;
289
289
  }, undefined>, v.ReadonlyAction<{
290
- type: "ref";
290
+ type: "parameter";
291
291
  id: string;
292
292
  name: string;
293
- }>]>, v.InstanceSchema<typeof import("../..").BuilderRef, undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
293
+ }>]>, v.InstanceSchema<typeof import("../..").BuilderParameter, undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
294
294
  readonly name: v.StringSchema<undefined>;
295
295
  readonly kind: v.PicklistSchema<["option", "component", "collection", "detail"], undefined>;
296
296
  }, undefined>, v.MetadataAction<{
@@ -305,15 +305,15 @@ export declare const BuilderCollectionConfigSerialisedSchema: v.SchemaWithPipe<r
305
305
  }>]>, undefined>, v.ReadonlyAction<Readonly<{
306
306
  name: string;
307
307
  kind: "option" | "component" | "collection" | "detail";
308
- }>[]>]>], undefined>, v.MetadataAction<import("../..").BuilderRef | Readonly<{
309
- type: "ref";
308
+ }>[]>]>], undefined>, v.MetadataAction<Readonly<{
309
+ type: "parameter";
310
310
  id: string;
311
311
  name: string;
312
- }> | readonly Readonly<{
312
+ }> | import("../..").BuilderParameter<string> | readonly Readonly<{
313
313
  name: string;
314
314
  kind: "option" | "component" | "collection" | "detail";
315
315
  }>[], {
316
- readonly refable: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
316
+ readonly paramable: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
317
317
  readonly name: v.StringSchema<undefined>;
318
318
  readonly kind: v.PicklistSchema<["option", "component", "collection", "detail"], undefined>;
319
319
  }, undefined>, v.MetadataAction<{
@@ -331,11 +331,11 @@ export declare const BuilderCollectionConfigSerialisedSchema: v.SchemaWithPipe<r
331
331
  }>[]>]>;
332
332
  }>]>;
333
333
  }, undefined>, v.MetadataAction<{
334
- expectations: import("../..").BuilderRef | Readonly<{
335
- type: "ref";
334
+ expectations: Readonly<{
335
+ type: "parameter";
336
336
  id: string;
337
337
  name: string;
338
- }> | readonly Readonly<{
338
+ }> | import("../..").BuilderParameter<string> | readonly Readonly<{
339
339
  name: string;
340
340
  kind: "option" | "component" | "collection" | "detail";
341
341
  }>[];
@@ -343,58 +343,58 @@ export declare const BuilderCollectionConfigSerialisedSchema: v.SchemaWithPipe<r
343
343
  readonly serialisable: typeof import("..").BuilderComponentDetails;
344
344
  readonly instance: v.InstanceSchema<typeof import("..").BuilderComponentDetails, undefined>;
345
345
  }>, v.ReadonlyAction<{
346
- expectations: import("../..").BuilderRef | Readonly<{
347
- type: "ref";
346
+ expectations: Readonly<{
347
+ type: "parameter";
348
348
  id: string;
349
349
  name: string;
350
- }> | readonly Readonly<{
350
+ }> | import("../..").BuilderParameter<string> | readonly Readonly<{
351
351
  name: string;
352
352
  kind: "option" | "component" | "collection" | "detail";
353
353
  }>[];
354
354
  }>]>, v.GenericSchema], undefined>;
355
355
  }>]>;
356
356
  readonly gatePaths: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
357
- readonly type: v.LiteralSchema<"ref", undefined>;
357
+ readonly type: v.LiteralSchema<"parameter", undefined>;
358
358
  readonly id: v.StringSchema<undefined>;
359
359
  readonly name: v.StringSchema<undefined>;
360
360
  }, undefined>, v.ReadonlyAction<{
361
- type: "ref";
361
+ type: "parameter";
362
362
  id: string;
363
363
  name: string;
364
- }>]>, v.InstanceSchema<typeof import("../..").BuilderRef, undefined>, 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)[])[]>]>], undefined>, v.MetadataAction<readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
365
- type: "ref";
364
+ }>]>, v.InstanceSchema<typeof import("../..").BuilderParameter, undefined>, 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)[])[]>]>], undefined>, v.MetadataAction<readonly (readonly (string | number)[])[] | Readonly<{
365
+ type: "parameter";
366
366
  id: string;
367
367
  name: string;
368
- }>, {
369
- readonly refable: 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)[])[]>]>;
368
+ }> | import("../..").BuilderParameter<string>, {
369
+ readonly paramable: 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)[])[]>]>;
370
370
  }>]>, undefined>;
371
371
  }, undefined>, v.MetadataAction<{
372
372
  name: string;
373
373
  payload: unknown;
374
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
375
- type: "ref";
374
+ gatePaths?: readonly (readonly (string | number)[])[] | Readonly<{
375
+ type: "parameter";
376
376
  id: string;
377
377
  name: string;
378
- }> | undefined;
378
+ }> | import("../..").BuilderParameter<string> | undefined;
379
379
  }, {
380
380
  readonly serialisable: typeof import("..").BuilderComponent;
381
381
  readonly instance: v.InstanceSchema<typeof import("..").BuilderComponent, undefined>;
382
382
  }>, v.ReadonlyAction<{
383
383
  name: string;
384
384
  payload: unknown;
385
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
386
- type: "ref";
385
+ gatePaths?: readonly (readonly (string | number)[])[] | Readonly<{
386
+ type: "parameter";
387
387
  id: string;
388
388
  name: string;
389
- }> | undefined;
389
+ }> | import("../..").BuilderParameter<string> | undefined;
390
390
  }>]>, undefined>, v.ReadonlyAction<Readonly<{
391
391
  name: string;
392
392
  payload: unknown;
393
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
394
- type: "ref";
393
+ gatePaths?: readonly (readonly (string | number)[])[] | Readonly<{
394
+ type: "parameter";
395
395
  id: string;
396
396
  name: string;
397
- }> | undefined;
397
+ }> | import("../..").BuilderParameter<string> | undefined;
398
398
  }>[]>]>;
399
399
  readonly collections: v.SchemaWithPipe<readonly [v.ArraySchema<v.GenericSchema<import("./collection").BuilderCollectionSerialised>, undefined>, v.ReadonlyAction<import("./collection").BuilderCollectionSerialised[]>]>;
400
400
  readonly expectations: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
@@ -413,126 +413,148 @@ export declare const BuilderCollectionConfigSerialisedSchema: v.SchemaWithPipe<r
413
413
  name: string;
414
414
  kind: "option" | "component" | "collection" | "detail";
415
415
  }>[]>]>;
416
+ readonly references: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
417
+ readonly parameter: v.StringSchema<undefined>;
418
+ readonly id: v.StringSchema<undefined>;
419
+ }, undefined>, v.ReadonlyAction<{
420
+ parameter: string;
421
+ id: string;
422
+ }>]>, undefined>, v.ReadonlyAction<Readonly<{
423
+ parameter: string;
424
+ id: string;
425
+ }>[]>]>;
416
426
  }, undefined>, v.MetadataAction<{
417
- readonly references: readonly Readonly<{
418
- type: "ref";
427
+ readonly parameters: readonly Readonly<{
428
+ type: "parameter";
419
429
  id: string;
420
430
  name: string;
421
431
  }>[];
422
432
  readonly options: readonly Readonly<{
423
433
  name: string;
424
434
  payload: unknown;
425
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
426
- type: "ref";
435
+ gatePaths?: readonly (readonly (string | number)[])[] | Readonly<{
436
+ type: "parameter";
427
437
  id: string;
428
438
  name: string;
429
- }> | undefined;
439
+ }> | import("../..").BuilderParameter<string> | undefined;
430
440
  }>[];
431
441
  readonly components: readonly Readonly<{
432
442
  name: string;
433
443
  payload: unknown;
434
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
435
- type: "ref";
444
+ gatePaths?: readonly (readonly (string | number)[])[] | Readonly<{
445
+ type: "parameter";
436
446
  id: string;
437
447
  name: string;
438
- }> | undefined;
448
+ }> | import("../..").BuilderParameter<string> | undefined;
439
449
  }>[];
440
450
  readonly collections: readonly import("./collection").BuilderCollectionSerialised[];
441
451
  readonly expectations: readonly Readonly<{
442
452
  name: string;
443
453
  kind: "option" | "component" | "collection" | "detail";
444
454
  }>[];
455
+ readonly references: readonly Readonly<{
456
+ parameter: string;
457
+ id: string;
458
+ }>[];
445
459
  }, {
446
460
  readonly serialisable: typeof import("..").Builder;
447
461
  readonly instance: v.InstanceSchema<typeof import("..").Builder, undefined>;
448
462
  }>, v.ReadonlyAction<{
449
- readonly references: readonly Readonly<{
450
- type: "ref";
463
+ readonly parameters: readonly Readonly<{
464
+ type: "parameter";
451
465
  id: string;
452
466
  name: string;
453
467
  }>[];
454
468
  readonly options: readonly Readonly<{
455
469
  name: string;
456
470
  payload: unknown;
457
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
458
- type: "ref";
471
+ gatePaths?: readonly (readonly (string | number)[])[] | Readonly<{
472
+ type: "parameter";
459
473
  id: string;
460
474
  name: string;
461
- }> | undefined;
475
+ }> | import("../..").BuilderParameter<string> | undefined;
462
476
  }>[];
463
477
  readonly components: readonly Readonly<{
464
478
  name: string;
465
479
  payload: unknown;
466
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
467
- type: "ref";
480
+ gatePaths?: readonly (readonly (string | number)[])[] | Readonly<{
481
+ type: "parameter";
468
482
  id: string;
469
483
  name: string;
470
- }> | undefined;
484
+ }> | import("../..").BuilderParameter<string> | undefined;
471
485
  }>[];
472
486
  readonly collections: readonly import("./collection").BuilderCollectionSerialised[];
473
487
  readonly expectations: readonly Readonly<{
474
488
  name: string;
475
489
  kind: "option" | "component" | "collection" | "detail";
476
490
  }>[];
477
- }>]>>], undefined>, v.MetadataAction<import("../..").BuilderRef | Readonly<{
478
- type: "ref";
491
+ readonly references: readonly Readonly<{
492
+ parameter: string;
493
+ id: string;
494
+ }>[];
495
+ }>]>>], undefined>, v.MetadataAction<Readonly<{
496
+ type: "parameter";
479
497
  id: string;
480
498
  name: string;
481
- }> | Readonly<{
482
- readonly references: readonly Readonly<{
483
- type: "ref";
499
+ }> | import("../..").BuilderParameter<string> | Readonly<{
500
+ readonly parameters: readonly Readonly<{
501
+ type: "parameter";
484
502
  id: string;
485
503
  name: string;
486
504
  }>[];
487
505
  readonly options: readonly Readonly<{
488
506
  name: string;
489
507
  payload: unknown;
490
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
491
- type: "ref";
508
+ gatePaths?: readonly (readonly (string | number)[])[] | Readonly<{
509
+ type: "parameter";
492
510
  id: string;
493
511
  name: string;
494
- }> | undefined;
512
+ }> | import("../..").BuilderParameter<string> | undefined;
495
513
  }>[];
496
514
  readonly components: readonly Readonly<{
497
515
  name: string;
498
516
  payload: unknown;
499
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
500
- type: "ref";
517
+ gatePaths?: readonly (readonly (string | number)[])[] | Readonly<{
518
+ type: "parameter";
501
519
  id: string;
502
520
  name: string;
503
- }> | undefined;
521
+ }> | import("../..").BuilderParameter<string> | undefined;
504
522
  }>[];
505
523
  readonly collections: readonly import("./collection").BuilderCollectionSerialised[];
506
524
  readonly expectations: readonly Readonly<{
507
525
  name: string;
508
526
  kind: "option" | "component" | "collection" | "detail";
509
527
  }>[];
528
+ readonly references: readonly Readonly<{
529
+ parameter: string;
530
+ id: string;
531
+ }>[];
510
532
  }>, {
511
- readonly refable: v.LazySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
512
- readonly references: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
513
- readonly type: v.LiteralSchema<"ref", undefined>;
533
+ readonly paramable: v.LazySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
534
+ readonly parameters: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
535
+ readonly type: v.LiteralSchema<"parameter", undefined>;
514
536
  readonly id: v.StringSchema<undefined>;
515
537
  readonly name: v.StringSchema<undefined>;
516
538
  }, undefined>, v.ReadonlyAction<{
517
- type: "ref";
539
+ type: "parameter";
518
540
  id: string;
519
541
  name: string;
520
542
  }>]>, undefined>, v.ReadonlyAction<Readonly<{
521
- type: "ref";
543
+ type: "parameter";
522
544
  id: string;
523
545
  name: string;
524
546
  }>[]>]>;
525
547
  readonly options: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
526
548
  readonly name: v.StringSchema<undefined>;
527
549
  readonly payload: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
528
- readonly type: v.LiteralSchema<"ref", undefined>;
550
+ readonly type: v.LiteralSchema<"parameter", undefined>;
529
551
  readonly id: v.StringSchema<undefined>;
530
552
  readonly name: v.StringSchema<undefined>;
531
553
  }, undefined>, v.ReadonlyAction<{
532
- type: "ref";
554
+ type: "parameter";
533
555
  id: string;
534
556
  name: string;
535
- }>]>, v.InstanceSchema<typeof import("../..").BuilderRef, undefined>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.ObjectSchema<{
557
+ }>]>, v.InstanceSchema<typeof import("../..").BuilderParameter, undefined>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.ObjectSchema<{
536
558
  readonly type: v.LiteralSchema<"select", undefined>;
537
559
  readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
538
560
  readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
@@ -589,7 +611,7 @@ export declare const BuilderCollectionConfigSerialisedSchema: v.SchemaWithPipe<r
589
611
  defaultValue: string | number | boolean | null;
590
612
  isOptional: boolean;
591
613
  }>>]>, v.GenericSchema], undefined>], undefined>, v.MetadataAction<unknown, {
592
- readonly refable: v.UnionSchema<[v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.ObjectSchema<{
614
+ readonly paramable: v.UnionSchema<[v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.ObjectSchema<{
593
615
  readonly type: v.LiteralSchema<"select", undefined>;
594
616
  readonly options: v.SchemaWithPipe<readonly [v.TupleWithRestSchema<[v.StringSchema<undefined>], v.StringSchema<undefined>, undefined>, v.ReadonlyAction<[string, ...string[]]>]>;
595
617
  readonly defaultValue: v.NullableSchema<v.StringSchema<undefined>, undefined>;
@@ -648,68 +670,68 @@ export declare const BuilderCollectionConfigSerialisedSchema: v.SchemaWithPipe<r
648
670
  }>>]>, v.GenericSchema], undefined>;
649
671
  }>]>;
650
672
  readonly gatePaths: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
651
- readonly type: v.LiteralSchema<"ref", undefined>;
673
+ readonly type: v.LiteralSchema<"parameter", undefined>;
652
674
  readonly id: v.StringSchema<undefined>;
653
675
  readonly name: v.StringSchema<undefined>;
654
676
  }, undefined>, v.ReadonlyAction<{
655
- type: "ref";
677
+ type: "parameter";
656
678
  id: string;
657
679
  name: string;
658
- }>]>, v.InstanceSchema<typeof import("../..").BuilderRef, undefined>, 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)[])[]>]>], undefined>, v.MetadataAction<readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
659
- type: "ref";
680
+ }>]>, v.InstanceSchema<typeof import("../..").BuilderParameter, undefined>, 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)[])[]>]>], undefined>, v.MetadataAction<readonly (readonly (string | number)[])[] | Readonly<{
681
+ type: "parameter";
660
682
  id: string;
661
683
  name: string;
662
- }>, {
663
- readonly refable: 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)[])[]>]>;
684
+ }> | import("../..").BuilderParameter<string>, {
685
+ readonly paramable: 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)[])[]>]>;
664
686
  }>]>, undefined>;
665
687
  }, undefined>, v.MetadataAction<{
666
688
  name: string;
667
689
  payload: unknown;
668
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
669
- type: "ref";
690
+ gatePaths?: readonly (readonly (string | number)[])[] | Readonly<{
691
+ type: "parameter";
670
692
  id: string;
671
693
  name: string;
672
- }> | undefined;
694
+ }> | import("../..").BuilderParameter<string> | undefined;
673
695
  }, {
674
696
  readonly serialisable: typeof import("..").BuilderOption;
675
697
  readonly instance: v.InstanceSchema<typeof import("..").BuilderOption, undefined>;
676
698
  }>, v.ReadonlyAction<{
677
699
  name: string;
678
700
  payload: unknown;
679
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
680
- type: "ref";
701
+ gatePaths?: readonly (readonly (string | number)[])[] | Readonly<{
702
+ type: "parameter";
681
703
  id: string;
682
704
  name: string;
683
- }> | undefined;
705
+ }> | import("../..").BuilderParameter<string> | undefined;
684
706
  }>]>, undefined>, v.ReadonlyAction<Readonly<{
685
707
  name: string;
686
708
  payload: unknown;
687
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
688
- type: "ref";
709
+ gatePaths?: readonly (readonly (string | number)[])[] | Readonly<{
710
+ type: "parameter";
689
711
  id: string;
690
712
  name: string;
691
- }> | undefined;
713
+ }> | import("../..").BuilderParameter<string> | undefined;
692
714
  }>[]>]>;
693
715
  readonly components: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
694
716
  readonly name: v.StringSchema<undefined>;
695
717
  readonly payload: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
696
- readonly type: v.LiteralSchema<"ref", undefined>;
718
+ readonly type: v.LiteralSchema<"parameter", undefined>;
697
719
  readonly id: v.StringSchema<undefined>;
698
720
  readonly name: v.StringSchema<undefined>;
699
721
  }, undefined>, v.ReadonlyAction<{
700
- type: "ref";
722
+ type: "parameter";
701
723
  id: string;
702
724
  name: string;
703
- }>]>, v.InstanceSchema<typeof import("../..").BuilderRef, undefined>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
725
+ }>]>, v.InstanceSchema<typeof import("../..").BuilderParameter, undefined>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
704
726
  readonly expectations: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
705
- readonly type: v.LiteralSchema<"ref", undefined>;
727
+ readonly type: v.LiteralSchema<"parameter", undefined>;
706
728
  readonly id: v.StringSchema<undefined>;
707
729
  readonly name: v.StringSchema<undefined>;
708
730
  }, undefined>, v.ReadonlyAction<{
709
- type: "ref";
731
+ type: "parameter";
710
732
  id: string;
711
733
  name: string;
712
- }>]>, v.InstanceSchema<typeof import("../..").BuilderRef, undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
734
+ }>]>, v.InstanceSchema<typeof import("../..").BuilderParameter, undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
713
735
  readonly name: v.StringSchema<undefined>;
714
736
  readonly kind: v.PicklistSchema<["option", "component", "collection", "detail"], undefined>;
715
737
  }, undefined>, v.MetadataAction<{
@@ -724,15 +746,15 @@ export declare const BuilderCollectionConfigSerialisedSchema: v.SchemaWithPipe<r
724
746
  }>]>, undefined>, v.ReadonlyAction<Readonly<{
725
747
  name: string;
726
748
  kind: "option" | "component" | "collection" | "detail";
727
- }>[]>]>], undefined>, v.MetadataAction<import("../..").BuilderRef | Readonly<{
728
- type: "ref";
749
+ }>[]>]>], undefined>, v.MetadataAction<Readonly<{
750
+ type: "parameter";
729
751
  id: string;
730
752
  name: string;
731
- }> | readonly Readonly<{
753
+ }> | import("../..").BuilderParameter<string> | readonly Readonly<{
732
754
  name: string;
733
755
  kind: "option" | "component" | "collection" | "detail";
734
756
  }>[], {
735
- readonly refable: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
757
+ readonly paramable: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
736
758
  readonly name: v.StringSchema<undefined>;
737
759
  readonly kind: v.PicklistSchema<["option", "component", "collection", "detail"], undefined>;
738
760
  }, undefined>, v.MetadataAction<{
@@ -750,11 +772,11 @@ export declare const BuilderCollectionConfigSerialisedSchema: v.SchemaWithPipe<r
750
772
  }>[]>]>;
751
773
  }>]>;
752
774
  }, undefined>, v.MetadataAction<{
753
- expectations: import("../..").BuilderRef | Readonly<{
754
- type: "ref";
775
+ expectations: Readonly<{
776
+ type: "parameter";
755
777
  id: string;
756
778
  name: string;
757
- }> | readonly Readonly<{
779
+ }> | import("../..").BuilderParameter<string> | readonly Readonly<{
758
780
  name: string;
759
781
  kind: "option" | "component" | "collection" | "detail";
760
782
  }>[];
@@ -762,25 +784,25 @@ export declare const BuilderCollectionConfigSerialisedSchema: v.SchemaWithPipe<r
762
784
  readonly serialisable: typeof import("..").BuilderComponentDetails;
763
785
  readonly instance: v.InstanceSchema<typeof import("..").BuilderComponentDetails, undefined>;
764
786
  }>, v.ReadonlyAction<{
765
- expectations: import("../..").BuilderRef | Readonly<{
766
- type: "ref";
787
+ expectations: Readonly<{
788
+ type: "parameter";
767
789
  id: string;
768
790
  name: string;
769
- }> | readonly Readonly<{
791
+ }> | import("../..").BuilderParameter<string> | readonly Readonly<{
770
792
  name: string;
771
793
  kind: "option" | "component" | "collection" | "detail";
772
794
  }>[];
773
795
  }>]>, v.GenericSchema], undefined>], undefined>, v.MetadataAction<unknown, {
774
- readonly refable: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
796
+ readonly paramable: v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
775
797
  readonly expectations: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
776
- readonly type: v.LiteralSchema<"ref", undefined>;
798
+ readonly type: v.LiteralSchema<"parameter", undefined>;
777
799
  readonly id: v.StringSchema<undefined>;
778
800
  readonly name: v.StringSchema<undefined>;
779
801
  }, undefined>, v.ReadonlyAction<{
780
- type: "ref";
802
+ type: "parameter";
781
803
  id: string;
782
804
  name: string;
783
- }>]>, v.InstanceSchema<typeof import("../..").BuilderRef, undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
805
+ }>]>, v.InstanceSchema<typeof import("../..").BuilderParameter, undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
784
806
  readonly name: v.StringSchema<undefined>;
785
807
  readonly kind: v.PicklistSchema<["option", "component", "collection", "detail"], undefined>;
786
808
  }, undefined>, v.MetadataAction<{
@@ -795,15 +817,15 @@ export declare const BuilderCollectionConfigSerialisedSchema: v.SchemaWithPipe<r
795
817
  }>]>, undefined>, v.ReadonlyAction<Readonly<{
796
818
  name: string;
797
819
  kind: "option" | "component" | "collection" | "detail";
798
- }>[]>]>], undefined>, v.MetadataAction<import("../..").BuilderRef | Readonly<{
799
- type: "ref";
820
+ }>[]>]>], undefined>, v.MetadataAction<Readonly<{
821
+ type: "parameter";
800
822
  id: string;
801
823
  name: string;
802
- }> | readonly Readonly<{
824
+ }> | import("../..").BuilderParameter<string> | readonly Readonly<{
803
825
  name: string;
804
826
  kind: "option" | "component" | "collection" | "detail";
805
827
  }>[], {
806
- readonly refable: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
828
+ readonly paramable: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
807
829
  readonly name: v.StringSchema<undefined>;
808
830
  readonly kind: v.PicklistSchema<["option", "component", "collection", "detail"], undefined>;
809
831
  }, undefined>, v.MetadataAction<{
@@ -821,11 +843,11 @@ export declare const BuilderCollectionConfigSerialisedSchema: v.SchemaWithPipe<r
821
843
  }>[]>]>;
822
844
  }>]>;
823
845
  }, undefined>, v.MetadataAction<{
824
- expectations: import("../..").BuilderRef | Readonly<{
825
- type: "ref";
846
+ expectations: Readonly<{
847
+ type: "parameter";
826
848
  id: string;
827
849
  name: string;
828
- }> | readonly Readonly<{
850
+ }> | import("../..").BuilderParameter<string> | readonly Readonly<{
829
851
  name: string;
830
852
  kind: "option" | "component" | "collection" | "detail";
831
853
  }>[];
@@ -833,58 +855,58 @@ export declare const BuilderCollectionConfigSerialisedSchema: v.SchemaWithPipe<r
833
855
  readonly serialisable: typeof import("..").BuilderComponentDetails;
834
856
  readonly instance: v.InstanceSchema<typeof import("..").BuilderComponentDetails, undefined>;
835
857
  }>, v.ReadonlyAction<{
836
- expectations: import("../..").BuilderRef | Readonly<{
837
- type: "ref";
858
+ expectations: Readonly<{
859
+ type: "parameter";
838
860
  id: string;
839
861
  name: string;
840
- }> | readonly Readonly<{
862
+ }> | import("../..").BuilderParameter<string> | readonly Readonly<{
841
863
  name: string;
842
864
  kind: "option" | "component" | "collection" | "detail";
843
865
  }>[];
844
866
  }>]>, v.GenericSchema], undefined>;
845
867
  }>]>;
846
868
  readonly gatePaths: v.OptionalSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
847
- readonly type: v.LiteralSchema<"ref", undefined>;
869
+ readonly type: v.LiteralSchema<"parameter", undefined>;
848
870
  readonly id: v.StringSchema<undefined>;
849
871
  readonly name: v.StringSchema<undefined>;
850
872
  }, undefined>, v.ReadonlyAction<{
851
- type: "ref";
873
+ type: "parameter";
852
874
  id: string;
853
875
  name: string;
854
- }>]>, v.InstanceSchema<typeof import("../..").BuilderRef, undefined>, 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)[])[]>]>], undefined>, v.MetadataAction<readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
855
- type: "ref";
876
+ }>]>, v.InstanceSchema<typeof import("../..").BuilderParameter, undefined>, 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)[])[]>]>], undefined>, v.MetadataAction<readonly (readonly (string | number)[])[] | Readonly<{
877
+ type: "parameter";
856
878
  id: string;
857
879
  name: string;
858
- }>, {
859
- readonly refable: 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)[])[]>]>;
880
+ }> | import("../..").BuilderParameter<string>, {
881
+ readonly paramable: 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)[])[]>]>;
860
882
  }>]>, undefined>;
861
883
  }, undefined>, v.MetadataAction<{
862
884
  name: string;
863
885
  payload: unknown;
864
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
865
- type: "ref";
886
+ gatePaths?: readonly (readonly (string | number)[])[] | Readonly<{
887
+ type: "parameter";
866
888
  id: string;
867
889
  name: string;
868
- }> | undefined;
890
+ }> | import("../..").BuilderParameter<string> | undefined;
869
891
  }, {
870
892
  readonly serialisable: typeof import("..").BuilderComponent;
871
893
  readonly instance: v.InstanceSchema<typeof import("..").BuilderComponent, undefined>;
872
894
  }>, v.ReadonlyAction<{
873
895
  name: string;
874
896
  payload: unknown;
875
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
876
- type: "ref";
897
+ gatePaths?: readonly (readonly (string | number)[])[] | Readonly<{
898
+ type: "parameter";
877
899
  id: string;
878
900
  name: string;
879
- }> | undefined;
901
+ }> | import("../..").BuilderParameter<string> | undefined;
880
902
  }>]>, undefined>, v.ReadonlyAction<Readonly<{
881
903
  name: string;
882
904
  payload: unknown;
883
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
884
- type: "ref";
905
+ gatePaths?: readonly (readonly (string | number)[])[] | Readonly<{
906
+ type: "parameter";
885
907
  id: string;
886
908
  name: string;
887
- }> | undefined;
909
+ }> | import("../..").BuilderParameter<string> | undefined;
888
910
  }>[]>]>;
889
911
  readonly collections: v.SchemaWithPipe<readonly [v.ArraySchema<v.GenericSchema<import("./collection").BuilderCollectionSerialised>, undefined>, v.ReadonlyAction<import("./collection").BuilderCollectionSerialised[]>]>;
890
912
  readonly expectations: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
@@ -903,192 +925,218 @@ export declare const BuilderCollectionConfigSerialisedSchema: v.SchemaWithPipe<r
903
925
  name: string;
904
926
  kind: "option" | "component" | "collection" | "detail";
905
927
  }>[]>]>;
928
+ readonly references: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
929
+ readonly parameter: v.StringSchema<undefined>;
930
+ readonly id: v.StringSchema<undefined>;
931
+ }, undefined>, v.ReadonlyAction<{
932
+ parameter: string;
933
+ id: string;
934
+ }>]>, undefined>, v.ReadonlyAction<Readonly<{
935
+ parameter: string;
936
+ id: string;
937
+ }>[]>]>;
906
938
  }, undefined>, v.MetadataAction<{
907
- readonly references: readonly Readonly<{
908
- type: "ref";
939
+ readonly parameters: readonly Readonly<{
940
+ type: "parameter";
909
941
  id: string;
910
942
  name: string;
911
943
  }>[];
912
944
  readonly options: readonly Readonly<{
913
945
  name: string;
914
946
  payload: unknown;
915
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
916
- type: "ref";
947
+ gatePaths?: readonly (readonly (string | number)[])[] | Readonly<{
948
+ type: "parameter";
917
949
  id: string;
918
950
  name: string;
919
- }> | undefined;
951
+ }> | import("../..").BuilderParameter<string> | undefined;
920
952
  }>[];
921
953
  readonly components: readonly Readonly<{
922
954
  name: string;
923
955
  payload: unknown;
924
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
925
- type: "ref";
956
+ gatePaths?: readonly (readonly (string | number)[])[] | Readonly<{
957
+ type: "parameter";
926
958
  id: string;
927
959
  name: string;
928
- }> | undefined;
960
+ }> | import("../..").BuilderParameter<string> | undefined;
929
961
  }>[];
930
962
  readonly collections: readonly import("./collection").BuilderCollectionSerialised[];
931
963
  readonly expectations: readonly Readonly<{
932
964
  name: string;
933
965
  kind: "option" | "component" | "collection" | "detail";
934
966
  }>[];
967
+ readonly references: readonly Readonly<{
968
+ parameter: string;
969
+ id: string;
970
+ }>[];
935
971
  }, {
936
972
  readonly serialisable: typeof import("..").Builder;
937
973
  readonly instance: v.InstanceSchema<typeof import("..").Builder, undefined>;
938
974
  }>, v.ReadonlyAction<{
939
- readonly references: readonly Readonly<{
940
- type: "ref";
975
+ readonly parameters: readonly Readonly<{
976
+ type: "parameter";
941
977
  id: string;
942
978
  name: string;
943
979
  }>[];
944
980
  readonly options: readonly Readonly<{
945
981
  name: string;
946
982
  payload: unknown;
947
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
948
- type: "ref";
983
+ gatePaths?: readonly (readonly (string | number)[])[] | Readonly<{
984
+ type: "parameter";
949
985
  id: string;
950
986
  name: string;
951
- }> | undefined;
987
+ }> | import("../..").BuilderParameter<string> | undefined;
952
988
  }>[];
953
989
  readonly components: readonly Readonly<{
954
990
  name: string;
955
991
  payload: unknown;
956
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
957
- type: "ref";
992
+ gatePaths?: readonly (readonly (string | number)[])[] | Readonly<{
993
+ type: "parameter";
958
994
  id: string;
959
995
  name: string;
960
- }> | undefined;
996
+ }> | import("../..").BuilderParameter<string> | undefined;
961
997
  }>[];
962
998
  readonly collections: readonly import("./collection").BuilderCollectionSerialised[];
963
999
  readonly expectations: readonly Readonly<{
964
1000
  name: string;
965
1001
  kind: "option" | "component" | "collection" | "detail";
966
1002
  }>[];
1003
+ readonly references: readonly Readonly<{
1004
+ parameter: string;
1005
+ id: string;
1006
+ }>[];
967
1007
  }>]>>;
968
1008
  }>]>;
969
1009
  readonly min: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
970
- readonly type: v.LiteralSchema<"ref", undefined>;
1010
+ readonly type: v.LiteralSchema<"parameter", undefined>;
971
1011
  readonly id: v.StringSchema<undefined>;
972
1012
  readonly name: v.StringSchema<undefined>;
973
1013
  }, undefined>, v.ReadonlyAction<{
974
- type: "ref";
1014
+ type: "parameter";
975
1015
  id: string;
976
1016
  name: string;
977
- }>]>, v.InstanceSchema<typeof import("../..").BuilderRef, undefined>, v.NumberSchema<undefined>], undefined>, v.MetadataAction<number | import("../..").BuilderRef | Readonly<{
978
- type: "ref";
1017
+ }>]>, v.InstanceSchema<typeof import("../..").BuilderParameter, undefined>, v.NumberSchema<undefined>], undefined>, v.MetadataAction<number | Readonly<{
1018
+ type: "parameter";
979
1019
  id: string;
980
1020
  name: string;
981
- }>, {
982
- readonly refable: v.NumberSchema<undefined>;
1021
+ }> | import("../..").BuilderParameter<string>, {
1022
+ readonly paramable: v.NumberSchema<undefined>;
983
1023
  }>]>;
984
1024
  readonly max: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
985
- readonly type: v.LiteralSchema<"ref", undefined>;
1025
+ readonly type: v.LiteralSchema<"parameter", undefined>;
986
1026
  readonly id: v.StringSchema<undefined>;
987
1027
  readonly name: v.StringSchema<undefined>;
988
1028
  }, undefined>, v.ReadonlyAction<{
989
- type: "ref";
1029
+ type: "parameter";
990
1030
  id: string;
991
1031
  name: string;
992
- }>]>, v.InstanceSchema<typeof import("../..").BuilderRef, undefined>, v.NumberSchema<undefined>], undefined>, v.MetadataAction<number | import("../..").BuilderRef | Readonly<{
993
- type: "ref";
1032
+ }>]>, v.InstanceSchema<typeof import("../..").BuilderParameter, undefined>, v.NumberSchema<undefined>], undefined>, v.MetadataAction<number | Readonly<{
1033
+ type: "parameter";
994
1034
  id: string;
995
1035
  name: string;
996
- }>, {
997
- readonly refable: v.NumberSchema<undefined>;
1036
+ }> | import("../..").BuilderParameter<string>, {
1037
+ readonly paramable: v.NumberSchema<undefined>;
998
1038
  }>]>;
999
1039
  }, undefined>, v.MetadataAction<{
1000
- builder: import("../..").BuilderRef | Readonly<{
1001
- type: "ref";
1040
+ builder: Readonly<{
1041
+ type: "parameter";
1002
1042
  id: string;
1003
1043
  name: string;
1004
- }> | Readonly<{
1005
- readonly references: readonly Readonly<{
1006
- type: "ref";
1044
+ }> | import("../..").BuilderParameter<string> | Readonly<{
1045
+ readonly parameters: readonly Readonly<{
1046
+ type: "parameter";
1007
1047
  id: string;
1008
1048
  name: string;
1009
1049
  }>[];
1010
1050
  readonly options: readonly Readonly<{
1011
1051
  name: string;
1012
1052
  payload: unknown;
1013
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
1014
- type: "ref";
1053
+ gatePaths?: readonly (readonly (string | number)[])[] | Readonly<{
1054
+ type: "parameter";
1015
1055
  id: string;
1016
1056
  name: string;
1017
- }> | undefined;
1057
+ }> | import("../..").BuilderParameter<string> | undefined;
1018
1058
  }>[];
1019
1059
  readonly components: readonly Readonly<{
1020
1060
  name: string;
1021
1061
  payload: unknown;
1022
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
1023
- type: "ref";
1062
+ gatePaths?: readonly (readonly (string | number)[])[] | Readonly<{
1063
+ type: "parameter";
1024
1064
  id: string;
1025
1065
  name: string;
1026
- }> | undefined;
1066
+ }> | import("../..").BuilderParameter<string> | undefined;
1027
1067
  }>[];
1028
1068
  readonly collections: readonly import("./collection").BuilderCollectionSerialised[];
1029
1069
  readonly expectations: readonly Readonly<{
1030
1070
  name: string;
1031
1071
  kind: "option" | "component" | "collection" | "detail";
1032
1072
  }>[];
1073
+ readonly references: readonly Readonly<{
1074
+ parameter: string;
1075
+ id: string;
1076
+ }>[];
1033
1077
  }>;
1034
- min: number | import("../..").BuilderRef | Readonly<{
1035
- type: "ref";
1078
+ min: number | Readonly<{
1079
+ type: "parameter";
1036
1080
  id: string;
1037
1081
  name: string;
1038
- }>;
1039
- max: number | import("../..").BuilderRef | Readonly<{
1040
- type: "ref";
1082
+ }> | import("../..").BuilderParameter<string>;
1083
+ max: number | Readonly<{
1084
+ type: "parameter";
1041
1085
  id: string;
1042
1086
  name: string;
1043
- }>;
1087
+ }> | import("../..").BuilderParameter<string>;
1044
1088
  }, {
1045
1089
  readonly serialisable: typeof BuilderCollectionConfig;
1046
1090
  readonly instance: v.InstanceSchema<typeof BuilderCollectionConfig, undefined>;
1047
1091
  }>, v.ReadonlyAction<{
1048
- builder: import("../..").BuilderRef | Readonly<{
1049
- type: "ref";
1092
+ builder: Readonly<{
1093
+ type: "parameter";
1050
1094
  id: string;
1051
1095
  name: string;
1052
- }> | Readonly<{
1053
- readonly references: readonly Readonly<{
1054
- type: "ref";
1096
+ }> | import("../..").BuilderParameter<string> | Readonly<{
1097
+ readonly parameters: readonly Readonly<{
1098
+ type: "parameter";
1055
1099
  id: string;
1056
1100
  name: string;
1057
1101
  }>[];
1058
1102
  readonly options: readonly Readonly<{
1059
1103
  name: string;
1060
1104
  payload: unknown;
1061
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
1062
- type: "ref";
1105
+ gatePaths?: readonly (readonly (string | number)[])[] | Readonly<{
1106
+ type: "parameter";
1063
1107
  id: string;
1064
1108
  name: string;
1065
- }> | undefined;
1109
+ }> | import("../..").BuilderParameter<string> | undefined;
1066
1110
  }>[];
1067
1111
  readonly components: readonly Readonly<{
1068
1112
  name: string;
1069
1113
  payload: unknown;
1070
- gatePaths?: readonly (readonly (string | number)[])[] | import("../..").BuilderRef | Readonly<{
1071
- type: "ref";
1114
+ gatePaths?: readonly (readonly (string | number)[])[] | Readonly<{
1115
+ type: "parameter";
1072
1116
  id: string;
1073
1117
  name: string;
1074
- }> | undefined;
1118
+ }> | import("../..").BuilderParameter<string> | undefined;
1075
1119
  }>[];
1076
1120
  readonly collections: readonly import("./collection").BuilderCollectionSerialised[];
1077
1121
  readonly expectations: readonly Readonly<{
1078
1122
  name: string;
1079
1123
  kind: "option" | "component" | "collection" | "detail";
1080
1124
  }>[];
1125
+ readonly references: readonly Readonly<{
1126
+ parameter: string;
1127
+ id: string;
1128
+ }>[];
1081
1129
  }>;
1082
- min: number | import("../..").BuilderRef | Readonly<{
1083
- type: "ref";
1130
+ min: number | Readonly<{
1131
+ type: "parameter";
1084
1132
  id: string;
1085
1133
  name: string;
1086
- }>;
1087
- max: number | import("../..").BuilderRef | Readonly<{
1088
- type: "ref";
1134
+ }> | import("../..").BuilderParameter<string>;
1135
+ max: number | Readonly<{
1136
+ type: "parameter";
1089
1137
  id: string;
1090
1138
  name: string;
1091
- }>;
1139
+ }> | import("../..").BuilderParameter<string>;
1092
1140
  }>]>;
1093
1141
  export type BuilderCollectionConfigSerialised = v.InferOutput<typeof BuilderCollectionConfigSerialisedSchema>;
1094
- export declare function collectionConfig<Builder extends Refable<BuilderGeneric> = Refable<BuilderGeneric>, Min extends Refable<number> = Refable<number>, Max extends Refable<number> = Refable<number>>(builder: Builder, min: Min, max: Max): BuilderCollectionConfig<Builder, Min, Max>;
1142
+ export declare function collectionConfig<Builder extends Paramable<BuilderGeneric> = Paramable<BuilderGeneric>, Min extends Paramable<number> = Paramable<number>, Max extends Paramable<number> = Paramable<number>>(builder: Builder, min: Min, max: Max): BuilderCollectionConfig<Builder, Min, Max>;