@ninetailed/experience.js-utils 7.20.5 → 7.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,346 +1,346 @@
1
- import { VariantRef, Baseline, InlineVariableComponentValueTypeEnum } from '@ninetailed/experience.js-shared';
2
- import { z } from 'zod';
3
- export declare enum ComponentTypeEnum {
4
- EntryReplacement = "EntryReplacement",
5
- InlineVariable = "InlineVariable"
6
- }
7
- export declare const entryReplacementVariantSchema: z.ZodObject<{
8
- id: z.ZodString;
9
- hidden: z.ZodDefault<z.ZodBoolean>;
10
- }, "strip", z.ZodTypeAny, {
11
- id: string;
12
- hidden: boolean;
13
- }, {
14
- id: string;
15
- hidden?: boolean | undefined;
16
- }>;
17
- export declare const EntryReplacementComponentSchema: z.ZodObject<{
18
- type: z.ZodLiteral<ComponentTypeEnum.EntryReplacement>;
19
- baseline: z.ZodObject<{
20
- id: z.ZodString;
21
- hidden: z.ZodDefault<z.ZodBoolean>;
22
- }, "strip", z.ZodTypeAny, {
23
- id: string;
24
- hidden: boolean;
25
- }, {
26
- id: string;
27
- hidden?: boolean | undefined;
28
- }>;
29
- variants: z.ZodArray<z.ZodObject<{
30
- id: z.ZodString;
31
- hidden: z.ZodDefault<z.ZodBoolean>;
32
- }, "strip", z.ZodTypeAny, {
33
- id: string;
34
- hidden: boolean;
35
- }, {
36
- id: string;
37
- hidden?: boolean | undefined;
38
- }>, "many">;
39
- }, "strip", z.ZodTypeAny, {
40
- type: ComponentTypeEnum.EntryReplacement;
41
- baseline: {
42
- id: string;
43
- hidden: boolean;
44
- };
45
- variants: {
46
- id: string;
47
- hidden: boolean;
48
- }[];
49
- }, {
50
- type: ComponentTypeEnum.EntryReplacement;
51
- baseline: {
52
- id: string;
53
- hidden?: boolean | undefined;
54
- };
55
- variants: {
56
- id: string;
57
- hidden?: boolean | undefined;
58
- }[];
59
- }>;
60
- export type EntryReplacementComponent = z.infer<typeof EntryReplacementComponentSchema>;
61
- export type TExperienceConfigComponentSchema = z.infer<typeof ExperienceConfigComponentSchema>;
62
- export declare function isEntryReplacementComponent(component: TExperienceConfigComponentSchema): component is EntryReplacementComponent;
63
- export declare const InlineVariableComponentSchema: z.ZodObject<{
64
- type: z.ZodLiteral<ComponentTypeEnum.InlineVariable>;
65
- key: z.ZodString;
66
- valueType: z.ZodNativeEnum<typeof InlineVariableComponentValueTypeEnum>;
67
- baseline: z.ZodObject<{
68
- value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
69
- }, "strip", z.ZodTypeAny, {
70
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
71
- }, {
72
- value?: unknown;
73
- }>;
74
- variants: z.ZodArray<z.ZodObject<{
75
- value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
76
- }, "strip", z.ZodTypeAny, {
77
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
78
- }, {
79
- value?: unknown;
80
- }>, "many">;
81
- }, "strip", z.ZodTypeAny, {
82
- type: ComponentTypeEnum.InlineVariable;
83
- baseline: {
84
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
85
- };
86
- variants: {
87
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
88
- }[];
89
- key: string;
90
- valueType: InlineVariableComponentValueTypeEnum;
91
- }, {
92
- type: ComponentTypeEnum.InlineVariable;
93
- baseline: {
94
- value?: unknown;
95
- };
96
- variants: {
97
- value?: unknown;
98
- }[];
99
- key: string;
100
- valueType: InlineVariableComponentValueTypeEnum;
101
- }>;
102
- export type InlineVariableComponent = z.infer<typeof InlineVariableComponentSchema>;
103
- export declare function isInlineVariableComponent(component: TExperienceConfigComponentSchema): component is InlineVariableComponent;
104
- export declare const ExperienceConfigComponentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
105
- type: z.ZodLiteral<ComponentTypeEnum.EntryReplacement>;
106
- baseline: z.ZodObject<{
107
- id: z.ZodString;
108
- hidden: z.ZodDefault<z.ZodBoolean>;
109
- }, "strip", z.ZodTypeAny, {
110
- id: string;
111
- hidden: boolean;
112
- }, {
113
- id: string;
114
- hidden?: boolean | undefined;
115
- }>;
116
- variants: z.ZodArray<z.ZodObject<{
117
- id: z.ZodString;
118
- hidden: z.ZodDefault<z.ZodBoolean>;
119
- }, "strip", z.ZodTypeAny, {
120
- id: string;
121
- hidden: boolean;
122
- }, {
123
- id: string;
124
- hidden?: boolean | undefined;
125
- }>, "many">;
126
- }, "strip", z.ZodTypeAny, {
127
- type: ComponentTypeEnum.EntryReplacement;
128
- baseline: {
129
- id: string;
130
- hidden: boolean;
131
- };
132
- variants: {
133
- id: string;
134
- hidden: boolean;
135
- }[];
136
- }, {
137
- type: ComponentTypeEnum.EntryReplacement;
138
- baseline: {
139
- id: string;
140
- hidden?: boolean | undefined;
141
- };
142
- variants: {
143
- id: string;
144
- hidden?: boolean | undefined;
145
- }[];
146
- }>, z.ZodObject<{
147
- type: z.ZodLiteral<ComponentTypeEnum.InlineVariable>;
148
- key: z.ZodString;
149
- valueType: z.ZodNativeEnum<typeof InlineVariableComponentValueTypeEnum>;
150
- baseline: z.ZodObject<{
151
- value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
152
- }, "strip", z.ZodTypeAny, {
153
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
154
- }, {
155
- value?: unknown;
156
- }>;
157
- variants: z.ZodArray<z.ZodObject<{
158
- value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
159
- }, "strip", z.ZodTypeAny, {
160
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
161
- }, {
162
- value?: unknown;
163
- }>, "many">;
164
- }, "strip", z.ZodTypeAny, {
165
- type: ComponentTypeEnum.InlineVariable;
166
- baseline: {
167
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
168
- };
169
- variants: {
170
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
171
- }[];
172
- key: string;
173
- valueType: InlineVariableComponentValueTypeEnum;
174
- }, {
175
- type: ComponentTypeEnum.InlineVariable;
176
- baseline: {
177
- value?: unknown;
178
- };
179
- variants: {
180
- value?: unknown;
181
- }[];
182
- key: string;
183
- valueType: InlineVariableComponentValueTypeEnum;
184
- }>]>, {
185
- type: ComponentTypeEnum.EntryReplacement;
186
- baseline: {
187
- id: string;
188
- hidden: boolean;
189
- };
190
- variants: {
191
- id: string;
192
- hidden: boolean;
193
- }[];
194
- } | {
195
- type: ComponentTypeEnum.InlineVariable;
196
- baseline: {
197
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
198
- };
199
- variants: {
200
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
201
- }[];
202
- key: string;
203
- valueType: InlineVariableComponentValueTypeEnum;
204
- }, unknown>;
205
- export declare const Config: z.ZodObject<{
206
- distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
207
- traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
208
- components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
209
- type: z.ZodLiteral<ComponentTypeEnum.EntryReplacement>;
210
- baseline: z.ZodObject<{
211
- id: z.ZodString;
212
- hidden: z.ZodDefault<z.ZodBoolean>;
213
- }, "strip", z.ZodTypeAny, {
214
- id: string;
215
- hidden: boolean;
216
- }, {
217
- id: string;
218
- hidden?: boolean | undefined;
219
- }>;
220
- variants: z.ZodArray<z.ZodObject<{
221
- id: z.ZodString;
222
- hidden: z.ZodDefault<z.ZodBoolean>;
223
- }, "strip", z.ZodTypeAny, {
224
- id: string;
225
- hidden: boolean;
226
- }, {
227
- id: string;
228
- hidden?: boolean | undefined;
229
- }>, "many">;
230
- }, "strip", z.ZodTypeAny, {
231
- type: ComponentTypeEnum.EntryReplacement;
232
- baseline: {
233
- id: string;
234
- hidden: boolean;
235
- };
236
- variants: {
237
- id: string;
238
- hidden: boolean;
239
- }[];
240
- }, {
241
- type: ComponentTypeEnum.EntryReplacement;
242
- baseline: {
243
- id: string;
244
- hidden?: boolean | undefined;
245
- };
246
- variants: {
247
- id: string;
248
- hidden?: boolean | undefined;
249
- }[];
250
- }>, z.ZodObject<{
251
- type: z.ZodLiteral<ComponentTypeEnum.InlineVariable>;
252
- key: z.ZodString;
253
- valueType: z.ZodNativeEnum<typeof InlineVariableComponentValueTypeEnum>;
254
- baseline: z.ZodObject<{
255
- value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
256
- }, "strip", z.ZodTypeAny, {
257
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
258
- }, {
259
- value?: unknown;
260
- }>;
261
- variants: z.ZodArray<z.ZodObject<{
262
- value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
263
- }, "strip", z.ZodTypeAny, {
264
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
265
- }, {
266
- value?: unknown;
267
- }>, "many">;
268
- }, "strip", z.ZodTypeAny, {
269
- type: ComponentTypeEnum.InlineVariable;
270
- baseline: {
271
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
272
- };
273
- variants: {
274
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
275
- }[];
276
- key: string;
277
- valueType: InlineVariableComponentValueTypeEnum;
278
- }, {
279
- type: ComponentTypeEnum.InlineVariable;
280
- baseline: {
281
- value?: unknown;
282
- };
283
- variants: {
284
- value?: unknown;
285
- }[];
286
- key: string;
287
- valueType: InlineVariableComponentValueTypeEnum;
288
- }>]>, {
289
- type: ComponentTypeEnum.EntryReplacement;
290
- baseline: {
291
- id: string;
292
- hidden: boolean;
293
- };
294
- variants: {
295
- id: string;
296
- hidden: boolean;
297
- }[];
298
- } | {
299
- type: ComponentTypeEnum.InlineVariable;
300
- baseline: {
301
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
302
- };
303
- variants: {
304
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
305
- }[];
306
- key: string;
307
- valueType: InlineVariableComponentValueTypeEnum;
308
- }, unknown>, "many">>>;
309
- sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
310
- }, "strip", z.ZodTypeAny, {
311
- distribution: number[];
312
- traffic: number;
313
- components: ({
314
- type: ComponentTypeEnum.EntryReplacement;
315
- baseline: {
316
- id: string;
317
- hidden: boolean;
318
- };
319
- variants: {
320
- id: string;
321
- hidden: boolean;
322
- }[];
323
- } | {
324
- type: ComponentTypeEnum.InlineVariable;
325
- baseline: {
326
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
327
- };
328
- variants: {
329
- value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
330
- }[];
331
- key: string;
332
- valueType: InlineVariableComponentValueTypeEnum;
333
- })[];
334
- sticky: boolean;
335
- }, {
336
- distribution?: number[] | undefined;
337
- traffic?: number | undefined;
338
- components?: unknown[] | undefined;
339
- sticky?: boolean | undefined;
340
- }>;
341
- export type ConfigLike = z.input<typeof Config>;
342
- export type Config = z.infer<typeof Config>;
343
- export interface BaselineWithVariantRefs {
344
- baseline: Baseline;
345
- variants: VariantRef[];
346
- }
1
+ import { VariantRef, Baseline, InlineVariableComponentValueTypeEnum } from '@ninetailed/experience.js-shared';
2
+ import { z } from 'zod';
3
+ export declare enum ComponentTypeEnum {
4
+ EntryReplacement = "EntryReplacement",
5
+ InlineVariable = "InlineVariable"
6
+ }
7
+ export declare const entryReplacementVariantSchema: z.ZodObject<{
8
+ id: z.ZodString;
9
+ hidden: z.ZodDefault<z.ZodBoolean>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ id: string;
12
+ hidden: boolean;
13
+ }, {
14
+ id: string;
15
+ hidden?: boolean | undefined;
16
+ }>;
17
+ export declare const EntryReplacementComponentSchema: z.ZodObject<{
18
+ type: z.ZodLiteral<ComponentTypeEnum.EntryReplacement>;
19
+ baseline: z.ZodObject<{
20
+ id: z.ZodString;
21
+ hidden: z.ZodDefault<z.ZodBoolean>;
22
+ }, "strip", z.ZodTypeAny, {
23
+ id: string;
24
+ hidden: boolean;
25
+ }, {
26
+ id: string;
27
+ hidden?: boolean | undefined;
28
+ }>;
29
+ variants: z.ZodArray<z.ZodObject<{
30
+ id: z.ZodString;
31
+ hidden: z.ZodDefault<z.ZodBoolean>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ id: string;
34
+ hidden: boolean;
35
+ }, {
36
+ id: string;
37
+ hidden?: boolean | undefined;
38
+ }>, "many">;
39
+ }, "strip", z.ZodTypeAny, {
40
+ type: ComponentTypeEnum.EntryReplacement;
41
+ baseline: {
42
+ id: string;
43
+ hidden: boolean;
44
+ };
45
+ variants: {
46
+ id: string;
47
+ hidden: boolean;
48
+ }[];
49
+ }, {
50
+ type: ComponentTypeEnum.EntryReplacement;
51
+ baseline: {
52
+ id: string;
53
+ hidden?: boolean | undefined;
54
+ };
55
+ variants: {
56
+ id: string;
57
+ hidden?: boolean | undefined;
58
+ }[];
59
+ }>;
60
+ export type EntryReplacementComponent = z.infer<typeof EntryReplacementComponentSchema>;
61
+ export type TExperienceConfigComponentSchema = z.infer<typeof ExperienceConfigComponentSchema>;
62
+ export declare function isEntryReplacementComponent(component: TExperienceConfigComponentSchema): component is EntryReplacementComponent;
63
+ export declare const InlineVariableComponentSchema: z.ZodObject<{
64
+ type: z.ZodLiteral<ComponentTypeEnum.InlineVariable>;
65
+ key: z.ZodString;
66
+ valueType: z.ZodNativeEnum<typeof InlineVariableComponentValueTypeEnum>;
67
+ baseline: z.ZodObject<{
68
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
69
+ }, "strip", z.ZodTypeAny, {
70
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
71
+ }, {
72
+ value?: unknown;
73
+ }>;
74
+ variants: z.ZodArray<z.ZodObject<{
75
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
76
+ }, "strip", z.ZodTypeAny, {
77
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
78
+ }, {
79
+ value?: unknown;
80
+ }>, "many">;
81
+ }, "strip", z.ZodTypeAny, {
82
+ type: ComponentTypeEnum.InlineVariable;
83
+ baseline: {
84
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
85
+ };
86
+ variants: {
87
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
88
+ }[];
89
+ key: string;
90
+ valueType: InlineVariableComponentValueTypeEnum;
91
+ }, {
92
+ type: ComponentTypeEnum.InlineVariable;
93
+ baseline: {
94
+ value?: unknown;
95
+ };
96
+ variants: {
97
+ value?: unknown;
98
+ }[];
99
+ key: string;
100
+ valueType: InlineVariableComponentValueTypeEnum;
101
+ }>;
102
+ export type InlineVariableComponent = z.infer<typeof InlineVariableComponentSchema>;
103
+ export declare function isInlineVariableComponent(component: TExperienceConfigComponentSchema): component is InlineVariableComponent;
104
+ export declare const ExperienceConfigComponentSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
105
+ type: z.ZodLiteral<ComponentTypeEnum.EntryReplacement>;
106
+ baseline: z.ZodObject<{
107
+ id: z.ZodString;
108
+ hidden: z.ZodDefault<z.ZodBoolean>;
109
+ }, "strip", z.ZodTypeAny, {
110
+ id: string;
111
+ hidden: boolean;
112
+ }, {
113
+ id: string;
114
+ hidden?: boolean | undefined;
115
+ }>;
116
+ variants: z.ZodArray<z.ZodObject<{
117
+ id: z.ZodString;
118
+ hidden: z.ZodDefault<z.ZodBoolean>;
119
+ }, "strip", z.ZodTypeAny, {
120
+ id: string;
121
+ hidden: boolean;
122
+ }, {
123
+ id: string;
124
+ hidden?: boolean | undefined;
125
+ }>, "many">;
126
+ }, "strip", z.ZodTypeAny, {
127
+ type: ComponentTypeEnum.EntryReplacement;
128
+ baseline: {
129
+ id: string;
130
+ hidden: boolean;
131
+ };
132
+ variants: {
133
+ id: string;
134
+ hidden: boolean;
135
+ }[];
136
+ }, {
137
+ type: ComponentTypeEnum.EntryReplacement;
138
+ baseline: {
139
+ id: string;
140
+ hidden?: boolean | undefined;
141
+ };
142
+ variants: {
143
+ id: string;
144
+ hidden?: boolean | undefined;
145
+ }[];
146
+ }>, z.ZodObject<{
147
+ type: z.ZodLiteral<ComponentTypeEnum.InlineVariable>;
148
+ key: z.ZodString;
149
+ valueType: z.ZodNativeEnum<typeof InlineVariableComponentValueTypeEnum>;
150
+ baseline: z.ZodObject<{
151
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
152
+ }, "strip", z.ZodTypeAny, {
153
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
154
+ }, {
155
+ value?: unknown;
156
+ }>;
157
+ variants: z.ZodArray<z.ZodObject<{
158
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
159
+ }, "strip", z.ZodTypeAny, {
160
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
161
+ }, {
162
+ value?: unknown;
163
+ }>, "many">;
164
+ }, "strip", z.ZodTypeAny, {
165
+ type: ComponentTypeEnum.InlineVariable;
166
+ baseline: {
167
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
168
+ };
169
+ variants: {
170
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
171
+ }[];
172
+ key: string;
173
+ valueType: InlineVariableComponentValueTypeEnum;
174
+ }, {
175
+ type: ComponentTypeEnum.InlineVariable;
176
+ baseline: {
177
+ value?: unknown;
178
+ };
179
+ variants: {
180
+ value?: unknown;
181
+ }[];
182
+ key: string;
183
+ valueType: InlineVariableComponentValueTypeEnum;
184
+ }>]>, {
185
+ type: ComponentTypeEnum.EntryReplacement;
186
+ baseline: {
187
+ id: string;
188
+ hidden: boolean;
189
+ };
190
+ variants: {
191
+ id: string;
192
+ hidden: boolean;
193
+ }[];
194
+ } | {
195
+ type: ComponentTypeEnum.InlineVariable;
196
+ baseline: {
197
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
198
+ };
199
+ variants: {
200
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
201
+ }[];
202
+ key: string;
203
+ valueType: InlineVariableComponentValueTypeEnum;
204
+ }, unknown>;
205
+ export declare const Config: z.ZodObject<{
206
+ distribution: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
207
+ traffic: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
208
+ components: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
209
+ type: z.ZodLiteral<ComponentTypeEnum.EntryReplacement>;
210
+ baseline: z.ZodObject<{
211
+ id: z.ZodString;
212
+ hidden: z.ZodDefault<z.ZodBoolean>;
213
+ }, "strip", z.ZodTypeAny, {
214
+ id: string;
215
+ hidden: boolean;
216
+ }, {
217
+ id: string;
218
+ hidden?: boolean | undefined;
219
+ }>;
220
+ variants: z.ZodArray<z.ZodObject<{
221
+ id: z.ZodString;
222
+ hidden: z.ZodDefault<z.ZodBoolean>;
223
+ }, "strip", z.ZodTypeAny, {
224
+ id: string;
225
+ hidden: boolean;
226
+ }, {
227
+ id: string;
228
+ hidden?: boolean | undefined;
229
+ }>, "many">;
230
+ }, "strip", z.ZodTypeAny, {
231
+ type: ComponentTypeEnum.EntryReplacement;
232
+ baseline: {
233
+ id: string;
234
+ hidden: boolean;
235
+ };
236
+ variants: {
237
+ id: string;
238
+ hidden: boolean;
239
+ }[];
240
+ }, {
241
+ type: ComponentTypeEnum.EntryReplacement;
242
+ baseline: {
243
+ id: string;
244
+ hidden?: boolean | undefined;
245
+ };
246
+ variants: {
247
+ id: string;
248
+ hidden?: boolean | undefined;
249
+ }[];
250
+ }>, z.ZodObject<{
251
+ type: z.ZodLiteral<ComponentTypeEnum.InlineVariable>;
252
+ key: z.ZodString;
253
+ valueType: z.ZodNativeEnum<typeof InlineVariableComponentValueTypeEnum>;
254
+ baseline: z.ZodObject<{
255
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
256
+ }, "strip", z.ZodTypeAny, {
257
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
258
+ }, {
259
+ value?: unknown;
260
+ }>;
261
+ variants: z.ZodArray<z.ZodObject<{
262
+ value: z.ZodUnion<[z.ZodString, z.ZodBoolean, z.ZodNumber, z.ZodType<import("@ninetailed/experience.js-shared").Properties, z.ZodTypeDef, unknown>]>;
263
+ }, "strip", z.ZodTypeAny, {
264
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
265
+ }, {
266
+ value?: unknown;
267
+ }>, "many">;
268
+ }, "strip", z.ZodTypeAny, {
269
+ type: ComponentTypeEnum.InlineVariable;
270
+ baseline: {
271
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
272
+ };
273
+ variants: {
274
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
275
+ }[];
276
+ key: string;
277
+ valueType: InlineVariableComponentValueTypeEnum;
278
+ }, {
279
+ type: ComponentTypeEnum.InlineVariable;
280
+ baseline: {
281
+ value?: unknown;
282
+ };
283
+ variants: {
284
+ value?: unknown;
285
+ }[];
286
+ key: string;
287
+ valueType: InlineVariableComponentValueTypeEnum;
288
+ }>]>, {
289
+ type: ComponentTypeEnum.EntryReplacement;
290
+ baseline: {
291
+ id: string;
292
+ hidden: boolean;
293
+ };
294
+ variants: {
295
+ id: string;
296
+ hidden: boolean;
297
+ }[];
298
+ } | {
299
+ type: ComponentTypeEnum.InlineVariable;
300
+ baseline: {
301
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
302
+ };
303
+ variants: {
304
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
305
+ }[];
306
+ key: string;
307
+ valueType: InlineVariableComponentValueTypeEnum;
308
+ }, unknown>, "many">>>;
309
+ sticky: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
310
+ }, "strip", z.ZodTypeAny, {
311
+ distribution: number[];
312
+ traffic: number;
313
+ components: ({
314
+ type: ComponentTypeEnum.EntryReplacement;
315
+ baseline: {
316
+ id: string;
317
+ hidden: boolean;
318
+ };
319
+ variants: {
320
+ id: string;
321
+ hidden: boolean;
322
+ }[];
323
+ } | {
324
+ type: ComponentTypeEnum.InlineVariable;
325
+ baseline: {
326
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
327
+ };
328
+ variants: {
329
+ value: string | number | boolean | import("@ninetailed/experience.js-shared").Properties;
330
+ }[];
331
+ key: string;
332
+ valueType: InlineVariableComponentValueTypeEnum;
333
+ })[];
334
+ sticky: boolean;
335
+ }, {
336
+ distribution?: number[] | undefined;
337
+ traffic?: number | undefined;
338
+ components?: unknown[] | undefined;
339
+ sticky?: boolean | undefined;
340
+ }>;
341
+ export type ConfigLike = z.input<typeof Config>;
342
+ export type Config = z.infer<typeof Config>;
343
+ export interface BaselineWithVariantRefs {
344
+ baseline: Baseline;
345
+ variants: VariantRef[];
346
+ }