motely-wasm 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1236 @@
1
+ import type { Event } from "./event";
2
+
3
+ export namespace Analysis {
4
+ export interface IMotelySingleSearchContextImpl {
5
+ getSeed(): string;
6
+ pseudoHash(key: string, isCached: boolean): number;
7
+ getAnteFirstVoucher(ante: number): Motely.MotelyVoucher;
8
+ getAnteFirstVoucherStateful(ante: number, jsState: Motely.MotelyJsRunState): Motely.MotelyVoucherStateResult;
9
+ getNextTag(ante: number): Motely.MotelyTag;
10
+ getBossForAnte(ante: number): Motely.MotelyBossBlind;
11
+ getBossForAnteStateful(ante: number, jsState: Motely.MotelyJsRunState): Motely.MotelyBossStateResult;
12
+ getAnteFirstVoucherWithState(ante: number, jsState: Motely.MotelyJsRunState): Motely.MotelyVoucher;
13
+ getNextBoosterPack(ante: number): Motely.MotelyBoosterPack;
14
+ getNextShopItem(ante: number): Motely.MotelyItem;
15
+ getNextShopJoker(ante: number): Motely.MotelyItem;
16
+ getNextTarot(ante: number): Motely.MotelyItem;
17
+ getNextSpectral(ante: number): Motely.MotelyItem;
18
+ getNextPlanet(ante: number): Motely.MotelyItem;
19
+ getNextStandardCard(ante: number): Motely.MotelyItem;
20
+ getNextMisprintMult(): number;
21
+ getNextLuckyMoney(baseLuck: number): boolean;
22
+ getNextLuckyMult(baseLuck: number): boolean;
23
+ getNextErraticDeckCard(): Motely.MotelyItem;
24
+ }
25
+ }
26
+ export namespace Filters {
27
+ export interface JamlConfig {
28
+ id: string;
29
+ name?: string;
30
+ description?: string;
31
+ author?: string;
32
+ dateCreated: string;
33
+ deck: Motely.MotelyDeck;
34
+ stake: Motely.MotelyStake;
35
+ hashtags: Array<string>;
36
+ must: Filters.JamlClauseSet;
37
+ should: Filters.JamlClauseSet;
38
+ mustNot: Filters.JamlClauseSet;
39
+ hasAnyClauses: boolean;
40
+ filterId: string;
41
+ aesthetics: Array<Filters.JamlAesthetic>;
42
+ }
43
+ export interface JamlClauseSet {
44
+ orderedClauses: Array<Filters.IJamlClause>;
45
+ jokers: Array<Filters.JokerClause>;
46
+ commonJokers: Array<Filters.CommonJokerClause>;
47
+ uncommonJokers: Array<Filters.UncommonJokerClause>;
48
+ rareJokers: Array<Filters.RareJokerClause>;
49
+ mixedJokers: Array<Filters.MixedJokerClause>;
50
+ legendaryJokers: Array<Filters.LegendaryJokerClause>;
51
+ vouchers: Array<Filters.VoucherClause>;
52
+ tarotCards: Array<Filters.TarotCardClause>;
53
+ spectralCards: Array<Filters.SpectralCardClause>;
54
+ planetCards: Array<Filters.PlanetCardClause>;
55
+ standardCards: Array<Filters.StandardCardClause>;
56
+ bosses: Array<Filters.BossClause>;
57
+ tags: Array<Filters.TagClause>;
58
+ erraticRanks: Array<Filters.ErraticRankClause>;
59
+ erraticSuits: Array<Filters.ErraticSuitClause>;
60
+ erraticCards: Array<Filters.ErraticCardClause>;
61
+ luckyMoney: Array<Filters.LuckyMoneyClause>;
62
+ luckyMult: Array<Filters.LuckyMultClause>;
63
+ misprintMult: Array<Filters.MisprintMultClause>;
64
+ wheelOfFortune: Array<Filters.WheelOfFortuneClause>;
65
+ cavendishExtinct: Array<Filters.CavendishExtinctClause>;
66
+ grosMichelExtinct: Array<Filters.GrosMichelExtinctClause>;
67
+ startingDraw: Array<Filters.StartingDrawClause>;
68
+ and: Array<Filters.AndClause>;
69
+ or: Array<Filters.OrClause>;
70
+ }
71
+ export interface IJamlClause {
72
+ label: string;
73
+ score: number;
74
+ }
75
+ export interface JokerClause extends Filters.IJamlClause {
76
+ label: string;
77
+ score: number;
78
+ jokers: Int32Array;
79
+ isWildcard: boolean;
80
+ wildcardRarity?: Motely.MotelyJokerRarity;
81
+ edition?: Motely.MotelyItemEdition;
82
+ stickers: Int32Array;
83
+ sources: Filters.JokerSourceConfig;
84
+ antes: Int32Array;
85
+ min: number;
86
+ }
87
+ export interface JokerSourceConfig {
88
+ shopItems: Int32Array;
89
+ boosterPacks: Int32Array;
90
+ judgement: Int32Array;
91
+ wraith: Int32Array;
92
+ riffRaff: Int32Array;
93
+ rareTag: Int32Array;
94
+ uncommonTag: Int32Array;
95
+ commonShopJokers: Int32Array;
96
+ uncommonShopJokers: Int32Array;
97
+ rareShopJokers: Int32Array;
98
+ allShopJokers: Int32Array;
99
+ }
100
+ export interface CommonJokerClause extends Filters.IJamlClause {
101
+ label: string;
102
+ score: number;
103
+ jokers: Int32Array;
104
+ isWildcard: boolean;
105
+ edition?: Motely.MotelyItemEdition;
106
+ stickers: Int32Array;
107
+ sources: Filters.JokerSourceConfig;
108
+ antes: Int32Array;
109
+ min: number;
110
+ }
111
+ export interface UncommonJokerClause extends Filters.IJamlClause {
112
+ label: string;
113
+ score: number;
114
+ jokers: Int32Array;
115
+ isWildcard: boolean;
116
+ edition?: Motely.MotelyItemEdition;
117
+ stickers: Int32Array;
118
+ sources: Filters.JokerSourceConfig;
119
+ antes: Int32Array;
120
+ min: number;
121
+ }
122
+ export interface RareJokerClause extends Filters.IJamlClause {
123
+ label: string;
124
+ score: number;
125
+ jokers: Int32Array;
126
+ isWildcard: boolean;
127
+ edition?: Motely.MotelyItemEdition;
128
+ stickers: Int32Array;
129
+ sources: Filters.JokerSourceConfig;
130
+ antes: Int32Array;
131
+ min: number;
132
+ }
133
+ export interface MixedJokerClause extends Filters.IJamlClause {
134
+ label: string;
135
+ score: number;
136
+ jokers: Int32Array;
137
+ isWildcard: boolean;
138
+ wildcardRarity?: Motely.MotelyJokerRarity;
139
+ edition?: Motely.MotelyItemEdition;
140
+ stickers: Int32Array;
141
+ sources: Filters.JokerSourceConfig;
142
+ antes: Int32Array;
143
+ min: number;
144
+ }
145
+ export interface LegendaryJokerClause extends Filters.IJamlClause {
146
+ label: string;
147
+ score: number;
148
+ jokers: Int32Array;
149
+ isWildcard: boolean;
150
+ edition?: Motely.MotelyItemEdition;
151
+ sources: Filters.SoulJokerSourceConfig;
152
+ antes: Int32Array;
153
+ min: number;
154
+ soulCardOnly: boolean;
155
+ soulEditionRolls: number;
156
+ }
157
+ export interface SoulJokerSourceConfig {
158
+ shopItems: Int32Array;
159
+ boosterPacks: Int32Array;
160
+ arcanaBoosterPacks: Int32Array;
161
+ spectralBoosterPacks: Int32Array;
162
+ soulCard: Int32Array;
163
+ requireMegaPack: boolean;
164
+ }
165
+ export interface VoucherClause extends Filters.IJamlClause {
166
+ label: string;
167
+ score: number;
168
+ vouchers: Int32Array;
169
+ antes: Int32Array;
170
+ min: number;
171
+ }
172
+ export interface TarotCardClause extends Filters.IJamlClause {
173
+ label: string;
174
+ score: number;
175
+ tarots: Int32Array;
176
+ sources: Filters.TarotCardSourceConfig;
177
+ antes: Int32Array;
178
+ min: number;
179
+ }
180
+ export interface TarotCardSourceConfig {
181
+ shopItems: Int32Array;
182
+ boosterPacks: Int32Array;
183
+ emperor: Int32Array;
184
+ purpleSealOrEightBall: Int32Array;
185
+ charmTag: boolean;
186
+ }
187
+ export interface SpectralCardClause extends Filters.IJamlClause {
188
+ label: string;
189
+ score: number;
190
+ spectrals: Int32Array;
191
+ sources: Filters.SpectralCardSourceConfig;
192
+ antes: Int32Array;
193
+ min: number;
194
+ }
195
+ export interface SpectralCardSourceConfig {
196
+ shopItems: Int32Array;
197
+ boosterPacks: Int32Array;
198
+ sixthSense: Int32Array;
199
+ seance: Int32Array;
200
+ etherealTag: boolean;
201
+ }
202
+ export interface PlanetCardClause extends Filters.IJamlClause {
203
+ label: string;
204
+ score: number;
205
+ planets: Int32Array;
206
+ sources: Filters.PlanetSourceConfig;
207
+ antes: Int32Array;
208
+ min: number;
209
+ }
210
+ export interface PlanetSourceConfig {
211
+ shopItems: Int32Array;
212
+ boosterPacks: Int32Array;
213
+ }
214
+ export interface StandardCardClause extends Filters.IJamlClause {
215
+ label: string;
216
+ score: number;
217
+ rank?: Motely.MotelyPlayingCardRank;
218
+ suit?: Motely.MotelyPlayingCardSuit;
219
+ enhancement?: Motely.MotelyItemEnhancement;
220
+ seal?: Motely.MotelyItemSeal;
221
+ edition?: Motely.MotelyItemEdition;
222
+ sources: Filters.StandardCardSourceConfig;
223
+ antes: Int32Array;
224
+ min: number;
225
+ }
226
+ export interface StandardCardSourceConfig {
227
+ shopItems: Int32Array;
228
+ boosterPacks: Int32Array;
229
+ certificate: Int32Array;
230
+ incantation: Int32Array;
231
+ familiar: Int32Array;
232
+ grim: Int32Array;
233
+ deckDraw: Int32Array;
234
+ }
235
+ export interface BossClause extends Filters.IJamlClause {
236
+ label: string;
237
+ score: number;
238
+ bosses: Int32Array;
239
+ antes: Int32Array;
240
+ min: number;
241
+ }
242
+ export interface TagClause extends Filters.IJamlClause {
243
+ label: string;
244
+ score: number;
245
+ tags: Int32Array;
246
+ position: Filters.TagPosition;
247
+ antes: Int32Array;
248
+ min: number;
249
+ }
250
+ export enum TagPosition {
251
+ Any,
252
+ SmallBlind,
253
+ BigBlind
254
+ }
255
+ export interface ErraticRankClause extends Filters.IJamlClause {
256
+ label: string;
257
+ score: number;
258
+ rank: Motely.MotelyPlayingCardRank;
259
+ antes: Int32Array;
260
+ min: number;
261
+ }
262
+ export interface ErraticSuitClause extends Filters.IJamlClause {
263
+ label: string;
264
+ score: number;
265
+ suit: Motely.MotelyPlayingCardSuit;
266
+ antes: Int32Array;
267
+ min: number;
268
+ }
269
+ export interface ErraticCardClause extends Filters.IJamlClause {
270
+ label: string;
271
+ score: number;
272
+ rank?: Motely.MotelyPlayingCardRank;
273
+ suit?: Motely.MotelyPlayingCardSuit;
274
+ antes: Int32Array;
275
+ min: number;
276
+ }
277
+ export interface LuckyMoneyClause extends Filters.IJamlClause {
278
+ label: string;
279
+ score: number;
280
+ rolls: Int32Array;
281
+ min: number;
282
+ }
283
+ export interface LuckyMultClause extends Filters.IJamlClause {
284
+ label: string;
285
+ score: number;
286
+ rolls: Int32Array;
287
+ min: number;
288
+ }
289
+ export interface MisprintMultClause extends Filters.IJamlClause {
290
+ label: string;
291
+ score: number;
292
+ rolls: Int32Array;
293
+ min: number;
294
+ value?: number;
295
+ }
296
+ export interface WheelOfFortuneClause extends Filters.IJamlClause {
297
+ label: string;
298
+ score: number;
299
+ rolls: Int32Array;
300
+ min: number;
301
+ }
302
+ export interface CavendishExtinctClause extends Filters.IJamlClause {
303
+ label: string;
304
+ score: number;
305
+ rolls: Int32Array;
306
+ min: number;
307
+ }
308
+ export interface GrosMichelExtinctClause extends Filters.IJamlClause {
309
+ label: string;
310
+ score: number;
311
+ rolls: Int32Array;
312
+ min: number;
313
+ }
314
+ export interface StartingDrawClause extends Filters.IJamlClause {
315
+ label: string;
316
+ score: number;
317
+ rank?: Motely.MotelyPlayingCardRank;
318
+ suit?: Motely.MotelyPlayingCardSuit;
319
+ antes: Int32Array;
320
+ min: number;
321
+ }
322
+ export interface AndClause extends Filters.LogicClause, Filters.IJamlClause {
323
+ clauses: Array<Filters.IJamlClause>;
324
+ }
325
+ export interface LogicClause extends Filters.IJamlClause {
326
+ label: string;
327
+ score: number;
328
+ }
329
+ export interface OrClause extends Filters.LogicClause, Filters.IJamlClause {
330
+ clauses: Array<Filters.IJamlClause>;
331
+ min: number;
332
+ }
333
+ export enum JamlAesthetic {
334
+ Palindrome,
335
+ Psychosis,
336
+ Gross,
337
+ Nsfw,
338
+ Funny,
339
+ Balatro
340
+ }
341
+ }
342
+ export namespace Motely {
343
+ export enum MotelyDeck {
344
+ Red,
345
+ Blue,
346
+ Yellow,
347
+ Green,
348
+ Black,
349
+ Magic,
350
+ Nebula,
351
+ Ghost,
352
+ Abandoned,
353
+ Checkered,
354
+ Zodiac,
355
+ Painted,
356
+ Anaglyph,
357
+ Plasma,
358
+ Erratic
359
+ }
360
+ export enum MotelyStake {
361
+ White,
362
+ Red,
363
+ Green,
364
+ Black,
365
+ Blue,
366
+ Purple,
367
+ Orange,
368
+ Gold
369
+ }
370
+ export enum MotelyVoucher {
371
+ Overstock,
372
+ OverstockPlus,
373
+ ClearanceSale,
374
+ Liquidation,
375
+ Hone,
376
+ GlowUp,
377
+ RerollSurplus,
378
+ RerollGlut,
379
+ CrystalBall,
380
+ OmenGlobe,
381
+ Telescope,
382
+ Observatory,
383
+ Grabber,
384
+ NachoTong,
385
+ Wasteful,
386
+ Recyclomancy,
387
+ TarotMerchant,
388
+ TarotTycoon,
389
+ PlanetMerchant,
390
+ PlanetTycoon,
391
+ SeedMoney,
392
+ MoneyTree,
393
+ Blank,
394
+ Antimatter,
395
+ MagicTrick,
396
+ Illusion,
397
+ Hieroglyph,
398
+ Petroglyph,
399
+ DirectorsCut,
400
+ Retcon,
401
+ PaintBrush,
402
+ Palette
403
+ }
404
+ export interface MotelyJsRunState {
405
+ voucherBitfield: number;
406
+ bossBitfield: number;
407
+ }
408
+ export interface MotelyVoucherStateResult {
409
+ voucher: Motely.MotelyVoucher;
410
+ runState: Motely.MotelyJsRunState;
411
+ }
412
+ export enum MotelyTag {
413
+ UncommonTag,
414
+ RareTag,
415
+ NegativeTag,
416
+ FoilTag,
417
+ HolographicTag,
418
+ PolychromeTag,
419
+ InvestmentTag,
420
+ VoucherTag,
421
+ BossTag,
422
+ StandardTag,
423
+ CharmTag,
424
+ MeteorTag,
425
+ BuffoonTag,
426
+ HandyTag,
427
+ GarbageTag,
428
+ EtherealTag,
429
+ CouponTag,
430
+ DoubleTag,
431
+ JuggleTag,
432
+ D6Tag,
433
+ TopupTag,
434
+ SpeedTag,
435
+ OrbitalTag,
436
+ EconomyTag
437
+ }
438
+ export enum MotelyBossBlind {
439
+ AmberAcorn,
440
+ CeruleanBell,
441
+ CrimsonHeart,
442
+ VerdantLeaf,
443
+ VioletVessel,
444
+ TheClub,
445
+ TheGoad,
446
+ TheHead,
447
+ TheHook,
448
+ TheManacle,
449
+ ThePillar,
450
+ ThePsychic,
451
+ TheWindow,
452
+ TheArm,
453
+ TheFish,
454
+ TheFlint,
455
+ TheHouse,
456
+ TheMark,
457
+ TheMouth,
458
+ TheNeedle,
459
+ TheWall,
460
+ TheWater,
461
+ TheWheel,
462
+ TheEye,
463
+ TheTooth,
464
+ ThePlant,
465
+ TheSerpent,
466
+ TheOx
467
+ }
468
+ export interface MotelyBossStateResult {
469
+ boss: Motely.MotelyBossBlind;
470
+ runState: Motely.MotelyJsRunState;
471
+ }
472
+ export enum MotelyBoosterPack {
473
+ Arcana,
474
+ JumboArcana,
475
+ MegaArcana,
476
+ Celestial,
477
+ JumboCelestial,
478
+ MegaCelestial,
479
+ Standard,
480
+ JumboStandard,
481
+ MegaStandard,
482
+ Buffoon,
483
+ JumboBuffoon,
484
+ MegaBuffoon,
485
+ Spectral,
486
+ JumboSpectral,
487
+ MegaSpectral
488
+ }
489
+ export interface MotelyItem {
490
+ value: number;
491
+ }
492
+ export enum MotelyItemType {
493
+ C2,
494
+ C3,
495
+ C4,
496
+ C5,
497
+ C6,
498
+ C7,
499
+ C8,
500
+ C9,
501
+ C10,
502
+ CJ,
503
+ CQ,
504
+ CK,
505
+ CA,
506
+ D2,
507
+ D3,
508
+ D4,
509
+ D5,
510
+ D6,
511
+ D7,
512
+ D8,
513
+ D9,
514
+ D10,
515
+ DJ,
516
+ DQ,
517
+ DK,
518
+ DA,
519
+ H2,
520
+ H3,
521
+ H4,
522
+ H5,
523
+ H6,
524
+ H7,
525
+ H8,
526
+ H9,
527
+ H10,
528
+ HJ,
529
+ HQ,
530
+ HK,
531
+ HA,
532
+ S2,
533
+ S3,
534
+ S4,
535
+ S5,
536
+ S6,
537
+ S7,
538
+ S8,
539
+ S9,
540
+ S10,
541
+ SJ,
542
+ SQ,
543
+ SK,
544
+ SA,
545
+ Familiar,
546
+ Grim,
547
+ Incantation,
548
+ Talisman,
549
+ Aura,
550
+ Wraith,
551
+ Sigil,
552
+ Ouija,
553
+ Ectoplasm,
554
+ Immolate,
555
+ Ankh,
556
+ DejaVu,
557
+ Hex,
558
+ Trance,
559
+ Medium,
560
+ Cryptid,
561
+ TheSoul,
562
+ BlackHole,
563
+ TheFool,
564
+ TheMagician,
565
+ TheHighPriestess,
566
+ TheEmpress,
567
+ TheEmperor,
568
+ TheHierophant,
569
+ TheLovers,
570
+ TheChariot,
571
+ Justice,
572
+ TheHermit,
573
+ TheWheelOfFortune,
574
+ Strength,
575
+ TheHangedMan,
576
+ Death,
577
+ Temperance,
578
+ TheDevil,
579
+ TheTower,
580
+ TheStar,
581
+ TheMoon,
582
+ TheSun,
583
+ Judgement,
584
+ TheWorld,
585
+ Mercury,
586
+ Venus,
587
+ Earth,
588
+ Mars,
589
+ Jupiter,
590
+ Saturn,
591
+ Uranus,
592
+ Neptune,
593
+ Pluto,
594
+ PlanetX,
595
+ Ceres,
596
+ Eris,
597
+ Joker,
598
+ GreedyJoker,
599
+ LustyJoker,
600
+ WrathfulJoker,
601
+ GluttonousJoker,
602
+ JollyJoker,
603
+ ZanyJoker,
604
+ MadJoker,
605
+ CrazyJoker,
606
+ DrollJoker,
607
+ SlyJoker,
608
+ WilyJoker,
609
+ CleverJoker,
610
+ DeviousJoker,
611
+ CraftyJoker,
612
+ HalfJoker,
613
+ CreditCard,
614
+ Banner,
615
+ MysticSummit,
616
+ EightBall,
617
+ Misprint,
618
+ RaisedFist,
619
+ ChaostheClown,
620
+ ScaryFace,
621
+ AbstractJoker,
622
+ DelayedGratification,
623
+ GrosMichel,
624
+ EvenSteven,
625
+ OddTodd,
626
+ Scholar,
627
+ BusinessCard,
628
+ Supernova,
629
+ RideTheBus,
630
+ Egg,
631
+ Runner,
632
+ IceCream,
633
+ Splash,
634
+ BlueJoker,
635
+ FacelessJoker,
636
+ GreenJoker,
637
+ Superposition,
638
+ ToDoList,
639
+ Cavendish,
640
+ RedCard,
641
+ SquareJoker,
642
+ RiffRaff,
643
+ Photograph,
644
+ ReservedParking,
645
+ MailInRebate,
646
+ Hallucination,
647
+ FortuneTeller,
648
+ Juggler,
649
+ Drunkard,
650
+ GoldenJoker,
651
+ Popcorn,
652
+ WalkieTalkie,
653
+ SmileyFace,
654
+ GoldenTicket,
655
+ Swashbuckler,
656
+ HangingChad,
657
+ ShootTheMoon,
658
+ JokerStencil,
659
+ FourFingers,
660
+ Mime,
661
+ CeremonialDagger,
662
+ MarbleJoker,
663
+ LoyaltyCard,
664
+ Dusk,
665
+ Fibonacci,
666
+ SteelJoker,
667
+ Hack,
668
+ Pareidolia,
669
+ SpaceJoker,
670
+ Burglar,
671
+ Blackboard,
672
+ SixthSense,
673
+ Constellation,
674
+ Hiker,
675
+ CardSharp,
676
+ Madness,
677
+ Seance,
678
+ Vampire,
679
+ Shortcut,
680
+ Hologram,
681
+ Cloud9,
682
+ Rocket,
683
+ MidasMask,
684
+ Luchador,
685
+ GiftCard,
686
+ TurtleBean,
687
+ Erosion,
688
+ ToTheMoon,
689
+ StoneJoker,
690
+ LuckyCat,
691
+ Bull,
692
+ DietCola,
693
+ TradingCard,
694
+ FlashCard,
695
+ SpareTrousers,
696
+ Ramen,
697
+ Seltzer,
698
+ Castle,
699
+ MrBones,
700
+ Acrobat,
701
+ SockAndBuskin,
702
+ Troubadour,
703
+ Certificate,
704
+ SmearedJoker,
705
+ Throwback,
706
+ RoughGem,
707
+ Bloodstone,
708
+ Arrowhead,
709
+ OnyxAgate,
710
+ GlassJoker,
711
+ Showman,
712
+ FlowerPot,
713
+ MerryAndy,
714
+ OopsAll6s,
715
+ TheIdol,
716
+ SeeingDouble,
717
+ Matador,
718
+ Satellite,
719
+ Cartomancer,
720
+ Astronomer,
721
+ Bootstraps,
722
+ DNA,
723
+ Vagabond,
724
+ Baron,
725
+ Obelisk,
726
+ BaseballCard,
727
+ AncientJoker,
728
+ Campfire,
729
+ Blueprint,
730
+ WeeJoker,
731
+ HitTheRoad,
732
+ TheDuo,
733
+ TheTrio,
734
+ TheFamily,
735
+ TheOrder,
736
+ TheTribe,
737
+ Stuntman,
738
+ InvisibleJoker,
739
+ Brainstorm,
740
+ DriversLicense,
741
+ BurntJoker,
742
+ Canio,
743
+ Triboulet,
744
+ Yorick,
745
+ Chicot,
746
+ Perkeo,
747
+ Invalid,
748
+ NotImplemented,
749
+ JokerExcludedByStream,
750
+ PlanetExcludedByStream,
751
+ TarotExcludedByStream,
752
+ SpectralExcludedByStream
753
+ }
754
+ export enum MotelyItemTypeCategory {
755
+ PlayingCard,
756
+ SpectralCard,
757
+ TarotCard,
758
+ PlanetCard,
759
+ Joker,
760
+ Invalid
761
+ }
762
+ export enum MotelyItemSeal {
763
+ None,
764
+ Gold,
765
+ Red,
766
+ Blue,
767
+ Purple
768
+ }
769
+ export enum MotelyItemEnhancement {
770
+ None,
771
+ Bonus,
772
+ Mult,
773
+ Wild,
774
+ Glass,
775
+ Steel,
776
+ Stone,
777
+ Gold,
778
+ Lucky
779
+ }
780
+ export enum MotelyItemEdition {
781
+ None,
782
+ Foil,
783
+ Holographic,
784
+ Polychrome,
785
+ Negative
786
+ }
787
+ export enum MotelyPlayingCardSuit {
788
+ Clubs,
789
+ Diamonds,
790
+ Hearts,
791
+ Spades
792
+ }
793
+ export enum MotelyPlayingCardRank {
794
+ Two,
795
+ Three,
796
+ Four,
797
+ Five,
798
+ Six,
799
+ Seven,
800
+ Eight,
801
+ Nine,
802
+ Ten,
803
+ Jack,
804
+ Queen,
805
+ King,
806
+ Ace
807
+ }
808
+ export enum MotelyJoker {
809
+ Joker,
810
+ GreedyJoker,
811
+ LustyJoker,
812
+ WrathfulJoker,
813
+ GluttonousJoker,
814
+ JollyJoker,
815
+ ZanyJoker,
816
+ MadJoker,
817
+ CrazyJoker,
818
+ DrollJoker,
819
+ SlyJoker,
820
+ WilyJoker,
821
+ CleverJoker,
822
+ DeviousJoker,
823
+ CraftyJoker,
824
+ HalfJoker,
825
+ CreditCard,
826
+ Banner,
827
+ MysticSummit,
828
+ EightBall,
829
+ Misprint,
830
+ RaisedFist,
831
+ ChaostheClown,
832
+ ScaryFace,
833
+ AbstractJoker,
834
+ DelayedGratification,
835
+ GrosMichel,
836
+ EvenSteven,
837
+ OddTodd,
838
+ Scholar,
839
+ BusinessCard,
840
+ Supernova,
841
+ RideTheBus,
842
+ Egg,
843
+ Runner,
844
+ IceCream,
845
+ Splash,
846
+ BlueJoker,
847
+ FacelessJoker,
848
+ GreenJoker,
849
+ Superposition,
850
+ ToDoList,
851
+ Cavendish,
852
+ RedCard,
853
+ SquareJoker,
854
+ RiffRaff,
855
+ Photograph,
856
+ ReservedParking,
857
+ MailInRebate,
858
+ Hallucination,
859
+ FortuneTeller,
860
+ Juggler,
861
+ Drunkard,
862
+ GoldenJoker,
863
+ Popcorn,
864
+ WalkieTalkie,
865
+ SmileyFace,
866
+ GoldenTicket,
867
+ Swashbuckler,
868
+ HangingChad,
869
+ ShootTheMoon,
870
+ JokerStencil,
871
+ FourFingers,
872
+ Mime,
873
+ CeremonialDagger,
874
+ MarbleJoker,
875
+ LoyaltyCard,
876
+ Dusk,
877
+ Fibonacci,
878
+ SteelJoker,
879
+ Hack,
880
+ Pareidolia,
881
+ SpaceJoker,
882
+ Burglar,
883
+ Blackboard,
884
+ SixthSense,
885
+ Constellation,
886
+ Hiker,
887
+ CardSharp,
888
+ Madness,
889
+ Seance,
890
+ Vampire,
891
+ Shortcut,
892
+ Hologram,
893
+ Cloud9,
894
+ Rocket,
895
+ MidasMask,
896
+ Luchador,
897
+ GiftCard,
898
+ TurtleBean,
899
+ Erosion,
900
+ ToTheMoon,
901
+ StoneJoker,
902
+ LuckyCat,
903
+ Bull,
904
+ DietCola,
905
+ TradingCard,
906
+ FlashCard,
907
+ SpareTrousers,
908
+ Ramen,
909
+ Seltzer,
910
+ Castle,
911
+ MrBones,
912
+ Acrobat,
913
+ SockAndBuskin,
914
+ Troubadour,
915
+ Certificate,
916
+ SmearedJoker,
917
+ Throwback,
918
+ RoughGem,
919
+ Bloodstone,
920
+ Arrowhead,
921
+ OnyxAgate,
922
+ GlassJoker,
923
+ Showman,
924
+ FlowerPot,
925
+ MerryAndy,
926
+ OopsAll6s,
927
+ TheIdol,
928
+ SeeingDouble,
929
+ Matador,
930
+ Satellite,
931
+ Cartomancer,
932
+ Astronomer,
933
+ Bootstraps,
934
+ DNA,
935
+ Vagabond,
936
+ Baron,
937
+ Obelisk,
938
+ BaseballCard,
939
+ AncientJoker,
940
+ Campfire,
941
+ Blueprint,
942
+ WeeJoker,
943
+ HitTheRoad,
944
+ TheDuo,
945
+ TheTrio,
946
+ TheFamily,
947
+ TheOrder,
948
+ TheTribe,
949
+ Stuntman,
950
+ InvisibleJoker,
951
+ Brainstorm,
952
+ DriversLicense,
953
+ BurntJoker,
954
+ Canio,
955
+ Triboulet,
956
+ Yorick,
957
+ Chicot,
958
+ Perkeo
959
+ }
960
+ export enum MotelyJokerRarity {
961
+ Common,
962
+ Uncommon,
963
+ Rare,
964
+ Legendary
965
+ }
966
+ export enum MotelyJokerSticker {
967
+ None,
968
+ Eternal,
969
+ Perishable,
970
+ Rental
971
+ }
972
+ export enum MotelyJokerCommon {
973
+ Joker,
974
+ GreedyJoker,
975
+ LustyJoker,
976
+ WrathfulJoker,
977
+ GluttonousJoker,
978
+ JollyJoker,
979
+ ZanyJoker,
980
+ MadJoker,
981
+ CrazyJoker,
982
+ DrollJoker,
983
+ SlyJoker,
984
+ WilyJoker,
985
+ CleverJoker,
986
+ DeviousJoker,
987
+ CraftyJoker,
988
+ HalfJoker,
989
+ CreditCard,
990
+ Banner,
991
+ MysticSummit,
992
+ EightBall,
993
+ Misprint,
994
+ RaisedFist,
995
+ ChaostheClown,
996
+ ScaryFace,
997
+ AbstractJoker,
998
+ DelayedGratification,
999
+ GrosMichel,
1000
+ EvenSteven,
1001
+ OddTodd,
1002
+ Scholar,
1003
+ BusinessCard,
1004
+ Supernova,
1005
+ RideTheBus,
1006
+ Egg,
1007
+ Runner,
1008
+ IceCream,
1009
+ Splash,
1010
+ BlueJoker,
1011
+ FacelessJoker,
1012
+ GreenJoker,
1013
+ Superposition,
1014
+ ToDoList,
1015
+ Cavendish,
1016
+ RedCard,
1017
+ SquareJoker,
1018
+ RiffRaff,
1019
+ Photograph,
1020
+ ReservedParking,
1021
+ MailInRebate,
1022
+ Hallucination,
1023
+ FortuneTeller,
1024
+ Juggler,
1025
+ Drunkard,
1026
+ GoldenJoker,
1027
+ Popcorn,
1028
+ WalkieTalkie,
1029
+ SmileyFace,
1030
+ GoldenTicket,
1031
+ Swashbuckler,
1032
+ HangingChad,
1033
+ ShootTheMoon
1034
+ }
1035
+ export enum MotelyJokerUncommon {
1036
+ JokerStencil,
1037
+ FourFingers,
1038
+ Mime,
1039
+ CeremonialDagger,
1040
+ MarbleJoker,
1041
+ LoyaltyCard,
1042
+ Dusk,
1043
+ Fibonacci,
1044
+ SteelJoker,
1045
+ Hack,
1046
+ Pareidolia,
1047
+ SpaceJoker,
1048
+ Burglar,
1049
+ Blackboard,
1050
+ SixthSense,
1051
+ Constellation,
1052
+ Hiker,
1053
+ CardSharp,
1054
+ Madness,
1055
+ Seance,
1056
+ Vampire,
1057
+ Shortcut,
1058
+ Hologram,
1059
+ Cloud9,
1060
+ Rocket,
1061
+ MidasMask,
1062
+ Luchador,
1063
+ GiftCard,
1064
+ TurtleBean,
1065
+ Erosion,
1066
+ ToTheMoon,
1067
+ StoneJoker,
1068
+ LuckyCat,
1069
+ Bull,
1070
+ DietCola,
1071
+ TradingCard,
1072
+ FlashCard,
1073
+ SpareTrousers,
1074
+ Ramen,
1075
+ Seltzer,
1076
+ Castle,
1077
+ MrBones,
1078
+ Acrobat,
1079
+ SockAndBuskin,
1080
+ Troubadour,
1081
+ Certificate,
1082
+ SmearedJoker,
1083
+ Throwback,
1084
+ RoughGem,
1085
+ Bloodstone,
1086
+ Arrowhead,
1087
+ OnyxAgate,
1088
+ GlassJoker,
1089
+ Showman,
1090
+ FlowerPot,
1091
+ MerryAndy,
1092
+ OopsAll6s,
1093
+ TheIdol,
1094
+ SeeingDouble,
1095
+ Matador,
1096
+ Satellite,
1097
+ Cartomancer,
1098
+ Astronomer,
1099
+ Bootstraps
1100
+ }
1101
+ export enum MotelyJokerRare {
1102
+ DNA,
1103
+ Vagabond,
1104
+ Baron,
1105
+ Obelisk,
1106
+ BaseballCard,
1107
+ AncientJoker,
1108
+ Campfire,
1109
+ Blueprint,
1110
+ WeeJoker,
1111
+ HitTheRoad,
1112
+ TheDuo,
1113
+ TheTrio,
1114
+ TheFamily,
1115
+ TheOrder,
1116
+ TheTribe,
1117
+ Stuntman,
1118
+ InvisibleJoker,
1119
+ Brainstorm,
1120
+ DriversLicense,
1121
+ BurntJoker
1122
+ }
1123
+ export enum MotelyTarotCard {
1124
+ TheFool,
1125
+ TheMagician,
1126
+ TheHighPriestess,
1127
+ TheEmpress,
1128
+ TheEmperor,
1129
+ TheHierophant,
1130
+ TheLovers,
1131
+ TheChariot,
1132
+ Justice,
1133
+ TheHermit,
1134
+ TheWheelOfFortune,
1135
+ Strength,
1136
+ TheHangedMan,
1137
+ Death,
1138
+ Temperance,
1139
+ TheDevil,
1140
+ TheTower,
1141
+ TheStar,
1142
+ TheMoon,
1143
+ TheSun,
1144
+ Judgement,
1145
+ TheWorld
1146
+ }
1147
+ export enum MotelySpectralCard {
1148
+ Familiar,
1149
+ Grim,
1150
+ Incantation,
1151
+ Talisman,
1152
+ Aura,
1153
+ Wraith,
1154
+ Sigil,
1155
+ Ouija,
1156
+ Ectoplasm,
1157
+ Immolate,
1158
+ Ankh,
1159
+ DejaVu,
1160
+ Hex,
1161
+ Trance,
1162
+ Medium,
1163
+ Cryptid,
1164
+ TheSoul,
1165
+ BlackHole
1166
+ }
1167
+ export enum MotelyPlanetCard {
1168
+ Mercury,
1169
+ Venus,
1170
+ Earth,
1171
+ Mars,
1172
+ Jupiter,
1173
+ Saturn,
1174
+ Uranus,
1175
+ Neptune,
1176
+ Pluto,
1177
+ PlanetX,
1178
+ Ceres,
1179
+ Eris
1180
+ }
1181
+ }
1182
+
1183
+ export namespace MotelySingleSearchContext {
1184
+ export function open(seed: string, deck: Motely.MotelyDeck, stake: Motely.MotelyStake): Analysis.IMotelySingleSearchContextImpl;
1185
+ }
1186
+ export namespace MotelySingleSearchContextImpl {
1187
+ export function getSeed(): string;
1188
+ export function pseudoHash(key: string, isCached: boolean): number;
1189
+ export function getAnteFirstVoucher(ante: number): Motely.MotelyVoucher;
1190
+ export function getAnteFirstVoucherStateful(ante: number, jsState: Motely.MotelyJsRunState): Motely.MotelyVoucherStateResult;
1191
+ export function getNextTag(ante: number): Motely.MotelyTag;
1192
+ export function getBossForAnte(ante: number): Motely.MotelyBossBlind;
1193
+ export function getBossForAnteStateful(ante: number, jsState: Motely.MotelyJsRunState): Motely.MotelyBossStateResult;
1194
+ export function getAnteFirstVoucherWithState(ante: number, jsState: Motely.MotelyJsRunState): Motely.MotelyVoucher;
1195
+ export function getNextBoosterPack(ante: number): Motely.MotelyBoosterPack;
1196
+ export function getNextShopItem(ante: number): Motely.MotelyItem;
1197
+ export function getNextShopJoker(ante: number): Motely.MotelyItem;
1198
+ export function getNextTarot(ante: number): Motely.MotelyItem;
1199
+ export function getNextSpectral(ante: number): Motely.MotelyItem;
1200
+ export function getNextPlanet(ante: number): Motely.MotelyItem;
1201
+ export function getNextStandardCard(ante: number): Motely.MotelyItem;
1202
+ export function getNextMisprintMult(): number;
1203
+ export function getNextLuckyMoney(baseLuck: number): boolean;
1204
+ export function getNextLuckyMult(baseLuck: number): boolean;
1205
+ export function getNextErraticDeckCard(): Motely.MotelyItem;
1206
+ }
1207
+ export namespace MotelyWasmHost {
1208
+ export function getVersion(): string;
1209
+ export function loadJaml(jaml: string): Filters.JamlConfig;
1210
+ export function compileJummy(jummy: string): Filters.JamlConfig;
1211
+ export function motelySingleSearchContext(seed: string, deck: Motely.MotelyDeck, stake: Motely.MotelyStake): Analysis.IMotelySingleSearchContextImpl;
1212
+ export function singleGetBossForAnte(seed: string, deck: Motely.MotelyDeck, stake: Motely.MotelyStake, ante: number): Motely.MotelyBossBlind;
1213
+ export function singleGetAnteFirstVoucher(seed: string, deck: Motely.MotelyDeck, stake: Motely.MotelyStake, ante: number): Motely.MotelyVoucher;
1214
+ export function singleGetNextTag(seed: string, deck: Motely.MotelyDeck, stake: Motely.MotelyStake, ante: number): Motely.MotelyTag;
1215
+ export function singleGetNextShopItem(seed: string, deck: Motely.MotelyDeck, stake: Motely.MotelyStake, ante: number): Motely.MotelyItem;
1216
+ export function singleGetNextLuckyMoney(seed: string, deck: Motely.MotelyDeck, stake: Motely.MotelyStake, baseLuck: number): boolean;
1217
+ export function singleGetNextLuckyMult(seed: string, deck: Motely.MotelyDeck, stake: Motely.MotelyStake, baseLuck: number): boolean;
1218
+ export function singleGetNextMisprintMult(seed: string, deck: Motely.MotelyDeck, stake: Motely.MotelyStake): number;
1219
+ export function startConfiguredSearch(config: Filters.JamlConfig, batchCharCount: number, startBatch: bigint, endBatch: bigint): void;
1220
+ export function startConfiguredSearchFromJaml(jaml: string, batchCharCount: number, startBatch: bigint, endBatch: bigint): void;
1221
+ export function startConfiguredSearchBySearchIndex(config: Filters.JamlConfig, batchCharCount: number, startSeedSearchIndex: bigint, stopSeedSearchIndexInclusive: bigint): void;
1222
+ export function startSequentialSearch(config: Filters.JamlConfig, batchCharCount: number, startBatch: bigint, endBatch: bigint): void;
1223
+ export function startSequentialSearchBySearchIndex(config: Filters.JamlConfig, batchCharCount: number, startSeedSearchIndex: bigint, stopSeedSearchIndexInclusive: bigint): void;
1224
+ export function startRandomSearch(config: Filters.JamlConfig, randomSeedCount: number): void;
1225
+ export function startRandomSearchFromJaml(jaml: string, randomSeedCount: number): void;
1226
+ export function startAestheticSearch(config: Filters.JamlConfig, aesthetic: Filters.JamlAesthetic): void;
1227
+ export function startKeywordSearch(config: Filters.JamlConfig, keywordsCsv: string, paddingChars: string): void;
1228
+ export function startSeedListSearch(config: Filters.JamlConfig, seeds: Array<string>): void;
1229
+ export function startSeedListSearchFromJaml(jaml: string, seeds: Array<string>): void;
1230
+ export function stopSearch(): void;
1231
+ }
1232
+ export namespace SearchEvents {
1233
+ export const onProgress: Event<[seedsSearched: bigint, matchingSeeds: bigint]>;
1234
+ export const onResult: Event<[seed: string, score: number, tallyColumns: Int32Array]>;
1235
+ export const onComplete: Event<[status: string, totalSeedsSearched: bigint, matchingSeeds: bigint]>;
1236
+ }