unocab 0.8.0 → 0.9.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.
Files changed (108) hide show
  1. package/README.md +24 -4
  2. package/{script → dist}/errors.d.ts +13 -3
  3. package/dist/game.d.ts +459 -0
  4. package/dist/index.d.ts +3 -0
  5. package/dist/index.js +786 -0
  6. package/dist/types.d.ts +1106 -0
  7. package/{esm → dist}/utils.d.ts +4 -3
  8. package/package.json +17 -11
  9. package/esm/_dnt.shims.d.ts +0 -4
  10. package/esm/_dnt.shims.js +0 -62
  11. package/esm/_dnt.test_shims.d.ts +0 -7
  12. package/esm/deps/deno.land/std@0.190.0/fmt/colors.d.ts +0 -270
  13. package/esm/deps/deno.land/std@0.190.0/testing/_diff.d.ts +0 -26
  14. package/esm/deps/deno.land/std@0.190.0/testing/_format.d.ts +0 -1
  15. package/esm/deps/deno.land/std@0.190.0/testing/asserts.d.ts +0 -284
  16. package/esm/deps/deno.land/x/zod@v3.21.4/ZodError.d.ts +0 -163
  17. package/esm/deps/deno.land/x/zod@v3.21.4/ZodError.js +0 -148
  18. package/esm/deps/deno.land/x/zod@v3.21.4/errors.d.ts +0 -5
  19. package/esm/deps/deno.land/x/zod@v3.21.4/errors.js +0 -9
  20. package/esm/deps/deno.land/x/zod@v3.21.4/external.d.ts +0 -6
  21. package/esm/deps/deno.land/x/zod@v3.21.4/external.js +0 -6
  22. package/esm/deps/deno.land/x/zod@v3.21.4/helpers/enumUtil.d.ts +0 -8
  23. package/esm/deps/deno.land/x/zod@v3.21.4/helpers/enumUtil.js +0 -1
  24. package/esm/deps/deno.land/x/zod@v3.21.4/helpers/errorUtil.d.ts +0 -9
  25. package/esm/deps/deno.land/x/zod@v3.21.4/helpers/errorUtil.js +0 -5
  26. package/esm/deps/deno.land/x/zod@v3.21.4/helpers/parseUtil.d.ts +0 -78
  27. package/esm/deps/deno.land/x/zod@v3.21.4/helpers/parseUtil.js +0 -104
  28. package/esm/deps/deno.land/x/zod@v3.21.4/helpers/partialUtil.d.ts +0 -8
  29. package/esm/deps/deno.land/x/zod@v3.21.4/helpers/partialUtil.js +0 -1
  30. package/esm/deps/deno.land/x/zod@v3.21.4/helpers/typeAliases.d.ts +0 -2
  31. package/esm/deps/deno.land/x/zod@v3.21.4/helpers/typeAliases.js +0 -1
  32. package/esm/deps/deno.land/x/zod@v3.21.4/helpers/util.d.ts +0 -68
  33. package/esm/deps/deno.land/x/zod@v3.21.4/helpers/util.js +0 -138
  34. package/esm/deps/deno.land/x/zod@v3.21.4/index.d.ts +0 -4
  35. package/esm/deps/deno.land/x/zod@v3.21.4/index.js +0 -4
  36. package/esm/deps/deno.land/x/zod@v3.21.4/locales/en.d.ts +0 -3
  37. package/esm/deps/deno.land/x/zod@v3.21.4/locales/en.js +0 -127
  38. package/esm/deps/deno.land/x/zod@v3.21.4/mod.d.ts +0 -1
  39. package/esm/deps/deno.land/x/zod@v3.21.4/mod.js +0 -1
  40. package/esm/deps/deno.land/x/zod@v3.21.4/types.d.ts +0 -965
  41. package/esm/deps/deno.land/x/zod@v3.21.4/types.js +0 -3689
  42. package/esm/errors.d.ts +0 -72
  43. package/esm/errors.js +0 -39
  44. package/esm/game.d.ts +0 -868
  45. package/esm/game.js +0 -868
  46. package/esm/mod.d.ts +0 -3
  47. package/esm/mod.js +0 -3
  48. package/esm/package.json +0 -3
  49. package/esm/tests/basic-tests.d.ts +0 -8
  50. package/esm/tests/draw-tests.d.ts +0 -8
  51. package/esm/tests/non-specific-tests.test.d.ts +0 -1
  52. package/esm/tests/rule-violation-tests.d.ts +0 -8
  53. package/esm/tests/specific-tests.test.d.ts +0 -1
  54. package/esm/tests/test-utils.d.ts +0 -91
  55. package/esm/tests/turn-tests.d.ts +0 -8
  56. package/esm/types.d.ts +0 -2280
  57. package/esm/types.js +0 -152
  58. package/esm/utils.js +0 -44
  59. package/script/_dnt.shims.d.ts +0 -4
  60. package/script/_dnt.shims.js +0 -66
  61. package/script/_dnt.test_shims.d.ts +0 -7
  62. package/script/deps/deno.land/std@0.190.0/fmt/colors.d.ts +0 -270
  63. package/script/deps/deno.land/std@0.190.0/testing/_diff.d.ts +0 -26
  64. package/script/deps/deno.land/std@0.190.0/testing/_format.d.ts +0 -1
  65. package/script/deps/deno.land/std@0.190.0/testing/asserts.d.ts +0 -284
  66. package/script/deps/deno.land/x/zod@v3.21.4/ZodError.d.ts +0 -163
  67. package/script/deps/deno.land/x/zod@v3.21.4/ZodError.js +0 -152
  68. package/script/deps/deno.land/x/zod@v3.21.4/errors.d.ts +0 -5
  69. package/script/deps/deno.land/x/zod@v3.21.4/errors.js +0 -17
  70. package/script/deps/deno.land/x/zod@v3.21.4/external.d.ts +0 -6
  71. package/script/deps/deno.land/x/zod@v3.21.4/external.js +0 -22
  72. package/script/deps/deno.land/x/zod@v3.21.4/helpers/enumUtil.d.ts +0 -8
  73. package/script/deps/deno.land/x/zod@v3.21.4/helpers/enumUtil.js +0 -2
  74. package/script/deps/deno.land/x/zod@v3.21.4/helpers/errorUtil.d.ts +0 -9
  75. package/script/deps/deno.land/x/zod@v3.21.4/helpers/errorUtil.js +0 -8
  76. package/script/deps/deno.land/x/zod@v3.21.4/helpers/parseUtil.d.ts +0 -78
  77. package/script/deps/deno.land/x/zod@v3.21.4/helpers/parseUtil.js +0 -119
  78. package/script/deps/deno.land/x/zod@v3.21.4/helpers/partialUtil.d.ts +0 -8
  79. package/script/deps/deno.land/x/zod@v3.21.4/helpers/partialUtil.js +0 -2
  80. package/script/deps/deno.land/x/zod@v3.21.4/helpers/typeAliases.d.ts +0 -2
  81. package/script/deps/deno.land/x/zod@v3.21.4/helpers/typeAliases.js +0 -2
  82. package/script/deps/deno.land/x/zod@v3.21.4/helpers/util.d.ts +0 -68
  83. package/script/deps/deno.land/x/zod@v3.21.4/helpers/util.js +0 -142
  84. package/script/deps/deno.land/x/zod@v3.21.4/index.d.ts +0 -4
  85. package/script/deps/deno.land/x/zod@v3.21.4/index.js +0 -33
  86. package/script/deps/deno.land/x/zod@v3.21.4/locales/en.d.ts +0 -3
  87. package/script/deps/deno.land/x/zod@v3.21.4/locales/en.js +0 -129
  88. package/script/deps/deno.land/x/zod@v3.21.4/mod.d.ts +0 -1
  89. package/script/deps/deno.land/x/zod@v3.21.4/mod.js +0 -17
  90. package/script/deps/deno.land/x/zod@v3.21.4/types.d.ts +0 -965
  91. package/script/deps/deno.land/x/zod@v3.21.4/types.js +0 -3739
  92. package/script/errors.js +0 -43
  93. package/script/game.d.ts +0 -868
  94. package/script/game.js +0 -895
  95. package/script/mod.d.ts +0 -3
  96. package/script/mod.js +0 -19
  97. package/script/package.json +0 -3
  98. package/script/tests/basic-tests.d.ts +0 -8
  99. package/script/tests/draw-tests.d.ts +0 -8
  100. package/script/tests/non-specific-tests.test.d.ts +0 -1
  101. package/script/tests/rule-violation-tests.d.ts +0 -8
  102. package/script/tests/specific-tests.test.d.ts +0 -1
  103. package/script/tests/test-utils.d.ts +0 -91
  104. package/script/tests/turn-tests.d.ts +0 -8
  105. package/script/types.d.ts +0 -2280
  106. package/script/types.js +0 -155
  107. package/script/utils.d.ts +0 -19
  108. package/script/utils.js +0 -50
@@ -0,0 +1,1106 @@
1
+ import { z } from "zod";
2
+ export declare const regularCards: z.ZodEnum<{
3
+ eight: "eight";
4
+ five: "five";
5
+ four: "four";
6
+ nine: "nine";
7
+ one: "one";
8
+ seven: "seven";
9
+ six: "six";
10
+ three: "three";
11
+ two: "two";
12
+ zero: "zero";
13
+ }>;
14
+ export type RegularCard = z.infer<typeof regularCards>;
15
+ export declare const colorSwitchingScs: z.ZodEnum<{
16
+ "color-chooser": "color-chooser";
17
+ "plus-four": "plus-four";
18
+ }>;
19
+ export type ColorSwitchingScs = z.infer<typeof colorSwitchingScs>;
20
+ export declare const nonColorSwitchingScs: z.ZodEnum<{
21
+ "plus-two": "plus-two";
22
+ reverse: "reverse";
23
+ skip: "skip";
24
+ }>;
25
+ export type NonColorSwitchingScs = z.infer<typeof nonColorSwitchingScs>;
26
+ export declare const specialCards: z.ZodEnum<{
27
+ "color-chooser": "color-chooser";
28
+ "plus-four": "plus-four";
29
+ "plus-two": "plus-two";
30
+ reverse: "reverse";
31
+ skip: "skip";
32
+ }>;
33
+ export type SpecialCard = z.infer<typeof specialCards>;
34
+ export declare const allCards: z.ZodEnum<{
35
+ "color-chooser": "color-chooser";
36
+ eight: "eight";
37
+ five: "five";
38
+ four: "four";
39
+ nine: "nine";
40
+ one: "one";
41
+ "plus-four": "plus-four";
42
+ "plus-two": "plus-two";
43
+ reverse: "reverse";
44
+ seven: "seven";
45
+ six: "six";
46
+ skip: "skip";
47
+ three: "three";
48
+ two: "two";
49
+ zero: "zero";
50
+ }>;
51
+ export type AllCards = z.infer<typeof allCards>;
52
+ export declare const cardColor: z.ZodEnum<{
53
+ blue: "blue";
54
+ green: "green";
55
+ red: "red";
56
+ yellow: "yellow";
57
+ }>;
58
+ export type CardColor = z.infer<typeof cardColor>;
59
+ export declare const card: z.ZodUnion<readonly [z.ZodObject<{
60
+ type: z.ZodUnion<readonly [z.ZodEnum<{
61
+ eight: "eight";
62
+ five: "five";
63
+ four: "four";
64
+ nine: "nine";
65
+ one: "one";
66
+ seven: "seven";
67
+ six: "six";
68
+ three: "three";
69
+ two: "two";
70
+ zero: "zero";
71
+ }>, z.ZodEnum<{
72
+ "plus-two": "plus-two";
73
+ reverse: "reverse";
74
+ skip: "skip";
75
+ }>]>;
76
+ color: z.ZodEnum<{
77
+ blue: "blue";
78
+ green: "green";
79
+ red: "red";
80
+ yellow: "yellow";
81
+ }>;
82
+ }, z.core.$strip>, z.ZodObject<{
83
+ type: z.ZodEnum<{
84
+ "color-chooser": "color-chooser";
85
+ "plus-four": "plus-four";
86
+ }>;
87
+ color: z.ZodOptional<z.ZodUndefined>;
88
+ }, z.core.$strip>]>;
89
+ export type Card = z.infer<typeof card>;
90
+ export declare const playerId: z.ZodString;
91
+ export type PlayerId = z.infer<typeof playerId>;
92
+ export declare const cardPlayedEvent: z.ZodObject<{
93
+ type: z.ZodLiteral<"card_played">;
94
+ by: z.ZodString;
95
+ card: z.ZodUnion<readonly [z.ZodObject<{
96
+ type: z.ZodUnion<readonly [z.ZodEnum<{
97
+ eight: "eight";
98
+ five: "five";
99
+ four: "four";
100
+ nine: "nine";
101
+ one: "one";
102
+ seven: "seven";
103
+ six: "six";
104
+ three: "three";
105
+ two: "two";
106
+ zero: "zero";
107
+ }>, z.ZodEnum<{
108
+ "plus-two": "plus-two";
109
+ reverse: "reverse";
110
+ skip: "skip";
111
+ }>]>;
112
+ color: z.ZodEnum<{
113
+ blue: "blue";
114
+ green: "green";
115
+ red: "red";
116
+ yellow: "yellow";
117
+ }>;
118
+ }, z.core.$strip>, z.ZodObject<{
119
+ type: z.ZodEnum<{
120
+ "color-chooser": "color-chooser";
121
+ "plus-four": "plus-four";
122
+ }>;
123
+ color: z.ZodOptional<z.ZodUndefined>;
124
+ }, z.core.$strip>]>;
125
+ }, z.core.$strip>;
126
+ export type CardPlayedEvent = z.infer<typeof cardPlayedEvent>;
127
+ export declare const bluffCalledEvent: z.ZodObject<{
128
+ type: z.ZodLiteral<"bluff_called">;
129
+ by: z.ZodString;
130
+ }, z.core.$strip>;
131
+ export type BluffCalledEvent = z.infer<typeof bluffCalledEvent>;
132
+ export declare const drawEvent: z.ZodObject<{
133
+ type: z.ZodLiteral<"draw">;
134
+ by: z.ZodString;
135
+ }, z.core.$strip>;
136
+ export type DrawEvent = z.infer<typeof drawEvent>;
137
+ export declare const passEvent: z.ZodObject<{
138
+ type: z.ZodLiteral<"pass">;
139
+ by: z.ZodString;
140
+ }, z.core.$strip>;
141
+ export type PassEvent = z.infer<typeof passEvent>;
142
+ export declare const chooseColorEvent: z.ZodObject<{
143
+ type: z.ZodLiteral<"choose-color">;
144
+ by: z.ZodString;
145
+ color: z.ZodEnum<{
146
+ blue: "blue";
147
+ green: "green";
148
+ red: "red";
149
+ yellow: "yellow";
150
+ }>;
151
+ }, z.core.$strip>;
152
+ export type ChooseColorEvent = z.infer<typeof chooseColorEvent>;
153
+ export declare const gameEvent: z.ZodUnion<readonly [z.ZodObject<{
154
+ type: z.ZodLiteral<"card_played">;
155
+ by: z.ZodString;
156
+ card: z.ZodUnion<readonly [z.ZodObject<{
157
+ type: z.ZodUnion<readonly [z.ZodEnum<{
158
+ eight: "eight";
159
+ five: "five";
160
+ four: "four";
161
+ nine: "nine";
162
+ one: "one";
163
+ seven: "seven";
164
+ six: "six";
165
+ three: "three";
166
+ two: "two";
167
+ zero: "zero";
168
+ }>, z.ZodEnum<{
169
+ "plus-two": "plus-two";
170
+ reverse: "reverse";
171
+ skip: "skip";
172
+ }>]>;
173
+ color: z.ZodEnum<{
174
+ blue: "blue";
175
+ green: "green";
176
+ red: "red";
177
+ yellow: "yellow";
178
+ }>;
179
+ }, z.core.$strip>, z.ZodObject<{
180
+ type: z.ZodEnum<{
181
+ "color-chooser": "color-chooser";
182
+ "plus-four": "plus-four";
183
+ }>;
184
+ color: z.ZodOptional<z.ZodUndefined>;
185
+ }, z.core.$strip>]>;
186
+ }, z.core.$strip>, z.ZodObject<{
187
+ type: z.ZodLiteral<"bluff_called">;
188
+ by: z.ZodString;
189
+ }, z.core.$strip>, z.ZodObject<{
190
+ type: z.ZodLiteral<"choose-color">;
191
+ by: z.ZodString;
192
+ color: z.ZodEnum<{
193
+ blue: "blue";
194
+ green: "green";
195
+ red: "red";
196
+ yellow: "yellow";
197
+ }>;
198
+ }, z.core.$strip>, z.ZodObject<{
199
+ type: z.ZodLiteral<"draw">;
200
+ by: z.ZodString;
201
+ }, z.core.$strip>, z.ZodObject<{
202
+ type: z.ZodLiteral<"pass">;
203
+ by: z.ZodString;
204
+ }, z.core.$strip>]>;
205
+ export type GameEvent = z.infer<typeof gameEvent>;
206
+ export declare const infoEvent: z.ZodObject<{
207
+ type: z.ZodLiteral<"game_info">;
208
+ info: z.ZodUnion<readonly [z.ZodObject<{
209
+ type: z.ZodLiteral<"bluff_called">;
210
+ by: z.ZodString;
211
+ }, z.core.$strip>, z.ZodObject<{
212
+ type: z.ZodLiteral<"bluff_call_succeeded">;
213
+ by: z.ZodString;
214
+ of: z.ZodString;
215
+ }, z.core.$strip>, z.ZodObject<{
216
+ type: z.ZodLiteral<"bluff_call_failed">;
217
+ by: z.ZodString;
218
+ of: z.ZodString;
219
+ }, z.core.$strip>, z.ZodObject<{
220
+ type: z.ZodLiteral<"seed_changed">;
221
+ newSeed: z.ZodNumber;
222
+ }, z.core.$strip>, z.ZodObject<{
223
+ type: z.ZodLiteral<"player_won">;
224
+ id: z.ZodString;
225
+ }, z.core.$strip>, z.ZodObject<{
226
+ type: z.ZodLiteral<"game_ended">;
227
+ loser: z.ZodString;
228
+ }, z.core.$strip>, z.ZodObject<{
229
+ type: z.ZodLiteral<"player_joined">;
230
+ id: z.ZodString;
231
+ }, z.core.$strip>, z.ZodObject<{
232
+ type: z.ZodLiteral<"player_left">;
233
+ id: z.ZodString;
234
+ }, z.core.$strip>, z.ZodObject<{
235
+ type: z.ZodLiteral<"pile_to_deck">;
236
+ }, z.core.$strip>]>;
237
+ }, z.core.$strip>;
238
+ export type InfoEvent = z.infer<typeof infoEvent>;
239
+ export declare const fullGameState: z.ZodObject<{
240
+ index: z.ZodNumber;
241
+ initialSeed: z.ZodNumber;
242
+ players: z.ZodArray<z.ZodString>;
243
+ stackPlusTwos: z.ZodBoolean;
244
+ cache: z.ZodObject<{
245
+ hands: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
246
+ type: z.ZodUnion<readonly [z.ZodEnum<{
247
+ eight: "eight";
248
+ five: "five";
249
+ four: "four";
250
+ nine: "nine";
251
+ one: "one";
252
+ seven: "seven";
253
+ six: "six";
254
+ three: "three";
255
+ two: "two";
256
+ zero: "zero";
257
+ }>, z.ZodEnum<{
258
+ "plus-two": "plus-two";
259
+ reverse: "reverse";
260
+ skip: "skip";
261
+ }>]>;
262
+ color: z.ZodEnum<{
263
+ blue: "blue";
264
+ green: "green";
265
+ red: "red";
266
+ yellow: "yellow";
267
+ }>;
268
+ }, z.core.$strip>, z.ZodObject<{
269
+ type: z.ZodEnum<{
270
+ "color-chooser": "color-chooser";
271
+ "plus-four": "plus-four";
272
+ }>;
273
+ color: z.ZodOptional<z.ZodUndefined>;
274
+ }, z.core.$strip>]>>>;
275
+ deck: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
276
+ type: z.ZodUnion<readonly [z.ZodEnum<{
277
+ eight: "eight";
278
+ five: "five";
279
+ four: "four";
280
+ nine: "nine";
281
+ one: "one";
282
+ seven: "seven";
283
+ six: "six";
284
+ three: "three";
285
+ two: "two";
286
+ zero: "zero";
287
+ }>, z.ZodEnum<{
288
+ "plus-two": "plus-two";
289
+ reverse: "reverse";
290
+ skip: "skip";
291
+ }>]>;
292
+ color: z.ZodEnum<{
293
+ blue: "blue";
294
+ green: "green";
295
+ red: "red";
296
+ yellow: "yellow";
297
+ }>;
298
+ }, z.core.$strip>, z.ZodObject<{
299
+ type: z.ZodEnum<{
300
+ "color-chooser": "color-chooser";
301
+ "plus-four": "plus-four";
302
+ }>;
303
+ color: z.ZodOptional<z.ZodUndefined>;
304
+ }, z.core.$strip>]>>;
305
+ seed: z.ZodNumber;
306
+ stackedPlusTwos: z.ZodNumber;
307
+ turnStep: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<-1>]>;
308
+ ended: z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
309
+ loser: z.ZodString;
310
+ }, z.core.$strip>]>;
311
+ pile: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
312
+ type: z.ZodUnion<readonly [z.ZodEnum<{
313
+ eight: "eight";
314
+ five: "five";
315
+ four: "four";
316
+ nine: "nine";
317
+ one: "one";
318
+ seven: "seven";
319
+ six: "six";
320
+ three: "three";
321
+ two: "two";
322
+ zero: "zero";
323
+ }>, z.ZodEnum<{
324
+ "plus-two": "plus-two";
325
+ reverse: "reverse";
326
+ skip: "skip";
327
+ }>]>;
328
+ color: z.ZodEnum<{
329
+ blue: "blue";
330
+ green: "green";
331
+ red: "red";
332
+ yellow: "yellow";
333
+ }>;
334
+ }, z.core.$strip>, z.ZodObject<{
335
+ type: z.ZodEnum<{
336
+ "color-chooser": "color-chooser";
337
+ "plus-four": "plus-four";
338
+ }>;
339
+ color: z.ZodOptional<z.ZodUndefined>;
340
+ }, z.core.$strip>]>>;
341
+ last3CardPlayOrColorChanges: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
342
+ type: z.ZodUnion<readonly [z.ZodEnum<{
343
+ eight: "eight";
344
+ five: "five";
345
+ four: "four";
346
+ nine: "nine";
347
+ one: "one";
348
+ seven: "seven";
349
+ six: "six";
350
+ three: "three";
351
+ two: "two";
352
+ zero: "zero";
353
+ }>, z.ZodEnum<{
354
+ "plus-two": "plus-two";
355
+ reverse: "reverse";
356
+ skip: "skip";
357
+ }>]>;
358
+ color: z.ZodEnum<{
359
+ blue: "blue";
360
+ green: "green";
361
+ red: "red";
362
+ yellow: "yellow";
363
+ }>;
364
+ }, z.core.$strip>, z.ZodObject<{
365
+ type: z.ZodEnum<{
366
+ "color-chooser": "color-chooser";
367
+ "plus-four": "plus-four";
368
+ }>;
369
+ color: z.ZodOptional<z.ZodUndefined>;
370
+ }, z.core.$strip>]>, z.ZodEnum<{
371
+ blue: "blue";
372
+ green: "green";
373
+ red: "red";
374
+ yellow: "yellow";
375
+ }>]>>;
376
+ }, z.core.$strip>;
377
+ shorthandMode: z.ZodLiteral<false>;
378
+ events: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
379
+ type: z.ZodLiteral<"card_played">;
380
+ by: z.ZodString;
381
+ card: z.ZodUnion<readonly [z.ZodObject<{
382
+ type: z.ZodUnion<readonly [z.ZodEnum<{
383
+ eight: "eight";
384
+ five: "five";
385
+ four: "four";
386
+ nine: "nine";
387
+ one: "one";
388
+ seven: "seven";
389
+ six: "six";
390
+ three: "three";
391
+ two: "two";
392
+ zero: "zero";
393
+ }>, z.ZodEnum<{
394
+ "plus-two": "plus-two";
395
+ reverse: "reverse";
396
+ skip: "skip";
397
+ }>]>;
398
+ color: z.ZodEnum<{
399
+ blue: "blue";
400
+ green: "green";
401
+ red: "red";
402
+ yellow: "yellow";
403
+ }>;
404
+ }, z.core.$strip>, z.ZodObject<{
405
+ type: z.ZodEnum<{
406
+ "color-chooser": "color-chooser";
407
+ "plus-four": "plus-four";
408
+ }>;
409
+ color: z.ZodOptional<z.ZodUndefined>;
410
+ }, z.core.$strip>]>;
411
+ }, z.core.$strip>, z.ZodObject<{
412
+ type: z.ZodLiteral<"bluff_called">;
413
+ by: z.ZodString;
414
+ }, z.core.$strip>, z.ZodObject<{
415
+ type: z.ZodLiteral<"choose-color">;
416
+ by: z.ZodString;
417
+ color: z.ZodEnum<{
418
+ blue: "blue";
419
+ green: "green";
420
+ red: "red";
421
+ yellow: "yellow";
422
+ }>;
423
+ }, z.core.$strip>, z.ZodObject<{
424
+ type: z.ZodLiteral<"draw">;
425
+ by: z.ZodString;
426
+ }, z.core.$strip>, z.ZodObject<{
427
+ type: z.ZodLiteral<"pass">;
428
+ by: z.ZodString;
429
+ }, z.core.$strip>]>, z.ZodObject<{
430
+ type: z.ZodLiteral<"game_info">;
431
+ info: z.ZodUnion<readonly [z.ZodObject<{
432
+ type: z.ZodLiteral<"bluff_called">;
433
+ by: z.ZodString;
434
+ }, z.core.$strip>, z.ZodObject<{
435
+ type: z.ZodLiteral<"bluff_call_succeeded">;
436
+ by: z.ZodString;
437
+ of: z.ZodString;
438
+ }, z.core.$strip>, z.ZodObject<{
439
+ type: z.ZodLiteral<"bluff_call_failed">;
440
+ by: z.ZodString;
441
+ of: z.ZodString;
442
+ }, z.core.$strip>, z.ZodObject<{
443
+ type: z.ZodLiteral<"seed_changed">;
444
+ newSeed: z.ZodNumber;
445
+ }, z.core.$strip>, z.ZodObject<{
446
+ type: z.ZodLiteral<"player_won">;
447
+ id: z.ZodString;
448
+ }, z.core.$strip>, z.ZodObject<{
449
+ type: z.ZodLiteral<"game_ended">;
450
+ loser: z.ZodString;
451
+ }, z.core.$strip>, z.ZodObject<{
452
+ type: z.ZodLiteral<"player_joined">;
453
+ id: z.ZodString;
454
+ }, z.core.$strip>, z.ZodObject<{
455
+ type: z.ZodLiteral<"player_left">;
456
+ id: z.ZodString;
457
+ }, z.core.$strip>, z.ZodObject<{
458
+ type: z.ZodLiteral<"pile_to_deck">;
459
+ }, z.core.$strip>]>;
460
+ }, z.core.$strip>]>>;
461
+ }, z.core.$strip>;
462
+ export type FullGameState = z.infer<typeof fullGameState>;
463
+ export declare const shorthandGameState: z.ZodObject<{
464
+ index: z.ZodNumber;
465
+ initialSeed: z.ZodNumber;
466
+ players: z.ZodArray<z.ZodString>;
467
+ stackPlusTwos: z.ZodBoolean;
468
+ cache: z.ZodObject<{
469
+ hands: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
470
+ type: z.ZodUnion<readonly [z.ZodEnum<{
471
+ eight: "eight";
472
+ five: "five";
473
+ four: "four";
474
+ nine: "nine";
475
+ one: "one";
476
+ seven: "seven";
477
+ six: "six";
478
+ three: "three";
479
+ two: "two";
480
+ zero: "zero";
481
+ }>, z.ZodEnum<{
482
+ "plus-two": "plus-two";
483
+ reverse: "reverse";
484
+ skip: "skip";
485
+ }>]>;
486
+ color: z.ZodEnum<{
487
+ blue: "blue";
488
+ green: "green";
489
+ red: "red";
490
+ yellow: "yellow";
491
+ }>;
492
+ }, z.core.$strip>, z.ZodObject<{
493
+ type: z.ZodEnum<{
494
+ "color-chooser": "color-chooser";
495
+ "plus-four": "plus-four";
496
+ }>;
497
+ color: z.ZodOptional<z.ZodUndefined>;
498
+ }, z.core.$strip>]>>>;
499
+ deck: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
500
+ type: z.ZodUnion<readonly [z.ZodEnum<{
501
+ eight: "eight";
502
+ five: "five";
503
+ four: "four";
504
+ nine: "nine";
505
+ one: "one";
506
+ seven: "seven";
507
+ six: "six";
508
+ three: "three";
509
+ two: "two";
510
+ zero: "zero";
511
+ }>, z.ZodEnum<{
512
+ "plus-two": "plus-two";
513
+ reverse: "reverse";
514
+ skip: "skip";
515
+ }>]>;
516
+ color: z.ZodEnum<{
517
+ blue: "blue";
518
+ green: "green";
519
+ red: "red";
520
+ yellow: "yellow";
521
+ }>;
522
+ }, z.core.$strip>, z.ZodObject<{
523
+ type: z.ZodEnum<{
524
+ "color-chooser": "color-chooser";
525
+ "plus-four": "plus-four";
526
+ }>;
527
+ color: z.ZodOptional<z.ZodUndefined>;
528
+ }, z.core.$strip>]>>;
529
+ seed: z.ZodNumber;
530
+ stackedPlusTwos: z.ZodNumber;
531
+ turnStep: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<-1>]>;
532
+ ended: z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
533
+ loser: z.ZodString;
534
+ }, z.core.$strip>]>;
535
+ pile: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
536
+ type: z.ZodUnion<readonly [z.ZodEnum<{
537
+ eight: "eight";
538
+ five: "five";
539
+ four: "four";
540
+ nine: "nine";
541
+ one: "one";
542
+ seven: "seven";
543
+ six: "six";
544
+ three: "three";
545
+ two: "two";
546
+ zero: "zero";
547
+ }>, z.ZodEnum<{
548
+ "plus-two": "plus-two";
549
+ reverse: "reverse";
550
+ skip: "skip";
551
+ }>]>;
552
+ color: z.ZodEnum<{
553
+ blue: "blue";
554
+ green: "green";
555
+ red: "red";
556
+ yellow: "yellow";
557
+ }>;
558
+ }, z.core.$strip>, z.ZodObject<{
559
+ type: z.ZodEnum<{
560
+ "color-chooser": "color-chooser";
561
+ "plus-four": "plus-four";
562
+ }>;
563
+ color: z.ZodOptional<z.ZodUndefined>;
564
+ }, z.core.$strip>]>>;
565
+ last3CardPlayOrColorChanges: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
566
+ type: z.ZodUnion<readonly [z.ZodEnum<{
567
+ eight: "eight";
568
+ five: "five";
569
+ four: "four";
570
+ nine: "nine";
571
+ one: "one";
572
+ seven: "seven";
573
+ six: "six";
574
+ three: "three";
575
+ two: "two";
576
+ zero: "zero";
577
+ }>, z.ZodEnum<{
578
+ "plus-two": "plus-two";
579
+ reverse: "reverse";
580
+ skip: "skip";
581
+ }>]>;
582
+ color: z.ZodEnum<{
583
+ blue: "blue";
584
+ green: "green";
585
+ red: "red";
586
+ yellow: "yellow";
587
+ }>;
588
+ }, z.core.$strip>, z.ZodObject<{
589
+ type: z.ZodEnum<{
590
+ "color-chooser": "color-chooser";
591
+ "plus-four": "plus-four";
592
+ }>;
593
+ color: z.ZodOptional<z.ZodUndefined>;
594
+ }, z.core.$strip>]>, z.ZodEnum<{
595
+ blue: "blue";
596
+ green: "green";
597
+ red: "red";
598
+ yellow: "yellow";
599
+ }>]>>;
600
+ }, z.core.$strip>;
601
+ shorthandMode: z.ZodLiteral<true>;
602
+ events: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
603
+ type: z.ZodLiteral<"card_played">;
604
+ by: z.ZodString;
605
+ card: z.ZodUnion<readonly [z.ZodObject<{
606
+ type: z.ZodUnion<readonly [z.ZodEnum<{
607
+ eight: "eight";
608
+ five: "five";
609
+ four: "four";
610
+ nine: "nine";
611
+ one: "one";
612
+ seven: "seven";
613
+ six: "six";
614
+ three: "three";
615
+ two: "two";
616
+ zero: "zero";
617
+ }>, z.ZodEnum<{
618
+ "plus-two": "plus-two";
619
+ reverse: "reverse";
620
+ skip: "skip";
621
+ }>]>;
622
+ color: z.ZodEnum<{
623
+ blue: "blue";
624
+ green: "green";
625
+ red: "red";
626
+ yellow: "yellow";
627
+ }>;
628
+ }, z.core.$strip>, z.ZodObject<{
629
+ type: z.ZodEnum<{
630
+ "color-chooser": "color-chooser";
631
+ "plus-four": "plus-four";
632
+ }>;
633
+ color: z.ZodOptional<z.ZodUndefined>;
634
+ }, z.core.$strip>]>;
635
+ }, z.core.$strip>, z.ZodObject<{
636
+ type: z.ZodLiteral<"bluff_called">;
637
+ by: z.ZodString;
638
+ }, z.core.$strip>, z.ZodObject<{
639
+ type: z.ZodLiteral<"choose-color">;
640
+ by: z.ZodString;
641
+ color: z.ZodEnum<{
642
+ blue: "blue";
643
+ green: "green";
644
+ red: "red";
645
+ yellow: "yellow";
646
+ }>;
647
+ }, z.core.$strip>, z.ZodObject<{
648
+ type: z.ZodLiteral<"draw">;
649
+ by: z.ZodString;
650
+ }, z.core.$strip>, z.ZodObject<{
651
+ type: z.ZodLiteral<"pass">;
652
+ by: z.ZodString;
653
+ }, z.core.$strip>]>>;
654
+ }, z.core.$strip>;
655
+ export type ShorthandGameState = z.infer<typeof shorthandGameState>;
656
+ export declare const gameState: z.ZodUnion<readonly [z.ZodObject<{
657
+ index: z.ZodNumber;
658
+ initialSeed: z.ZodNumber;
659
+ players: z.ZodArray<z.ZodString>;
660
+ stackPlusTwos: z.ZodBoolean;
661
+ cache: z.ZodObject<{
662
+ hands: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
663
+ type: z.ZodUnion<readonly [z.ZodEnum<{
664
+ eight: "eight";
665
+ five: "five";
666
+ four: "four";
667
+ nine: "nine";
668
+ one: "one";
669
+ seven: "seven";
670
+ six: "six";
671
+ three: "three";
672
+ two: "two";
673
+ zero: "zero";
674
+ }>, z.ZodEnum<{
675
+ "plus-two": "plus-two";
676
+ reverse: "reverse";
677
+ skip: "skip";
678
+ }>]>;
679
+ color: z.ZodEnum<{
680
+ blue: "blue";
681
+ green: "green";
682
+ red: "red";
683
+ yellow: "yellow";
684
+ }>;
685
+ }, z.core.$strip>, z.ZodObject<{
686
+ type: z.ZodEnum<{
687
+ "color-chooser": "color-chooser";
688
+ "plus-four": "plus-four";
689
+ }>;
690
+ color: z.ZodOptional<z.ZodUndefined>;
691
+ }, z.core.$strip>]>>>;
692
+ deck: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
693
+ type: z.ZodUnion<readonly [z.ZodEnum<{
694
+ eight: "eight";
695
+ five: "five";
696
+ four: "four";
697
+ nine: "nine";
698
+ one: "one";
699
+ seven: "seven";
700
+ six: "six";
701
+ three: "three";
702
+ two: "two";
703
+ zero: "zero";
704
+ }>, z.ZodEnum<{
705
+ "plus-two": "plus-two";
706
+ reverse: "reverse";
707
+ skip: "skip";
708
+ }>]>;
709
+ color: z.ZodEnum<{
710
+ blue: "blue";
711
+ green: "green";
712
+ red: "red";
713
+ yellow: "yellow";
714
+ }>;
715
+ }, z.core.$strip>, z.ZodObject<{
716
+ type: z.ZodEnum<{
717
+ "color-chooser": "color-chooser";
718
+ "plus-four": "plus-four";
719
+ }>;
720
+ color: z.ZodOptional<z.ZodUndefined>;
721
+ }, z.core.$strip>]>>;
722
+ seed: z.ZodNumber;
723
+ stackedPlusTwos: z.ZodNumber;
724
+ turnStep: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<-1>]>;
725
+ ended: z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
726
+ loser: z.ZodString;
727
+ }, z.core.$strip>]>;
728
+ pile: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
729
+ type: z.ZodUnion<readonly [z.ZodEnum<{
730
+ eight: "eight";
731
+ five: "five";
732
+ four: "four";
733
+ nine: "nine";
734
+ one: "one";
735
+ seven: "seven";
736
+ six: "six";
737
+ three: "three";
738
+ two: "two";
739
+ zero: "zero";
740
+ }>, z.ZodEnum<{
741
+ "plus-two": "plus-two";
742
+ reverse: "reverse";
743
+ skip: "skip";
744
+ }>]>;
745
+ color: z.ZodEnum<{
746
+ blue: "blue";
747
+ green: "green";
748
+ red: "red";
749
+ yellow: "yellow";
750
+ }>;
751
+ }, z.core.$strip>, z.ZodObject<{
752
+ type: z.ZodEnum<{
753
+ "color-chooser": "color-chooser";
754
+ "plus-four": "plus-four";
755
+ }>;
756
+ color: z.ZodOptional<z.ZodUndefined>;
757
+ }, z.core.$strip>]>>;
758
+ last3CardPlayOrColorChanges: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
759
+ type: z.ZodUnion<readonly [z.ZodEnum<{
760
+ eight: "eight";
761
+ five: "five";
762
+ four: "four";
763
+ nine: "nine";
764
+ one: "one";
765
+ seven: "seven";
766
+ six: "six";
767
+ three: "three";
768
+ two: "two";
769
+ zero: "zero";
770
+ }>, z.ZodEnum<{
771
+ "plus-two": "plus-two";
772
+ reverse: "reverse";
773
+ skip: "skip";
774
+ }>]>;
775
+ color: z.ZodEnum<{
776
+ blue: "blue";
777
+ green: "green";
778
+ red: "red";
779
+ yellow: "yellow";
780
+ }>;
781
+ }, z.core.$strip>, z.ZodObject<{
782
+ type: z.ZodEnum<{
783
+ "color-chooser": "color-chooser";
784
+ "plus-four": "plus-four";
785
+ }>;
786
+ color: z.ZodOptional<z.ZodUndefined>;
787
+ }, z.core.$strip>]>, z.ZodEnum<{
788
+ blue: "blue";
789
+ green: "green";
790
+ red: "red";
791
+ yellow: "yellow";
792
+ }>]>>;
793
+ }, z.core.$strip>;
794
+ shorthandMode: z.ZodLiteral<false>;
795
+ events: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
796
+ type: z.ZodLiteral<"card_played">;
797
+ by: z.ZodString;
798
+ card: z.ZodUnion<readonly [z.ZodObject<{
799
+ type: z.ZodUnion<readonly [z.ZodEnum<{
800
+ eight: "eight";
801
+ five: "five";
802
+ four: "four";
803
+ nine: "nine";
804
+ one: "one";
805
+ seven: "seven";
806
+ six: "six";
807
+ three: "three";
808
+ two: "two";
809
+ zero: "zero";
810
+ }>, z.ZodEnum<{
811
+ "plus-two": "plus-two";
812
+ reverse: "reverse";
813
+ skip: "skip";
814
+ }>]>;
815
+ color: z.ZodEnum<{
816
+ blue: "blue";
817
+ green: "green";
818
+ red: "red";
819
+ yellow: "yellow";
820
+ }>;
821
+ }, z.core.$strip>, z.ZodObject<{
822
+ type: z.ZodEnum<{
823
+ "color-chooser": "color-chooser";
824
+ "plus-four": "plus-four";
825
+ }>;
826
+ color: z.ZodOptional<z.ZodUndefined>;
827
+ }, z.core.$strip>]>;
828
+ }, z.core.$strip>, z.ZodObject<{
829
+ type: z.ZodLiteral<"bluff_called">;
830
+ by: z.ZodString;
831
+ }, z.core.$strip>, z.ZodObject<{
832
+ type: z.ZodLiteral<"choose-color">;
833
+ by: z.ZodString;
834
+ color: z.ZodEnum<{
835
+ blue: "blue";
836
+ green: "green";
837
+ red: "red";
838
+ yellow: "yellow";
839
+ }>;
840
+ }, z.core.$strip>, z.ZodObject<{
841
+ type: z.ZodLiteral<"draw">;
842
+ by: z.ZodString;
843
+ }, z.core.$strip>, z.ZodObject<{
844
+ type: z.ZodLiteral<"pass">;
845
+ by: z.ZodString;
846
+ }, z.core.$strip>]>, z.ZodObject<{
847
+ type: z.ZodLiteral<"game_info">;
848
+ info: z.ZodUnion<readonly [z.ZodObject<{
849
+ type: z.ZodLiteral<"bluff_called">;
850
+ by: z.ZodString;
851
+ }, z.core.$strip>, z.ZodObject<{
852
+ type: z.ZodLiteral<"bluff_call_succeeded">;
853
+ by: z.ZodString;
854
+ of: z.ZodString;
855
+ }, z.core.$strip>, z.ZodObject<{
856
+ type: z.ZodLiteral<"bluff_call_failed">;
857
+ by: z.ZodString;
858
+ of: z.ZodString;
859
+ }, z.core.$strip>, z.ZodObject<{
860
+ type: z.ZodLiteral<"seed_changed">;
861
+ newSeed: z.ZodNumber;
862
+ }, z.core.$strip>, z.ZodObject<{
863
+ type: z.ZodLiteral<"player_won">;
864
+ id: z.ZodString;
865
+ }, z.core.$strip>, z.ZodObject<{
866
+ type: z.ZodLiteral<"game_ended">;
867
+ loser: z.ZodString;
868
+ }, z.core.$strip>, z.ZodObject<{
869
+ type: z.ZodLiteral<"player_joined">;
870
+ id: z.ZodString;
871
+ }, z.core.$strip>, z.ZodObject<{
872
+ type: z.ZodLiteral<"player_left">;
873
+ id: z.ZodString;
874
+ }, z.core.$strip>, z.ZodObject<{
875
+ type: z.ZodLiteral<"pile_to_deck">;
876
+ }, z.core.$strip>]>;
877
+ }, z.core.$strip>]>>;
878
+ }, z.core.$strip>, z.ZodObject<{
879
+ index: z.ZodNumber;
880
+ initialSeed: z.ZodNumber;
881
+ players: z.ZodArray<z.ZodString>;
882
+ stackPlusTwos: z.ZodBoolean;
883
+ cache: z.ZodObject<{
884
+ hands: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
885
+ type: z.ZodUnion<readonly [z.ZodEnum<{
886
+ eight: "eight";
887
+ five: "five";
888
+ four: "four";
889
+ nine: "nine";
890
+ one: "one";
891
+ seven: "seven";
892
+ six: "six";
893
+ three: "three";
894
+ two: "two";
895
+ zero: "zero";
896
+ }>, z.ZodEnum<{
897
+ "plus-two": "plus-two";
898
+ reverse: "reverse";
899
+ skip: "skip";
900
+ }>]>;
901
+ color: z.ZodEnum<{
902
+ blue: "blue";
903
+ green: "green";
904
+ red: "red";
905
+ yellow: "yellow";
906
+ }>;
907
+ }, z.core.$strip>, z.ZodObject<{
908
+ type: z.ZodEnum<{
909
+ "color-chooser": "color-chooser";
910
+ "plus-four": "plus-four";
911
+ }>;
912
+ color: z.ZodOptional<z.ZodUndefined>;
913
+ }, z.core.$strip>]>>>;
914
+ deck: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
915
+ type: z.ZodUnion<readonly [z.ZodEnum<{
916
+ eight: "eight";
917
+ five: "five";
918
+ four: "four";
919
+ nine: "nine";
920
+ one: "one";
921
+ seven: "seven";
922
+ six: "six";
923
+ three: "three";
924
+ two: "two";
925
+ zero: "zero";
926
+ }>, z.ZodEnum<{
927
+ "plus-two": "plus-two";
928
+ reverse: "reverse";
929
+ skip: "skip";
930
+ }>]>;
931
+ color: z.ZodEnum<{
932
+ blue: "blue";
933
+ green: "green";
934
+ red: "red";
935
+ yellow: "yellow";
936
+ }>;
937
+ }, z.core.$strip>, z.ZodObject<{
938
+ type: z.ZodEnum<{
939
+ "color-chooser": "color-chooser";
940
+ "plus-four": "plus-four";
941
+ }>;
942
+ color: z.ZodOptional<z.ZodUndefined>;
943
+ }, z.core.$strip>]>>;
944
+ seed: z.ZodNumber;
945
+ stackedPlusTwos: z.ZodNumber;
946
+ turnStep: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<-1>]>;
947
+ ended: z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
948
+ loser: z.ZodString;
949
+ }, z.core.$strip>]>;
950
+ pile: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
951
+ type: z.ZodUnion<readonly [z.ZodEnum<{
952
+ eight: "eight";
953
+ five: "five";
954
+ four: "four";
955
+ nine: "nine";
956
+ one: "one";
957
+ seven: "seven";
958
+ six: "six";
959
+ three: "three";
960
+ two: "two";
961
+ zero: "zero";
962
+ }>, z.ZodEnum<{
963
+ "plus-two": "plus-two";
964
+ reverse: "reverse";
965
+ skip: "skip";
966
+ }>]>;
967
+ color: z.ZodEnum<{
968
+ blue: "blue";
969
+ green: "green";
970
+ red: "red";
971
+ yellow: "yellow";
972
+ }>;
973
+ }, z.core.$strip>, z.ZodObject<{
974
+ type: z.ZodEnum<{
975
+ "color-chooser": "color-chooser";
976
+ "plus-four": "plus-four";
977
+ }>;
978
+ color: z.ZodOptional<z.ZodUndefined>;
979
+ }, z.core.$strip>]>>;
980
+ last3CardPlayOrColorChanges: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
981
+ type: z.ZodUnion<readonly [z.ZodEnum<{
982
+ eight: "eight";
983
+ five: "five";
984
+ four: "four";
985
+ nine: "nine";
986
+ one: "one";
987
+ seven: "seven";
988
+ six: "six";
989
+ three: "three";
990
+ two: "two";
991
+ zero: "zero";
992
+ }>, z.ZodEnum<{
993
+ "plus-two": "plus-two";
994
+ reverse: "reverse";
995
+ skip: "skip";
996
+ }>]>;
997
+ color: z.ZodEnum<{
998
+ blue: "blue";
999
+ green: "green";
1000
+ red: "red";
1001
+ yellow: "yellow";
1002
+ }>;
1003
+ }, z.core.$strip>, z.ZodObject<{
1004
+ type: z.ZodEnum<{
1005
+ "color-chooser": "color-chooser";
1006
+ "plus-four": "plus-four";
1007
+ }>;
1008
+ color: z.ZodOptional<z.ZodUndefined>;
1009
+ }, z.core.$strip>]>, z.ZodEnum<{
1010
+ blue: "blue";
1011
+ green: "green";
1012
+ red: "red";
1013
+ yellow: "yellow";
1014
+ }>]>>;
1015
+ }, z.core.$strip>;
1016
+ shorthandMode: z.ZodLiteral<true>;
1017
+ events: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1018
+ type: z.ZodLiteral<"card_played">;
1019
+ by: z.ZodString;
1020
+ card: z.ZodUnion<readonly [z.ZodObject<{
1021
+ type: z.ZodUnion<readonly [z.ZodEnum<{
1022
+ eight: "eight";
1023
+ five: "five";
1024
+ four: "four";
1025
+ nine: "nine";
1026
+ one: "one";
1027
+ seven: "seven";
1028
+ six: "six";
1029
+ three: "three";
1030
+ two: "two";
1031
+ zero: "zero";
1032
+ }>, z.ZodEnum<{
1033
+ "plus-two": "plus-two";
1034
+ reverse: "reverse";
1035
+ skip: "skip";
1036
+ }>]>;
1037
+ color: z.ZodEnum<{
1038
+ blue: "blue";
1039
+ green: "green";
1040
+ red: "red";
1041
+ yellow: "yellow";
1042
+ }>;
1043
+ }, z.core.$strip>, z.ZodObject<{
1044
+ type: z.ZodEnum<{
1045
+ "color-chooser": "color-chooser";
1046
+ "plus-four": "plus-four";
1047
+ }>;
1048
+ color: z.ZodOptional<z.ZodUndefined>;
1049
+ }, z.core.$strip>]>;
1050
+ }, z.core.$strip>, z.ZodObject<{
1051
+ type: z.ZodLiteral<"bluff_called">;
1052
+ by: z.ZodString;
1053
+ }, z.core.$strip>, z.ZodObject<{
1054
+ type: z.ZodLiteral<"choose-color">;
1055
+ by: z.ZodString;
1056
+ color: z.ZodEnum<{
1057
+ blue: "blue";
1058
+ green: "green";
1059
+ red: "red";
1060
+ yellow: "yellow";
1061
+ }>;
1062
+ }, z.core.$strip>, z.ZodObject<{
1063
+ type: z.ZodLiteral<"draw">;
1064
+ by: z.ZodString;
1065
+ }, z.core.$strip>, z.ZodObject<{
1066
+ type: z.ZodLiteral<"pass">;
1067
+ by: z.ZodString;
1068
+ }, z.core.$strip>]>>;
1069
+ }, z.core.$strip>]>;
1070
+ export type GameState = z.infer<typeof gameState>;
1071
+ export type ProcessEventResult = {
1072
+ type: "card_played";
1073
+ card: Card;
1074
+ formatted: string;
1075
+ } | {
1076
+ type: "player_win_game_end";
1077
+ won: string;
1078
+ lost: string;
1079
+ formatted: string;
1080
+ } | {
1081
+ type: "player_win";
1082
+ won: string;
1083
+ formatted: string;
1084
+ } | {
1085
+ type: "drawing_cards";
1086
+ cards: Card[];
1087
+ count: number;
1088
+ formatted: string;
1089
+ } | {
1090
+ type: "turn_passed";
1091
+ formatted: string;
1092
+ } | {
1093
+ type: "bluff_call_succeeded";
1094
+ by: string;
1095
+ of: string;
1096
+ formatted: string;
1097
+ } | {
1098
+ type: "bluff_call_failed";
1099
+ by: string;
1100
+ of: string;
1101
+ formatted: string;
1102
+ } | {
1103
+ type: "color_changed";
1104
+ to: string;
1105
+ formatted: string;
1106
+ };