@gameslate/sdk 0.0.0-stage → 0.3.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 (47) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +38 -2
  3. package/bin/gameslate-plugin.mjs +26 -0
  4. package/build/build-plugin.mjs +103 -0
  5. package/lib/assets.d.ts +1788 -0
  6. package/lib/assets.js +107 -0
  7. package/lib/bytes.d.ts +33 -0
  8. package/lib/bytes.js +89 -0
  9. package/lib/catalogue.d.ts +1228 -0
  10. package/lib/catalogue.js +305 -0
  11. package/lib/chips.d.ts +18 -0
  12. package/lib/chips.js +28 -0
  13. package/lib/condition.d.ts +58 -0
  14. package/lib/condition.js +125 -0
  15. package/lib/index.d.ts +16 -0
  16. package/lib/index.js +16 -0
  17. package/lib/logic.d.ts +68 -0
  18. package/lib/logic.js +194 -0
  19. package/lib/navigation.d.ts +139 -0
  20. package/lib/navigation.js +38 -0
  21. package/lib/pack.d.ts +933 -0
  22. package/lib/pack.js +29 -0
  23. package/lib/pins.d.ts +19 -0
  24. package/lib/pins.js +35 -0
  25. package/lib/plugin/contract.d.ts +111 -0
  26. package/lib/plugin/contract.js +1 -0
  27. package/lib/plugin/index.d.ts +3 -0
  28. package/lib/plugin/index.js +9 -0
  29. package/lib/plugin/sandbox-guest.d.ts +12 -0
  30. package/lib/plugin/sandbox-guest.js +128 -0
  31. package/lib/plugin/seqlock.d.ts +8 -0
  32. package/lib/plugin/seqlock.js +19 -0
  33. package/lib/plugin-manifest.d.ts +131 -0
  34. package/lib/plugin-manifest.js +54 -0
  35. package/lib/plugins-api.d.ts +445 -0
  36. package/lib/plugins-api.js +38 -0
  37. package/lib/registry.d.ts +2231 -0
  38. package/lib/registry.js +170 -0
  39. package/lib/sandbox-protocol.d.ts +1363 -0
  40. package/lib/sandbox-protocol.js +39 -0
  41. package/lib/status.d.ts +24 -0
  42. package/lib/status.js +75 -0
  43. package/lib/types.d.ts +2684 -0
  44. package/lib/types.js +282 -0
  45. package/lib/views.d.ts +204 -0
  46. package/lib/views.js +35 -0
  47. package/package.json +53 -3
@@ -0,0 +1,2231 @@
1
+ import { z } from 'zod';
2
+ export declare const LandmarkKindSchema: z.ZodEnum<["calibration", "entry", "objective", "poi", "npc", "enemy", "exit", "note"]>;
3
+ export type LandmarkKind = z.infer<typeof LandmarkKindSchema>;
4
+ export declare const LandmarkSchema: z.ZodObject<{
5
+ id: z.ZodString;
6
+ label: z.ZodString;
7
+ world: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
8
+ kind: z.ZodOptional<z.ZodEnum<["calibration", "entry", "objective", "poi", "npc", "enemy", "exit", "note"]>>;
9
+ spoilerFree: z.ZodOptional<z.ZodBoolean>;
10
+ requiresObjective: z.ZodOptional<z.ZodString>;
11
+ chestFlag: z.ZodOptional<z.ZodNumber>;
12
+ /** OoT Gold Skulltula token flag: byte `index` of gSaveContext.gsFlags, bit `mask` (from En_Sw params). */
13
+ gsFlag: z.ZodOptional<z.ZodObject<{
14
+ index: z.ZodNumber;
15
+ mask: z.ZodNumber;
16
+ }, "strip", z.ZodTypeAny, {
17
+ index: number;
18
+ mask: number;
19
+ }, {
20
+ index: number;
21
+ mask: number;
22
+ }>>;
23
+ /** v3: generic collected test for this pin (replaces per-kind flags as packs migrate). */
24
+ collectedBy: z.ZodOptional<z.ZodType<import("./condition.js").Condition, z.ZodTypeDef, import("./condition.js").Condition>>;
25
+ /** v3: the pin isn't there in this state (e.g. a Doom thing absent on the current skill). */
26
+ hiddenWhen: z.ZodOptional<z.ZodType<import("./condition.js").Condition, z.ZodTypeDef, import("./condition.js").Condition>>;
27
+ /** Which of the pack's pin categories it is in (the player filters by these). */
28
+ category: z.ZodOptional<z.ZodString>;
29
+ /** How this pin connects to others on the map, e.g. a switch "Opens" a door, a door is
30
+ * "Opened by" a switch: `to` is the other pin's id. Shown on the card and given to the AI. */
31
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
32
+ label: z.ZodString;
33
+ to: z.ZodString;
34
+ }, "strip", z.ZodTypeAny, {
35
+ label: string;
36
+ to: string;
37
+ }, {
38
+ label: string;
39
+ to: string;
40
+ }>, "many">>;
41
+ /** A colour the pin is coded by (a locked door and its key), from a fixed palette. */
42
+ tint: z.ZodOptional<z.ZodEnum<["red", "blue", "yellow", "green", "purple", "orange", "grey"]>>;
43
+ /** What the pack knows about this spot, for the AI and the spot card: which one it is among
44
+ * similar pins, where it is relative to other pins, how it's reached (plain sentences). */
45
+ context: z.ZodOptional<z.ZodString>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ label: string;
48
+ id: string;
49
+ world: [number, number, number];
50
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
51
+ links?: {
52
+ label: string;
53
+ to: string;
54
+ }[] | undefined;
55
+ spoilerFree?: boolean | undefined;
56
+ requiresObjective?: string | undefined;
57
+ chestFlag?: number | undefined;
58
+ gsFlag?: {
59
+ index: number;
60
+ mask: number;
61
+ } | undefined;
62
+ collectedBy?: import("./condition.js").Condition | undefined;
63
+ hiddenWhen?: import("./condition.js").Condition | undefined;
64
+ category?: string | undefined;
65
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
66
+ context?: string | undefined;
67
+ }, {
68
+ label: string;
69
+ id: string;
70
+ world: [number, number, number];
71
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
72
+ links?: {
73
+ label: string;
74
+ to: string;
75
+ }[] | undefined;
76
+ spoilerFree?: boolean | undefined;
77
+ requiresObjective?: string | undefined;
78
+ chestFlag?: number | undefined;
79
+ gsFlag?: {
80
+ index: number;
81
+ mask: number;
82
+ } | undefined;
83
+ collectedBy?: import("./condition.js").Condition | undefined;
84
+ hiddenWhen?: import("./condition.js").Condition | undefined;
85
+ category?: string | undefined;
86
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
87
+ context?: string | undefined;
88
+ }>;
89
+ export type MapLandmark = z.infer<typeof LandmarkSchema>;
90
+ export declare const MapLayerSchema: z.ZodObject<{
91
+ id: z.ZodString;
92
+ name: z.ZodString;
93
+ priority: z.ZodNumber;
94
+ rooms: z.ZodArray<z.ZodNumber, "many">;
95
+ yRange: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
96
+ svg: z.ZodString;
97
+ affine: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
98
+ headingOffsetDeg: z.ZodNumber;
99
+ headingSign: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<-1>]>;
100
+ landmarks: z.ZodArray<z.ZodObject<{
101
+ id: z.ZodString;
102
+ label: z.ZodString;
103
+ world: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
104
+ kind: z.ZodOptional<z.ZodEnum<["calibration", "entry", "objective", "poi", "npc", "enemy", "exit", "note"]>>;
105
+ spoilerFree: z.ZodOptional<z.ZodBoolean>;
106
+ requiresObjective: z.ZodOptional<z.ZodString>;
107
+ chestFlag: z.ZodOptional<z.ZodNumber>;
108
+ /** OoT Gold Skulltula token flag: byte `index` of gSaveContext.gsFlags, bit `mask` (from En_Sw params). */
109
+ gsFlag: z.ZodOptional<z.ZodObject<{
110
+ index: z.ZodNumber;
111
+ mask: z.ZodNumber;
112
+ }, "strip", z.ZodTypeAny, {
113
+ index: number;
114
+ mask: number;
115
+ }, {
116
+ index: number;
117
+ mask: number;
118
+ }>>;
119
+ /** v3: generic collected test for this pin (replaces per-kind flags as packs migrate). */
120
+ collectedBy: z.ZodOptional<z.ZodType<import("./condition.js").Condition, z.ZodTypeDef, import("./condition.js").Condition>>;
121
+ /** v3: the pin isn't there in this state (e.g. a Doom thing absent on the current skill). */
122
+ hiddenWhen: z.ZodOptional<z.ZodType<import("./condition.js").Condition, z.ZodTypeDef, import("./condition.js").Condition>>;
123
+ /** Which of the pack's pin categories it is in (the player filters by these). */
124
+ category: z.ZodOptional<z.ZodString>;
125
+ /** How this pin connects to others on the map, e.g. a switch "Opens" a door, a door is
126
+ * "Opened by" a switch: `to` is the other pin's id. Shown on the card and given to the AI. */
127
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
128
+ label: z.ZodString;
129
+ to: z.ZodString;
130
+ }, "strip", z.ZodTypeAny, {
131
+ label: string;
132
+ to: string;
133
+ }, {
134
+ label: string;
135
+ to: string;
136
+ }>, "many">>;
137
+ /** A colour the pin is coded by (a locked door and its key), from a fixed palette. */
138
+ tint: z.ZodOptional<z.ZodEnum<["red", "blue", "yellow", "green", "purple", "orange", "grey"]>>;
139
+ /** What the pack knows about this spot, for the AI and the spot card: which one it is among
140
+ * similar pins, where it is relative to other pins, how it's reached (plain sentences). */
141
+ context: z.ZodOptional<z.ZodString>;
142
+ }, "strip", z.ZodTypeAny, {
143
+ label: string;
144
+ id: string;
145
+ world: [number, number, number];
146
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
147
+ links?: {
148
+ label: string;
149
+ to: string;
150
+ }[] | undefined;
151
+ spoilerFree?: boolean | undefined;
152
+ requiresObjective?: string | undefined;
153
+ chestFlag?: number | undefined;
154
+ gsFlag?: {
155
+ index: number;
156
+ mask: number;
157
+ } | undefined;
158
+ collectedBy?: import("./condition.js").Condition | undefined;
159
+ hiddenWhen?: import("./condition.js").Condition | undefined;
160
+ category?: string | undefined;
161
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
162
+ context?: string | undefined;
163
+ }, {
164
+ label: string;
165
+ id: string;
166
+ world: [number, number, number];
167
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
168
+ links?: {
169
+ label: string;
170
+ to: string;
171
+ }[] | undefined;
172
+ spoilerFree?: boolean | undefined;
173
+ requiresObjective?: string | undefined;
174
+ chestFlag?: number | undefined;
175
+ gsFlag?: {
176
+ index: number;
177
+ mask: number;
178
+ } | undefined;
179
+ collectedBy?: import("./condition.js").Condition | undefined;
180
+ hiddenWhen?: import("./condition.js").Condition | undefined;
181
+ category?: string | undefined;
182
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
183
+ context?: string | undefined;
184
+ }>, "many">;
185
+ }, "strip", z.ZodTypeAny, {
186
+ id: string;
187
+ name: string;
188
+ priority: number;
189
+ rooms: number[];
190
+ svg: string;
191
+ affine: [number, number, number, number, number, number];
192
+ headingOffsetDeg: number;
193
+ headingSign: 1 | -1;
194
+ landmarks: {
195
+ label: string;
196
+ id: string;
197
+ world: [number, number, number];
198
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
199
+ links?: {
200
+ label: string;
201
+ to: string;
202
+ }[] | undefined;
203
+ spoilerFree?: boolean | undefined;
204
+ requiresObjective?: string | undefined;
205
+ chestFlag?: number | undefined;
206
+ gsFlag?: {
207
+ index: number;
208
+ mask: number;
209
+ } | undefined;
210
+ collectedBy?: import("./condition.js").Condition | undefined;
211
+ hiddenWhen?: import("./condition.js").Condition | undefined;
212
+ category?: string | undefined;
213
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
214
+ context?: string | undefined;
215
+ }[];
216
+ yRange?: [number, number] | undefined;
217
+ }, {
218
+ id: string;
219
+ name: string;
220
+ priority: number;
221
+ rooms: number[];
222
+ svg: string;
223
+ affine: [number, number, number, number, number, number];
224
+ headingOffsetDeg: number;
225
+ headingSign: 1 | -1;
226
+ landmarks: {
227
+ label: string;
228
+ id: string;
229
+ world: [number, number, number];
230
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
231
+ links?: {
232
+ label: string;
233
+ to: string;
234
+ }[] | undefined;
235
+ spoilerFree?: boolean | undefined;
236
+ requiresObjective?: string | undefined;
237
+ chestFlag?: number | undefined;
238
+ gsFlag?: {
239
+ index: number;
240
+ mask: number;
241
+ } | undefined;
242
+ collectedBy?: import("./condition.js").Condition | undefined;
243
+ hiddenWhen?: import("./condition.js").Condition | undefined;
244
+ category?: string | undefined;
245
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
246
+ context?: string | undefined;
247
+ }[];
248
+ yRange?: [number, number] | undefined;
249
+ }>;
250
+ export type MapLayer = z.infer<typeof MapLayerSchema>;
251
+ export declare const LocationMapConfigSchema: z.ZodObject<{
252
+ viewBox: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
253
+ hysteresisMs: z.ZodDefault<z.ZodNumber>;
254
+ layers: z.ZodArray<z.ZodObject<{
255
+ id: z.ZodString;
256
+ name: z.ZodString;
257
+ priority: z.ZodNumber;
258
+ rooms: z.ZodArray<z.ZodNumber, "many">;
259
+ yRange: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
260
+ svg: z.ZodString;
261
+ affine: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
262
+ headingOffsetDeg: z.ZodNumber;
263
+ headingSign: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<-1>]>;
264
+ landmarks: z.ZodArray<z.ZodObject<{
265
+ id: z.ZodString;
266
+ label: z.ZodString;
267
+ world: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
268
+ kind: z.ZodOptional<z.ZodEnum<["calibration", "entry", "objective", "poi", "npc", "enemy", "exit", "note"]>>;
269
+ spoilerFree: z.ZodOptional<z.ZodBoolean>;
270
+ requiresObjective: z.ZodOptional<z.ZodString>;
271
+ chestFlag: z.ZodOptional<z.ZodNumber>;
272
+ /** OoT Gold Skulltula token flag: byte `index` of gSaveContext.gsFlags, bit `mask` (from En_Sw params). */
273
+ gsFlag: z.ZodOptional<z.ZodObject<{
274
+ index: z.ZodNumber;
275
+ mask: z.ZodNumber;
276
+ }, "strip", z.ZodTypeAny, {
277
+ index: number;
278
+ mask: number;
279
+ }, {
280
+ index: number;
281
+ mask: number;
282
+ }>>;
283
+ /** v3: generic collected test for this pin (replaces per-kind flags as packs migrate). */
284
+ collectedBy: z.ZodOptional<z.ZodType<import("./condition.js").Condition, z.ZodTypeDef, import("./condition.js").Condition>>;
285
+ /** v3: the pin isn't there in this state (e.g. a Doom thing absent on the current skill). */
286
+ hiddenWhen: z.ZodOptional<z.ZodType<import("./condition.js").Condition, z.ZodTypeDef, import("./condition.js").Condition>>;
287
+ /** Which of the pack's pin categories it is in (the player filters by these). */
288
+ category: z.ZodOptional<z.ZodString>;
289
+ /** How this pin connects to others on the map, e.g. a switch "Opens" a door, a door is
290
+ * "Opened by" a switch: `to` is the other pin's id. Shown on the card and given to the AI. */
291
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
292
+ label: z.ZodString;
293
+ to: z.ZodString;
294
+ }, "strip", z.ZodTypeAny, {
295
+ label: string;
296
+ to: string;
297
+ }, {
298
+ label: string;
299
+ to: string;
300
+ }>, "many">>;
301
+ /** A colour the pin is coded by (a locked door and its key), from a fixed palette. */
302
+ tint: z.ZodOptional<z.ZodEnum<["red", "blue", "yellow", "green", "purple", "orange", "grey"]>>;
303
+ /** What the pack knows about this spot, for the AI and the spot card: which one it is among
304
+ * similar pins, where it is relative to other pins, how it's reached (plain sentences). */
305
+ context: z.ZodOptional<z.ZodString>;
306
+ }, "strip", z.ZodTypeAny, {
307
+ label: string;
308
+ id: string;
309
+ world: [number, number, number];
310
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
311
+ links?: {
312
+ label: string;
313
+ to: string;
314
+ }[] | undefined;
315
+ spoilerFree?: boolean | undefined;
316
+ requiresObjective?: string | undefined;
317
+ chestFlag?: number | undefined;
318
+ gsFlag?: {
319
+ index: number;
320
+ mask: number;
321
+ } | undefined;
322
+ collectedBy?: import("./condition.js").Condition | undefined;
323
+ hiddenWhen?: import("./condition.js").Condition | undefined;
324
+ category?: string | undefined;
325
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
326
+ context?: string | undefined;
327
+ }, {
328
+ label: string;
329
+ id: string;
330
+ world: [number, number, number];
331
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
332
+ links?: {
333
+ label: string;
334
+ to: string;
335
+ }[] | undefined;
336
+ spoilerFree?: boolean | undefined;
337
+ requiresObjective?: string | undefined;
338
+ chestFlag?: number | undefined;
339
+ gsFlag?: {
340
+ index: number;
341
+ mask: number;
342
+ } | undefined;
343
+ collectedBy?: import("./condition.js").Condition | undefined;
344
+ hiddenWhen?: import("./condition.js").Condition | undefined;
345
+ category?: string | undefined;
346
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
347
+ context?: string | undefined;
348
+ }>, "many">;
349
+ }, "strip", z.ZodTypeAny, {
350
+ id: string;
351
+ name: string;
352
+ priority: number;
353
+ rooms: number[];
354
+ svg: string;
355
+ affine: [number, number, number, number, number, number];
356
+ headingOffsetDeg: number;
357
+ headingSign: 1 | -1;
358
+ landmarks: {
359
+ label: string;
360
+ id: string;
361
+ world: [number, number, number];
362
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
363
+ links?: {
364
+ label: string;
365
+ to: string;
366
+ }[] | undefined;
367
+ spoilerFree?: boolean | undefined;
368
+ requiresObjective?: string | undefined;
369
+ chestFlag?: number | undefined;
370
+ gsFlag?: {
371
+ index: number;
372
+ mask: number;
373
+ } | undefined;
374
+ collectedBy?: import("./condition.js").Condition | undefined;
375
+ hiddenWhen?: import("./condition.js").Condition | undefined;
376
+ category?: string | undefined;
377
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
378
+ context?: string | undefined;
379
+ }[];
380
+ yRange?: [number, number] | undefined;
381
+ }, {
382
+ id: string;
383
+ name: string;
384
+ priority: number;
385
+ rooms: number[];
386
+ svg: string;
387
+ affine: [number, number, number, number, number, number];
388
+ headingOffsetDeg: number;
389
+ headingSign: 1 | -1;
390
+ landmarks: {
391
+ label: string;
392
+ id: string;
393
+ world: [number, number, number];
394
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
395
+ links?: {
396
+ label: string;
397
+ to: string;
398
+ }[] | undefined;
399
+ spoilerFree?: boolean | undefined;
400
+ requiresObjective?: string | undefined;
401
+ chestFlag?: number | undefined;
402
+ gsFlag?: {
403
+ index: number;
404
+ mask: number;
405
+ } | undefined;
406
+ collectedBy?: import("./condition.js").Condition | undefined;
407
+ hiddenWhen?: import("./condition.js").Condition | undefined;
408
+ category?: string | undefined;
409
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
410
+ context?: string | undefined;
411
+ }[];
412
+ yRange?: [number, number] | undefined;
413
+ }>, "many">;
414
+ }, "strip", z.ZodTypeAny, {
415
+ viewBox: [number, number];
416
+ hysteresisMs: number;
417
+ layers: {
418
+ id: string;
419
+ name: string;
420
+ priority: number;
421
+ rooms: number[];
422
+ svg: string;
423
+ affine: [number, number, number, number, number, number];
424
+ headingOffsetDeg: number;
425
+ headingSign: 1 | -1;
426
+ landmarks: {
427
+ label: string;
428
+ id: string;
429
+ world: [number, number, number];
430
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
431
+ links?: {
432
+ label: string;
433
+ to: string;
434
+ }[] | undefined;
435
+ spoilerFree?: boolean | undefined;
436
+ requiresObjective?: string | undefined;
437
+ chestFlag?: number | undefined;
438
+ gsFlag?: {
439
+ index: number;
440
+ mask: number;
441
+ } | undefined;
442
+ collectedBy?: import("./condition.js").Condition | undefined;
443
+ hiddenWhen?: import("./condition.js").Condition | undefined;
444
+ category?: string | undefined;
445
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
446
+ context?: string | undefined;
447
+ }[];
448
+ yRange?: [number, number] | undefined;
449
+ }[];
450
+ }, {
451
+ viewBox: [number, number];
452
+ layers: {
453
+ id: string;
454
+ name: string;
455
+ priority: number;
456
+ rooms: number[];
457
+ svg: string;
458
+ affine: [number, number, number, number, number, number];
459
+ headingOffsetDeg: number;
460
+ headingSign: 1 | -1;
461
+ landmarks: {
462
+ label: string;
463
+ id: string;
464
+ world: [number, number, number];
465
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
466
+ links?: {
467
+ label: string;
468
+ to: string;
469
+ }[] | undefined;
470
+ spoilerFree?: boolean | undefined;
471
+ requiresObjective?: string | undefined;
472
+ chestFlag?: number | undefined;
473
+ gsFlag?: {
474
+ index: number;
475
+ mask: number;
476
+ } | undefined;
477
+ collectedBy?: import("./condition.js").Condition | undefined;
478
+ hiddenWhen?: import("./condition.js").Condition | undefined;
479
+ category?: string | undefined;
480
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
481
+ context?: string | undefined;
482
+ }[];
483
+ yRange?: [number, number] | undefined;
484
+ }[];
485
+ hysteresisMs?: number | undefined;
486
+ }>;
487
+ export type LocationMapConfig = z.infer<typeof LocationMapConfigSchema>;
488
+ export declare const ObjectiveMetaSchema: z.ZodObject<{
489
+ id: z.ZodString;
490
+ label: z.ZodString;
491
+ minDifficulty: z.ZodOptional<z.ZodString>;
492
+ difficulties: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
493
+ completedByItems: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
494
+ completedByFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
495
+ }, "strip", z.ZodTypeAny, {
496
+ label: string;
497
+ id: string;
498
+ minDifficulty?: string | undefined;
499
+ difficulties?: string[] | undefined;
500
+ completedByItems?: string[] | undefined;
501
+ completedByFlags?: string[] | undefined;
502
+ }, {
503
+ label: string;
504
+ id: string;
505
+ minDifficulty?: string | undefined;
506
+ difficulties?: string[] | undefined;
507
+ completedByItems?: string[] | undefined;
508
+ completedByFlags?: string[] | undefined;
509
+ }>;
510
+ export type ObjectiveMeta = z.infer<typeof ObjectiveMetaSchema>;
511
+ export declare const LocationMetaSchema: z.ZodObject<{
512
+ name: z.ZodString;
513
+ act: z.ZodOptional<z.ZodString>;
514
+ objectives: z.ZodOptional<z.ZodArray<z.ZodObject<{
515
+ id: z.ZodString;
516
+ label: z.ZodString;
517
+ minDifficulty: z.ZodOptional<z.ZodString>;
518
+ difficulties: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
519
+ completedByItems: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
520
+ completedByFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
521
+ }, "strip", z.ZodTypeAny, {
522
+ label: string;
523
+ id: string;
524
+ minDifficulty?: string | undefined;
525
+ difficulties?: string[] | undefined;
526
+ completedByItems?: string[] | undefined;
527
+ completedByFlags?: string[] | undefined;
528
+ }, {
529
+ label: string;
530
+ id: string;
531
+ minDifficulty?: string | undefined;
532
+ difficulties?: string[] | undefined;
533
+ completedByItems?: string[] | undefined;
534
+ completedByFlags?: string[] | undefined;
535
+ }>, "many">>;
536
+ map: z.ZodOptional<z.ZodObject<{
537
+ viewBox: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
538
+ hysteresisMs: z.ZodDefault<z.ZodNumber>;
539
+ layers: z.ZodArray<z.ZodObject<{
540
+ id: z.ZodString;
541
+ name: z.ZodString;
542
+ priority: z.ZodNumber;
543
+ rooms: z.ZodArray<z.ZodNumber, "many">;
544
+ yRange: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
545
+ svg: z.ZodString;
546
+ affine: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
547
+ headingOffsetDeg: z.ZodNumber;
548
+ headingSign: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<-1>]>;
549
+ landmarks: z.ZodArray<z.ZodObject<{
550
+ id: z.ZodString;
551
+ label: z.ZodString;
552
+ world: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
553
+ kind: z.ZodOptional<z.ZodEnum<["calibration", "entry", "objective", "poi", "npc", "enemy", "exit", "note"]>>;
554
+ spoilerFree: z.ZodOptional<z.ZodBoolean>;
555
+ requiresObjective: z.ZodOptional<z.ZodString>;
556
+ chestFlag: z.ZodOptional<z.ZodNumber>;
557
+ /** OoT Gold Skulltula token flag: byte `index` of gSaveContext.gsFlags, bit `mask` (from En_Sw params). */
558
+ gsFlag: z.ZodOptional<z.ZodObject<{
559
+ index: z.ZodNumber;
560
+ mask: z.ZodNumber;
561
+ }, "strip", z.ZodTypeAny, {
562
+ index: number;
563
+ mask: number;
564
+ }, {
565
+ index: number;
566
+ mask: number;
567
+ }>>;
568
+ /** v3: generic collected test for this pin (replaces per-kind flags as packs migrate). */
569
+ collectedBy: z.ZodOptional<z.ZodType<import("./condition.js").Condition, z.ZodTypeDef, import("./condition.js").Condition>>;
570
+ /** v3: the pin isn't there in this state (e.g. a Doom thing absent on the current skill). */
571
+ hiddenWhen: z.ZodOptional<z.ZodType<import("./condition.js").Condition, z.ZodTypeDef, import("./condition.js").Condition>>;
572
+ /** Which of the pack's pin categories it is in (the player filters by these). */
573
+ category: z.ZodOptional<z.ZodString>;
574
+ /** How this pin connects to others on the map, e.g. a switch "Opens" a door, a door is
575
+ * "Opened by" a switch: `to` is the other pin's id. Shown on the card and given to the AI. */
576
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
577
+ label: z.ZodString;
578
+ to: z.ZodString;
579
+ }, "strip", z.ZodTypeAny, {
580
+ label: string;
581
+ to: string;
582
+ }, {
583
+ label: string;
584
+ to: string;
585
+ }>, "many">>;
586
+ /** A colour the pin is coded by (a locked door and its key), from a fixed palette. */
587
+ tint: z.ZodOptional<z.ZodEnum<["red", "blue", "yellow", "green", "purple", "orange", "grey"]>>;
588
+ /** What the pack knows about this spot, for the AI and the spot card: which one it is among
589
+ * similar pins, where it is relative to other pins, how it's reached (plain sentences). */
590
+ context: z.ZodOptional<z.ZodString>;
591
+ }, "strip", z.ZodTypeAny, {
592
+ label: string;
593
+ id: string;
594
+ world: [number, number, number];
595
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
596
+ links?: {
597
+ label: string;
598
+ to: string;
599
+ }[] | undefined;
600
+ spoilerFree?: boolean | undefined;
601
+ requiresObjective?: string | undefined;
602
+ chestFlag?: number | undefined;
603
+ gsFlag?: {
604
+ index: number;
605
+ mask: number;
606
+ } | undefined;
607
+ collectedBy?: import("./condition.js").Condition | undefined;
608
+ hiddenWhen?: import("./condition.js").Condition | undefined;
609
+ category?: string | undefined;
610
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
611
+ context?: string | undefined;
612
+ }, {
613
+ label: string;
614
+ id: string;
615
+ world: [number, number, number];
616
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
617
+ links?: {
618
+ label: string;
619
+ to: string;
620
+ }[] | undefined;
621
+ spoilerFree?: boolean | undefined;
622
+ requiresObjective?: string | undefined;
623
+ chestFlag?: number | undefined;
624
+ gsFlag?: {
625
+ index: number;
626
+ mask: number;
627
+ } | undefined;
628
+ collectedBy?: import("./condition.js").Condition | undefined;
629
+ hiddenWhen?: import("./condition.js").Condition | undefined;
630
+ category?: string | undefined;
631
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
632
+ context?: string | undefined;
633
+ }>, "many">;
634
+ }, "strip", z.ZodTypeAny, {
635
+ id: string;
636
+ name: string;
637
+ priority: number;
638
+ rooms: number[];
639
+ svg: string;
640
+ affine: [number, number, number, number, number, number];
641
+ headingOffsetDeg: number;
642
+ headingSign: 1 | -1;
643
+ landmarks: {
644
+ label: string;
645
+ id: string;
646
+ world: [number, number, number];
647
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
648
+ links?: {
649
+ label: string;
650
+ to: string;
651
+ }[] | undefined;
652
+ spoilerFree?: boolean | undefined;
653
+ requiresObjective?: string | undefined;
654
+ chestFlag?: number | undefined;
655
+ gsFlag?: {
656
+ index: number;
657
+ mask: number;
658
+ } | undefined;
659
+ collectedBy?: import("./condition.js").Condition | undefined;
660
+ hiddenWhen?: import("./condition.js").Condition | undefined;
661
+ category?: string | undefined;
662
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
663
+ context?: string | undefined;
664
+ }[];
665
+ yRange?: [number, number] | undefined;
666
+ }, {
667
+ id: string;
668
+ name: string;
669
+ priority: number;
670
+ rooms: number[];
671
+ svg: string;
672
+ affine: [number, number, number, number, number, number];
673
+ headingOffsetDeg: number;
674
+ headingSign: 1 | -1;
675
+ landmarks: {
676
+ label: string;
677
+ id: string;
678
+ world: [number, number, number];
679
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
680
+ links?: {
681
+ label: string;
682
+ to: string;
683
+ }[] | undefined;
684
+ spoilerFree?: boolean | undefined;
685
+ requiresObjective?: string | undefined;
686
+ chestFlag?: number | undefined;
687
+ gsFlag?: {
688
+ index: number;
689
+ mask: number;
690
+ } | undefined;
691
+ collectedBy?: import("./condition.js").Condition | undefined;
692
+ hiddenWhen?: import("./condition.js").Condition | undefined;
693
+ category?: string | undefined;
694
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
695
+ context?: string | undefined;
696
+ }[];
697
+ yRange?: [number, number] | undefined;
698
+ }>, "many">;
699
+ }, "strip", z.ZodTypeAny, {
700
+ viewBox: [number, number];
701
+ hysteresisMs: number;
702
+ layers: {
703
+ id: string;
704
+ name: string;
705
+ priority: number;
706
+ rooms: number[];
707
+ svg: string;
708
+ affine: [number, number, number, number, number, number];
709
+ headingOffsetDeg: number;
710
+ headingSign: 1 | -1;
711
+ landmarks: {
712
+ label: string;
713
+ id: string;
714
+ world: [number, number, number];
715
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
716
+ links?: {
717
+ label: string;
718
+ to: string;
719
+ }[] | undefined;
720
+ spoilerFree?: boolean | undefined;
721
+ requiresObjective?: string | undefined;
722
+ chestFlag?: number | undefined;
723
+ gsFlag?: {
724
+ index: number;
725
+ mask: number;
726
+ } | undefined;
727
+ collectedBy?: import("./condition.js").Condition | undefined;
728
+ hiddenWhen?: import("./condition.js").Condition | undefined;
729
+ category?: string | undefined;
730
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
731
+ context?: string | undefined;
732
+ }[];
733
+ yRange?: [number, number] | undefined;
734
+ }[];
735
+ }, {
736
+ viewBox: [number, number];
737
+ layers: {
738
+ id: string;
739
+ name: string;
740
+ priority: number;
741
+ rooms: number[];
742
+ svg: string;
743
+ affine: [number, number, number, number, number, number];
744
+ headingOffsetDeg: number;
745
+ headingSign: 1 | -1;
746
+ landmarks: {
747
+ label: string;
748
+ id: string;
749
+ world: [number, number, number];
750
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
751
+ links?: {
752
+ label: string;
753
+ to: string;
754
+ }[] | undefined;
755
+ spoilerFree?: boolean | undefined;
756
+ requiresObjective?: string | undefined;
757
+ chestFlag?: number | undefined;
758
+ gsFlag?: {
759
+ index: number;
760
+ mask: number;
761
+ } | undefined;
762
+ collectedBy?: import("./condition.js").Condition | undefined;
763
+ hiddenWhen?: import("./condition.js").Condition | undefined;
764
+ category?: string | undefined;
765
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
766
+ context?: string | undefined;
767
+ }[];
768
+ yRange?: [number, number] | undefined;
769
+ }[];
770
+ hysteresisMs?: number | undefined;
771
+ }>>;
772
+ }, "strip", z.ZodTypeAny, {
773
+ name: string;
774
+ map?: {
775
+ viewBox: [number, number];
776
+ hysteresisMs: number;
777
+ layers: {
778
+ id: string;
779
+ name: string;
780
+ priority: number;
781
+ rooms: number[];
782
+ svg: string;
783
+ affine: [number, number, number, number, number, number];
784
+ headingOffsetDeg: number;
785
+ headingSign: 1 | -1;
786
+ landmarks: {
787
+ label: string;
788
+ id: string;
789
+ world: [number, number, number];
790
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
791
+ links?: {
792
+ label: string;
793
+ to: string;
794
+ }[] | undefined;
795
+ spoilerFree?: boolean | undefined;
796
+ requiresObjective?: string | undefined;
797
+ chestFlag?: number | undefined;
798
+ gsFlag?: {
799
+ index: number;
800
+ mask: number;
801
+ } | undefined;
802
+ collectedBy?: import("./condition.js").Condition | undefined;
803
+ hiddenWhen?: import("./condition.js").Condition | undefined;
804
+ category?: string | undefined;
805
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
806
+ context?: string | undefined;
807
+ }[];
808
+ yRange?: [number, number] | undefined;
809
+ }[];
810
+ } | undefined;
811
+ objectives?: {
812
+ label: string;
813
+ id: string;
814
+ minDifficulty?: string | undefined;
815
+ difficulties?: string[] | undefined;
816
+ completedByItems?: string[] | undefined;
817
+ completedByFlags?: string[] | undefined;
818
+ }[] | undefined;
819
+ act?: string | undefined;
820
+ }, {
821
+ name: string;
822
+ map?: {
823
+ viewBox: [number, number];
824
+ layers: {
825
+ id: string;
826
+ name: string;
827
+ priority: number;
828
+ rooms: number[];
829
+ svg: string;
830
+ affine: [number, number, number, number, number, number];
831
+ headingOffsetDeg: number;
832
+ headingSign: 1 | -1;
833
+ landmarks: {
834
+ label: string;
835
+ id: string;
836
+ world: [number, number, number];
837
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
838
+ links?: {
839
+ label: string;
840
+ to: string;
841
+ }[] | undefined;
842
+ spoilerFree?: boolean | undefined;
843
+ requiresObjective?: string | undefined;
844
+ chestFlag?: number | undefined;
845
+ gsFlag?: {
846
+ index: number;
847
+ mask: number;
848
+ } | undefined;
849
+ collectedBy?: import("./condition.js").Condition | undefined;
850
+ hiddenWhen?: import("./condition.js").Condition | undefined;
851
+ category?: string | undefined;
852
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
853
+ context?: string | undefined;
854
+ }[];
855
+ yRange?: [number, number] | undefined;
856
+ }[];
857
+ hysteresisMs?: number | undefined;
858
+ } | undefined;
859
+ objectives?: {
860
+ label: string;
861
+ id: string;
862
+ minDifficulty?: string | undefined;
863
+ difficulties?: string[] | undefined;
864
+ completedByItems?: string[] | undefined;
865
+ completedByFlags?: string[] | undefined;
866
+ }[] | undefined;
867
+ act?: string | undefined;
868
+ }>;
869
+ export declare const GameManifestSchema: z.ZodObject<{
870
+ schemaVersion: z.ZodLiteral<1>;
871
+ gameId: z.ZodString;
872
+ requiresStateSchema: z.ZodNumber;
873
+ title: z.ZodString;
874
+ capabilities: z.ZodArray<z.ZodEnum<["location", "map_2d", "objectives", "inventory", "stats", "chat_chips"]>, "many">;
875
+ difficulties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
876
+ label: z.ZodString;
877
+ rank: z.ZodNumber;
878
+ }, "strip", z.ZodTypeAny, {
879
+ label: string;
880
+ rank: number;
881
+ }, {
882
+ label: string;
883
+ rank: number;
884
+ }>>>;
885
+ locations: z.ZodRecord<z.ZodString, z.ZodObject<{
886
+ name: z.ZodString;
887
+ act: z.ZodOptional<z.ZodString>;
888
+ objectives: z.ZodOptional<z.ZodArray<z.ZodObject<{
889
+ id: z.ZodString;
890
+ label: z.ZodString;
891
+ minDifficulty: z.ZodOptional<z.ZodString>;
892
+ difficulties: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
893
+ completedByItems: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
894
+ completedByFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
895
+ }, "strip", z.ZodTypeAny, {
896
+ label: string;
897
+ id: string;
898
+ minDifficulty?: string | undefined;
899
+ difficulties?: string[] | undefined;
900
+ completedByItems?: string[] | undefined;
901
+ completedByFlags?: string[] | undefined;
902
+ }, {
903
+ label: string;
904
+ id: string;
905
+ minDifficulty?: string | undefined;
906
+ difficulties?: string[] | undefined;
907
+ completedByItems?: string[] | undefined;
908
+ completedByFlags?: string[] | undefined;
909
+ }>, "many">>;
910
+ map: z.ZodOptional<z.ZodObject<{
911
+ viewBox: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
912
+ hysteresisMs: z.ZodDefault<z.ZodNumber>;
913
+ layers: z.ZodArray<z.ZodObject<{
914
+ id: z.ZodString;
915
+ name: z.ZodString;
916
+ priority: z.ZodNumber;
917
+ rooms: z.ZodArray<z.ZodNumber, "many">;
918
+ yRange: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
919
+ svg: z.ZodString;
920
+ affine: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
921
+ headingOffsetDeg: z.ZodNumber;
922
+ headingSign: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<-1>]>;
923
+ landmarks: z.ZodArray<z.ZodObject<{
924
+ id: z.ZodString;
925
+ label: z.ZodString;
926
+ world: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
927
+ kind: z.ZodOptional<z.ZodEnum<["calibration", "entry", "objective", "poi", "npc", "enemy", "exit", "note"]>>;
928
+ spoilerFree: z.ZodOptional<z.ZodBoolean>;
929
+ requiresObjective: z.ZodOptional<z.ZodString>;
930
+ chestFlag: z.ZodOptional<z.ZodNumber>;
931
+ /** OoT Gold Skulltula token flag: byte `index` of gSaveContext.gsFlags, bit `mask` (from En_Sw params). */
932
+ gsFlag: z.ZodOptional<z.ZodObject<{
933
+ index: z.ZodNumber;
934
+ mask: z.ZodNumber;
935
+ }, "strip", z.ZodTypeAny, {
936
+ index: number;
937
+ mask: number;
938
+ }, {
939
+ index: number;
940
+ mask: number;
941
+ }>>;
942
+ /** v3: generic collected test for this pin (replaces per-kind flags as packs migrate). */
943
+ collectedBy: z.ZodOptional<z.ZodType<import("./condition.js").Condition, z.ZodTypeDef, import("./condition.js").Condition>>;
944
+ /** v3: the pin isn't there in this state (e.g. a Doom thing absent on the current skill). */
945
+ hiddenWhen: z.ZodOptional<z.ZodType<import("./condition.js").Condition, z.ZodTypeDef, import("./condition.js").Condition>>;
946
+ /** Which of the pack's pin categories it is in (the player filters by these). */
947
+ category: z.ZodOptional<z.ZodString>;
948
+ /** How this pin connects to others on the map, e.g. a switch "Opens" a door, a door is
949
+ * "Opened by" a switch: `to` is the other pin's id. Shown on the card and given to the AI. */
950
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
951
+ label: z.ZodString;
952
+ to: z.ZodString;
953
+ }, "strip", z.ZodTypeAny, {
954
+ label: string;
955
+ to: string;
956
+ }, {
957
+ label: string;
958
+ to: string;
959
+ }>, "many">>;
960
+ /** A colour the pin is coded by (a locked door and its key), from a fixed palette. */
961
+ tint: z.ZodOptional<z.ZodEnum<["red", "blue", "yellow", "green", "purple", "orange", "grey"]>>;
962
+ /** What the pack knows about this spot, for the AI and the spot card: which one it is among
963
+ * similar pins, where it is relative to other pins, how it's reached (plain sentences). */
964
+ context: z.ZodOptional<z.ZodString>;
965
+ }, "strip", z.ZodTypeAny, {
966
+ label: string;
967
+ id: string;
968
+ world: [number, number, number];
969
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
970
+ links?: {
971
+ label: string;
972
+ to: string;
973
+ }[] | undefined;
974
+ spoilerFree?: boolean | undefined;
975
+ requiresObjective?: string | undefined;
976
+ chestFlag?: number | undefined;
977
+ gsFlag?: {
978
+ index: number;
979
+ mask: number;
980
+ } | undefined;
981
+ collectedBy?: import("./condition.js").Condition | undefined;
982
+ hiddenWhen?: import("./condition.js").Condition | undefined;
983
+ category?: string | undefined;
984
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
985
+ context?: string | undefined;
986
+ }, {
987
+ label: string;
988
+ id: string;
989
+ world: [number, number, number];
990
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
991
+ links?: {
992
+ label: string;
993
+ to: string;
994
+ }[] | undefined;
995
+ spoilerFree?: boolean | undefined;
996
+ requiresObjective?: string | undefined;
997
+ chestFlag?: number | undefined;
998
+ gsFlag?: {
999
+ index: number;
1000
+ mask: number;
1001
+ } | undefined;
1002
+ collectedBy?: import("./condition.js").Condition | undefined;
1003
+ hiddenWhen?: import("./condition.js").Condition | undefined;
1004
+ category?: string | undefined;
1005
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
1006
+ context?: string | undefined;
1007
+ }>, "many">;
1008
+ }, "strip", z.ZodTypeAny, {
1009
+ id: string;
1010
+ name: string;
1011
+ priority: number;
1012
+ rooms: number[];
1013
+ svg: string;
1014
+ affine: [number, number, number, number, number, number];
1015
+ headingOffsetDeg: number;
1016
+ headingSign: 1 | -1;
1017
+ landmarks: {
1018
+ label: string;
1019
+ id: string;
1020
+ world: [number, number, number];
1021
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
1022
+ links?: {
1023
+ label: string;
1024
+ to: string;
1025
+ }[] | undefined;
1026
+ spoilerFree?: boolean | undefined;
1027
+ requiresObjective?: string | undefined;
1028
+ chestFlag?: number | undefined;
1029
+ gsFlag?: {
1030
+ index: number;
1031
+ mask: number;
1032
+ } | undefined;
1033
+ collectedBy?: import("./condition.js").Condition | undefined;
1034
+ hiddenWhen?: import("./condition.js").Condition | undefined;
1035
+ category?: string | undefined;
1036
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
1037
+ context?: string | undefined;
1038
+ }[];
1039
+ yRange?: [number, number] | undefined;
1040
+ }, {
1041
+ id: string;
1042
+ name: string;
1043
+ priority: number;
1044
+ rooms: number[];
1045
+ svg: string;
1046
+ affine: [number, number, number, number, number, number];
1047
+ headingOffsetDeg: number;
1048
+ headingSign: 1 | -1;
1049
+ landmarks: {
1050
+ label: string;
1051
+ id: string;
1052
+ world: [number, number, number];
1053
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
1054
+ links?: {
1055
+ label: string;
1056
+ to: string;
1057
+ }[] | undefined;
1058
+ spoilerFree?: boolean | undefined;
1059
+ requiresObjective?: string | undefined;
1060
+ chestFlag?: number | undefined;
1061
+ gsFlag?: {
1062
+ index: number;
1063
+ mask: number;
1064
+ } | undefined;
1065
+ collectedBy?: import("./condition.js").Condition | undefined;
1066
+ hiddenWhen?: import("./condition.js").Condition | undefined;
1067
+ category?: string | undefined;
1068
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
1069
+ context?: string | undefined;
1070
+ }[];
1071
+ yRange?: [number, number] | undefined;
1072
+ }>, "many">;
1073
+ }, "strip", z.ZodTypeAny, {
1074
+ viewBox: [number, number];
1075
+ hysteresisMs: number;
1076
+ layers: {
1077
+ id: string;
1078
+ name: string;
1079
+ priority: number;
1080
+ rooms: number[];
1081
+ svg: string;
1082
+ affine: [number, number, number, number, number, number];
1083
+ headingOffsetDeg: number;
1084
+ headingSign: 1 | -1;
1085
+ landmarks: {
1086
+ label: string;
1087
+ id: string;
1088
+ world: [number, number, number];
1089
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
1090
+ links?: {
1091
+ label: string;
1092
+ to: string;
1093
+ }[] | undefined;
1094
+ spoilerFree?: boolean | undefined;
1095
+ requiresObjective?: string | undefined;
1096
+ chestFlag?: number | undefined;
1097
+ gsFlag?: {
1098
+ index: number;
1099
+ mask: number;
1100
+ } | undefined;
1101
+ collectedBy?: import("./condition.js").Condition | undefined;
1102
+ hiddenWhen?: import("./condition.js").Condition | undefined;
1103
+ category?: string | undefined;
1104
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
1105
+ context?: string | undefined;
1106
+ }[];
1107
+ yRange?: [number, number] | undefined;
1108
+ }[];
1109
+ }, {
1110
+ viewBox: [number, number];
1111
+ layers: {
1112
+ id: string;
1113
+ name: string;
1114
+ priority: number;
1115
+ rooms: number[];
1116
+ svg: string;
1117
+ affine: [number, number, number, number, number, number];
1118
+ headingOffsetDeg: number;
1119
+ headingSign: 1 | -1;
1120
+ landmarks: {
1121
+ label: string;
1122
+ id: string;
1123
+ world: [number, number, number];
1124
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
1125
+ links?: {
1126
+ label: string;
1127
+ to: string;
1128
+ }[] | undefined;
1129
+ spoilerFree?: boolean | undefined;
1130
+ requiresObjective?: string | undefined;
1131
+ chestFlag?: number | undefined;
1132
+ gsFlag?: {
1133
+ index: number;
1134
+ mask: number;
1135
+ } | undefined;
1136
+ collectedBy?: import("./condition.js").Condition | undefined;
1137
+ hiddenWhen?: import("./condition.js").Condition | undefined;
1138
+ category?: string | undefined;
1139
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
1140
+ context?: string | undefined;
1141
+ }[];
1142
+ yRange?: [number, number] | undefined;
1143
+ }[];
1144
+ hysteresisMs?: number | undefined;
1145
+ }>>;
1146
+ }, "strip", z.ZodTypeAny, {
1147
+ name: string;
1148
+ map?: {
1149
+ viewBox: [number, number];
1150
+ hysteresisMs: number;
1151
+ layers: {
1152
+ id: string;
1153
+ name: string;
1154
+ priority: number;
1155
+ rooms: number[];
1156
+ svg: string;
1157
+ affine: [number, number, number, number, number, number];
1158
+ headingOffsetDeg: number;
1159
+ headingSign: 1 | -1;
1160
+ landmarks: {
1161
+ label: string;
1162
+ id: string;
1163
+ world: [number, number, number];
1164
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
1165
+ links?: {
1166
+ label: string;
1167
+ to: string;
1168
+ }[] | undefined;
1169
+ spoilerFree?: boolean | undefined;
1170
+ requiresObjective?: string | undefined;
1171
+ chestFlag?: number | undefined;
1172
+ gsFlag?: {
1173
+ index: number;
1174
+ mask: number;
1175
+ } | undefined;
1176
+ collectedBy?: import("./condition.js").Condition | undefined;
1177
+ hiddenWhen?: import("./condition.js").Condition | undefined;
1178
+ category?: string | undefined;
1179
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
1180
+ context?: string | undefined;
1181
+ }[];
1182
+ yRange?: [number, number] | undefined;
1183
+ }[];
1184
+ } | undefined;
1185
+ objectives?: {
1186
+ label: string;
1187
+ id: string;
1188
+ minDifficulty?: string | undefined;
1189
+ difficulties?: string[] | undefined;
1190
+ completedByItems?: string[] | undefined;
1191
+ completedByFlags?: string[] | undefined;
1192
+ }[] | undefined;
1193
+ act?: string | undefined;
1194
+ }, {
1195
+ name: string;
1196
+ map?: {
1197
+ viewBox: [number, number];
1198
+ layers: {
1199
+ id: string;
1200
+ name: string;
1201
+ priority: number;
1202
+ rooms: number[];
1203
+ svg: string;
1204
+ affine: [number, number, number, number, number, number];
1205
+ headingOffsetDeg: number;
1206
+ headingSign: 1 | -1;
1207
+ landmarks: {
1208
+ label: string;
1209
+ id: string;
1210
+ world: [number, number, number];
1211
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
1212
+ links?: {
1213
+ label: string;
1214
+ to: string;
1215
+ }[] | undefined;
1216
+ spoilerFree?: boolean | undefined;
1217
+ requiresObjective?: string | undefined;
1218
+ chestFlag?: number | undefined;
1219
+ gsFlag?: {
1220
+ index: number;
1221
+ mask: number;
1222
+ } | undefined;
1223
+ collectedBy?: import("./condition.js").Condition | undefined;
1224
+ hiddenWhen?: import("./condition.js").Condition | undefined;
1225
+ category?: string | undefined;
1226
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
1227
+ context?: string | undefined;
1228
+ }[];
1229
+ yRange?: [number, number] | undefined;
1230
+ }[];
1231
+ hysteresisMs?: number | undefined;
1232
+ } | undefined;
1233
+ objectives?: {
1234
+ label: string;
1235
+ id: string;
1236
+ minDifficulty?: string | undefined;
1237
+ difficulties?: string[] | undefined;
1238
+ completedByItems?: string[] | undefined;
1239
+ completedByFlags?: string[] | undefined;
1240
+ }[] | undefined;
1241
+ act?: string | undefined;
1242
+ }>>;
1243
+ items: z.ZodRecord<z.ZodString, z.ZodObject<{
1244
+ name: z.ZodString;
1245
+ category: z.ZodString;
1246
+ }, "strip", z.ZodTypeAny, {
1247
+ category: string;
1248
+ name: string;
1249
+ }, {
1250
+ category: string;
1251
+ name: string;
1252
+ }>>;
1253
+ chips: z.ZodOptional<z.ZodArray<z.ZodObject<{
1254
+ id: z.ZodString;
1255
+ label: z.ZodString;
1256
+ prompt: z.ZodString;
1257
+ }, "strip", z.ZodTypeAny, {
1258
+ label: string;
1259
+ id: string;
1260
+ prompt: string;
1261
+ }, {
1262
+ label: string;
1263
+ id: string;
1264
+ prompt: string;
1265
+ }>, "many">>;
1266
+ }, "strip", z.ZodTypeAny, {
1267
+ title: string;
1268
+ gameId: string;
1269
+ capabilities: ("location" | "map_2d" | "objectives" | "inventory" | "stats" | "chat_chips")[];
1270
+ schemaVersion: 1;
1271
+ requiresStateSchema: number;
1272
+ locations: Record<string, {
1273
+ name: string;
1274
+ map?: {
1275
+ viewBox: [number, number];
1276
+ hysteresisMs: number;
1277
+ layers: {
1278
+ id: string;
1279
+ name: string;
1280
+ priority: number;
1281
+ rooms: number[];
1282
+ svg: string;
1283
+ affine: [number, number, number, number, number, number];
1284
+ headingOffsetDeg: number;
1285
+ headingSign: 1 | -1;
1286
+ landmarks: {
1287
+ label: string;
1288
+ id: string;
1289
+ world: [number, number, number];
1290
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
1291
+ links?: {
1292
+ label: string;
1293
+ to: string;
1294
+ }[] | undefined;
1295
+ spoilerFree?: boolean | undefined;
1296
+ requiresObjective?: string | undefined;
1297
+ chestFlag?: number | undefined;
1298
+ gsFlag?: {
1299
+ index: number;
1300
+ mask: number;
1301
+ } | undefined;
1302
+ collectedBy?: import("./condition.js").Condition | undefined;
1303
+ hiddenWhen?: import("./condition.js").Condition | undefined;
1304
+ category?: string | undefined;
1305
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
1306
+ context?: string | undefined;
1307
+ }[];
1308
+ yRange?: [number, number] | undefined;
1309
+ }[];
1310
+ } | undefined;
1311
+ objectives?: {
1312
+ label: string;
1313
+ id: string;
1314
+ minDifficulty?: string | undefined;
1315
+ difficulties?: string[] | undefined;
1316
+ completedByItems?: string[] | undefined;
1317
+ completedByFlags?: string[] | undefined;
1318
+ }[] | undefined;
1319
+ act?: string | undefined;
1320
+ }>;
1321
+ items: Record<string, {
1322
+ category: string;
1323
+ name: string;
1324
+ }>;
1325
+ difficulties?: Record<string, {
1326
+ label: string;
1327
+ rank: number;
1328
+ }> | undefined;
1329
+ chips?: {
1330
+ label: string;
1331
+ id: string;
1332
+ prompt: string;
1333
+ }[] | undefined;
1334
+ }, {
1335
+ title: string;
1336
+ gameId: string;
1337
+ capabilities: ("location" | "map_2d" | "objectives" | "inventory" | "stats" | "chat_chips")[];
1338
+ schemaVersion: 1;
1339
+ requiresStateSchema: number;
1340
+ locations: Record<string, {
1341
+ name: string;
1342
+ map?: {
1343
+ viewBox: [number, number];
1344
+ layers: {
1345
+ id: string;
1346
+ name: string;
1347
+ priority: number;
1348
+ rooms: number[];
1349
+ svg: string;
1350
+ affine: [number, number, number, number, number, number];
1351
+ headingOffsetDeg: number;
1352
+ headingSign: 1 | -1;
1353
+ landmarks: {
1354
+ label: string;
1355
+ id: string;
1356
+ world: [number, number, number];
1357
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
1358
+ links?: {
1359
+ label: string;
1360
+ to: string;
1361
+ }[] | undefined;
1362
+ spoilerFree?: boolean | undefined;
1363
+ requiresObjective?: string | undefined;
1364
+ chestFlag?: number | undefined;
1365
+ gsFlag?: {
1366
+ index: number;
1367
+ mask: number;
1368
+ } | undefined;
1369
+ collectedBy?: import("./condition.js").Condition | undefined;
1370
+ hiddenWhen?: import("./condition.js").Condition | undefined;
1371
+ category?: string | undefined;
1372
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
1373
+ context?: string | undefined;
1374
+ }[];
1375
+ yRange?: [number, number] | undefined;
1376
+ }[];
1377
+ hysteresisMs?: number | undefined;
1378
+ } | undefined;
1379
+ objectives?: {
1380
+ label: string;
1381
+ id: string;
1382
+ minDifficulty?: string | undefined;
1383
+ difficulties?: string[] | undefined;
1384
+ completedByItems?: string[] | undefined;
1385
+ completedByFlags?: string[] | undefined;
1386
+ }[] | undefined;
1387
+ act?: string | undefined;
1388
+ }>;
1389
+ items: Record<string, {
1390
+ category: string;
1391
+ name: string;
1392
+ }>;
1393
+ difficulties?: Record<string, {
1394
+ label: string;
1395
+ rank: number;
1396
+ }> | undefined;
1397
+ chips?: {
1398
+ label: string;
1399
+ id: string;
1400
+ prompt: string;
1401
+ }[] | undefined;
1402
+ }>;
1403
+ export type GameManifest = z.infer<typeof GameManifestSchema>;
1404
+ export declare const HintNodeSchema: z.ZodObject<{
1405
+ id: z.ZodString;
1406
+ locationIds: z.ZodArray<z.ZodString, "many">;
1407
+ requires: z.ZodObject<{
1408
+ minDifficulty: z.ZodOptional<z.ZodString>;
1409
+ difficulties: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1410
+ age: z.ZodOptional<z.ZodString>;
1411
+ objectivesIncomplete: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1412
+ objectivesComplete: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1413
+ inventory: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1414
+ flags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1415
+ }, "strip", z.ZodTypeAny, {
1416
+ inventory?: string[] | undefined;
1417
+ flags?: string[] | undefined;
1418
+ minDifficulty?: string | undefined;
1419
+ difficulties?: string[] | undefined;
1420
+ age?: string | undefined;
1421
+ objectivesIncomplete?: string[] | undefined;
1422
+ objectivesComplete?: string[] | undefined;
1423
+ }, {
1424
+ inventory?: string[] | undefined;
1425
+ flags?: string[] | undefined;
1426
+ minDifficulty?: string | undefined;
1427
+ difficulties?: string[] | undefined;
1428
+ age?: string | undefined;
1429
+ objectivesIncomplete?: string[] | undefined;
1430
+ objectivesComplete?: string[] | undefined;
1431
+ }>;
1432
+ excludes: z.ZodObject<{
1433
+ inventory: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1434
+ flags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1435
+ objectivesComplete: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1436
+ }, "strip", z.ZodTypeAny, {
1437
+ inventory?: string[] | undefined;
1438
+ flags?: string[] | undefined;
1439
+ objectivesComplete?: string[] | undefined;
1440
+ }, {
1441
+ inventory?: string[] | undefined;
1442
+ flags?: string[] | undefined;
1443
+ objectivesComplete?: string[] | undefined;
1444
+ }>;
1445
+ reveals: z.ZodArray<z.ZodString, "many">;
1446
+ isPlotSpoiler: z.ZodBoolean;
1447
+ tiers: z.ZodObject<{
1448
+ '1': z.ZodString;
1449
+ '2': z.ZodString;
1450
+ '3': z.ZodOptional<z.ZodString>;
1451
+ }, "strip", z.ZodTypeAny, {
1452
+ '1': string;
1453
+ '2': string;
1454
+ '3'?: string | undefined;
1455
+ }, {
1456
+ '1': string;
1457
+ '2': string;
1458
+ '3'?: string | undefined;
1459
+ }>;
1460
+ }, "strip", z.ZodTypeAny, {
1461
+ id: string;
1462
+ requires: {
1463
+ inventory?: string[] | undefined;
1464
+ flags?: string[] | undefined;
1465
+ minDifficulty?: string | undefined;
1466
+ difficulties?: string[] | undefined;
1467
+ age?: string | undefined;
1468
+ objectivesIncomplete?: string[] | undefined;
1469
+ objectivesComplete?: string[] | undefined;
1470
+ };
1471
+ locationIds: string[];
1472
+ excludes: {
1473
+ inventory?: string[] | undefined;
1474
+ flags?: string[] | undefined;
1475
+ objectivesComplete?: string[] | undefined;
1476
+ };
1477
+ reveals: string[];
1478
+ isPlotSpoiler: boolean;
1479
+ tiers: {
1480
+ '1': string;
1481
+ '2': string;
1482
+ '3'?: string | undefined;
1483
+ };
1484
+ }, {
1485
+ id: string;
1486
+ requires: {
1487
+ inventory?: string[] | undefined;
1488
+ flags?: string[] | undefined;
1489
+ minDifficulty?: string | undefined;
1490
+ difficulties?: string[] | undefined;
1491
+ age?: string | undefined;
1492
+ objectivesIncomplete?: string[] | undefined;
1493
+ objectivesComplete?: string[] | undefined;
1494
+ };
1495
+ locationIds: string[];
1496
+ excludes: {
1497
+ inventory?: string[] | undefined;
1498
+ flags?: string[] | undefined;
1499
+ objectivesComplete?: string[] | undefined;
1500
+ };
1501
+ reveals: string[];
1502
+ isPlotSpoiler: boolean;
1503
+ tiers: {
1504
+ '1': string;
1505
+ '2': string;
1506
+ '3'?: string | undefined;
1507
+ };
1508
+ }>;
1509
+ export type HintNode = z.infer<typeof HintNodeSchema>;
1510
+ export declare const HintGraphSchema: z.ZodObject<{
1511
+ schemaVersion: z.ZodLiteral<1>;
1512
+ gameId: z.ZodString;
1513
+ hints: z.ZodArray<z.ZodObject<{
1514
+ id: z.ZodString;
1515
+ locationIds: z.ZodArray<z.ZodString, "many">;
1516
+ requires: z.ZodObject<{
1517
+ minDifficulty: z.ZodOptional<z.ZodString>;
1518
+ difficulties: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1519
+ age: z.ZodOptional<z.ZodString>;
1520
+ objectivesIncomplete: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1521
+ objectivesComplete: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1522
+ inventory: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1523
+ flags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1524
+ }, "strip", z.ZodTypeAny, {
1525
+ inventory?: string[] | undefined;
1526
+ flags?: string[] | undefined;
1527
+ minDifficulty?: string | undefined;
1528
+ difficulties?: string[] | undefined;
1529
+ age?: string | undefined;
1530
+ objectivesIncomplete?: string[] | undefined;
1531
+ objectivesComplete?: string[] | undefined;
1532
+ }, {
1533
+ inventory?: string[] | undefined;
1534
+ flags?: string[] | undefined;
1535
+ minDifficulty?: string | undefined;
1536
+ difficulties?: string[] | undefined;
1537
+ age?: string | undefined;
1538
+ objectivesIncomplete?: string[] | undefined;
1539
+ objectivesComplete?: string[] | undefined;
1540
+ }>;
1541
+ excludes: z.ZodObject<{
1542
+ inventory: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1543
+ flags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1544
+ objectivesComplete: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1545
+ }, "strip", z.ZodTypeAny, {
1546
+ inventory?: string[] | undefined;
1547
+ flags?: string[] | undefined;
1548
+ objectivesComplete?: string[] | undefined;
1549
+ }, {
1550
+ inventory?: string[] | undefined;
1551
+ flags?: string[] | undefined;
1552
+ objectivesComplete?: string[] | undefined;
1553
+ }>;
1554
+ reveals: z.ZodArray<z.ZodString, "many">;
1555
+ isPlotSpoiler: z.ZodBoolean;
1556
+ tiers: z.ZodObject<{
1557
+ '1': z.ZodString;
1558
+ '2': z.ZodString;
1559
+ '3': z.ZodOptional<z.ZodString>;
1560
+ }, "strip", z.ZodTypeAny, {
1561
+ '1': string;
1562
+ '2': string;
1563
+ '3'?: string | undefined;
1564
+ }, {
1565
+ '1': string;
1566
+ '2': string;
1567
+ '3'?: string | undefined;
1568
+ }>;
1569
+ }, "strip", z.ZodTypeAny, {
1570
+ id: string;
1571
+ requires: {
1572
+ inventory?: string[] | undefined;
1573
+ flags?: string[] | undefined;
1574
+ minDifficulty?: string | undefined;
1575
+ difficulties?: string[] | undefined;
1576
+ age?: string | undefined;
1577
+ objectivesIncomplete?: string[] | undefined;
1578
+ objectivesComplete?: string[] | undefined;
1579
+ };
1580
+ locationIds: string[];
1581
+ excludes: {
1582
+ inventory?: string[] | undefined;
1583
+ flags?: string[] | undefined;
1584
+ objectivesComplete?: string[] | undefined;
1585
+ };
1586
+ reveals: string[];
1587
+ isPlotSpoiler: boolean;
1588
+ tiers: {
1589
+ '1': string;
1590
+ '2': string;
1591
+ '3'?: string | undefined;
1592
+ };
1593
+ }, {
1594
+ id: string;
1595
+ requires: {
1596
+ inventory?: string[] | undefined;
1597
+ flags?: string[] | undefined;
1598
+ minDifficulty?: string | undefined;
1599
+ difficulties?: string[] | undefined;
1600
+ age?: string | undefined;
1601
+ objectivesIncomplete?: string[] | undefined;
1602
+ objectivesComplete?: string[] | undefined;
1603
+ };
1604
+ locationIds: string[];
1605
+ excludes: {
1606
+ inventory?: string[] | undefined;
1607
+ flags?: string[] | undefined;
1608
+ objectivesComplete?: string[] | undefined;
1609
+ };
1610
+ reveals: string[];
1611
+ isPlotSpoiler: boolean;
1612
+ tiers: {
1613
+ '1': string;
1614
+ '2': string;
1615
+ '3'?: string | undefined;
1616
+ };
1617
+ }>, "many">;
1618
+ }, "strip", z.ZodTypeAny, {
1619
+ gameId: string;
1620
+ schemaVersion: 1;
1621
+ hints: {
1622
+ id: string;
1623
+ requires: {
1624
+ inventory?: string[] | undefined;
1625
+ flags?: string[] | undefined;
1626
+ minDifficulty?: string | undefined;
1627
+ difficulties?: string[] | undefined;
1628
+ age?: string | undefined;
1629
+ objectivesIncomplete?: string[] | undefined;
1630
+ objectivesComplete?: string[] | undefined;
1631
+ };
1632
+ locationIds: string[];
1633
+ excludes: {
1634
+ inventory?: string[] | undefined;
1635
+ flags?: string[] | undefined;
1636
+ objectivesComplete?: string[] | undefined;
1637
+ };
1638
+ reveals: string[];
1639
+ isPlotSpoiler: boolean;
1640
+ tiers: {
1641
+ '1': string;
1642
+ '2': string;
1643
+ '3'?: string | undefined;
1644
+ };
1645
+ }[];
1646
+ }, {
1647
+ gameId: string;
1648
+ schemaVersion: 1;
1649
+ hints: {
1650
+ id: string;
1651
+ requires: {
1652
+ inventory?: string[] | undefined;
1653
+ flags?: string[] | undefined;
1654
+ minDifficulty?: string | undefined;
1655
+ difficulties?: string[] | undefined;
1656
+ age?: string | undefined;
1657
+ objectivesIncomplete?: string[] | undefined;
1658
+ objectivesComplete?: string[] | undefined;
1659
+ };
1660
+ locationIds: string[];
1661
+ excludes: {
1662
+ inventory?: string[] | undefined;
1663
+ flags?: string[] | undefined;
1664
+ objectivesComplete?: string[] | undefined;
1665
+ };
1666
+ reveals: string[];
1667
+ isPlotSpoiler: boolean;
1668
+ tiers: {
1669
+ '1': string;
1670
+ '2': string;
1671
+ '3'?: string | undefined;
1672
+ };
1673
+ }[];
1674
+ }>;
1675
+ export type HintGraph = z.infer<typeof HintGraphSchema>;
1676
+ export declare const RegistryIndexSchema: z.ZodObject<{
1677
+ schemaVersion: z.ZodLiteral<1>;
1678
+ games: z.ZodRecord<z.ZodString, z.ZodObject<{
1679
+ title: z.ZodString;
1680
+ subtitle: z.ZodOptional<z.ZodString>;
1681
+ manifest: z.ZodString;
1682
+ hints: z.ZodString;
1683
+ nativeBuilds: z.ZodArray<z.ZodObject<{
1684
+ buildId: z.ZodString;
1685
+ region: z.ZodString;
1686
+ platform: z.ZodString;
1687
+ executableHint: z.ZodString;
1688
+ }, "strip", z.ZodTypeAny, {
1689
+ buildId: string;
1690
+ region: string;
1691
+ platform: string;
1692
+ executableHint: string;
1693
+ }, {
1694
+ buildId: string;
1695
+ region: string;
1696
+ platform: string;
1697
+ executableHint: string;
1698
+ }>, "many">;
1699
+ romIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1700
+ }, "strip", z.ZodTypeAny, {
1701
+ title: string;
1702
+ hints: string;
1703
+ manifest: string;
1704
+ nativeBuilds: {
1705
+ buildId: string;
1706
+ region: string;
1707
+ platform: string;
1708
+ executableHint: string;
1709
+ }[];
1710
+ subtitle?: string | undefined;
1711
+ romIds?: string[] | undefined;
1712
+ }, {
1713
+ title: string;
1714
+ hints: string;
1715
+ manifest: string;
1716
+ nativeBuilds: {
1717
+ buildId: string;
1718
+ region: string;
1719
+ platform: string;
1720
+ executableHint: string;
1721
+ }[];
1722
+ subtitle?: string | undefined;
1723
+ romIds?: string[] | undefined;
1724
+ }>>;
1725
+ }, "strip", z.ZodTypeAny, {
1726
+ schemaVersion: 1;
1727
+ games: Record<string, {
1728
+ title: string;
1729
+ hints: string;
1730
+ manifest: string;
1731
+ nativeBuilds: {
1732
+ buildId: string;
1733
+ region: string;
1734
+ platform: string;
1735
+ executableHint: string;
1736
+ }[];
1737
+ subtitle?: string | undefined;
1738
+ romIds?: string[] | undefined;
1739
+ }>;
1740
+ }, {
1741
+ schemaVersion: 1;
1742
+ games: Record<string, {
1743
+ title: string;
1744
+ hints: string;
1745
+ manifest: string;
1746
+ nativeBuilds: {
1747
+ buildId: string;
1748
+ region: string;
1749
+ platform: string;
1750
+ executableHint: string;
1751
+ }[];
1752
+ subtitle?: string | undefined;
1753
+ romIds?: string[] | undefined;
1754
+ }>;
1755
+ }>;
1756
+ export type RegistryIndex = z.infer<typeof RegistryIndexSchema>;
1757
+ /**
1758
+ * Locations extracted on the player's PC from their own game files (`local-assets/<id>/manifest.json`),
1759
+ * e.g. Doom maps from the player's WAD. Never committed (data-licensing.md).
1760
+ */
1761
+ export declare const LocalManifestSchema: z.ZodObject<{
1762
+ schemaVersion: z.ZodLiteral<1>;
1763
+ locations: z.ZodRecord<z.ZodString, z.ZodObject<{
1764
+ name: z.ZodString;
1765
+ act: z.ZodOptional<z.ZodString>;
1766
+ objectives: z.ZodOptional<z.ZodArray<z.ZodObject<{
1767
+ id: z.ZodString;
1768
+ label: z.ZodString;
1769
+ minDifficulty: z.ZodOptional<z.ZodString>;
1770
+ difficulties: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1771
+ completedByItems: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1772
+ completedByFlags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1773
+ }, "strip", z.ZodTypeAny, {
1774
+ label: string;
1775
+ id: string;
1776
+ minDifficulty?: string | undefined;
1777
+ difficulties?: string[] | undefined;
1778
+ completedByItems?: string[] | undefined;
1779
+ completedByFlags?: string[] | undefined;
1780
+ }, {
1781
+ label: string;
1782
+ id: string;
1783
+ minDifficulty?: string | undefined;
1784
+ difficulties?: string[] | undefined;
1785
+ completedByItems?: string[] | undefined;
1786
+ completedByFlags?: string[] | undefined;
1787
+ }>, "many">>;
1788
+ map: z.ZodOptional<z.ZodObject<{
1789
+ viewBox: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
1790
+ hysteresisMs: z.ZodDefault<z.ZodNumber>;
1791
+ layers: z.ZodArray<z.ZodObject<{
1792
+ id: z.ZodString;
1793
+ name: z.ZodString;
1794
+ priority: z.ZodNumber;
1795
+ rooms: z.ZodArray<z.ZodNumber, "many">;
1796
+ yRange: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1797
+ svg: z.ZodString;
1798
+ affine: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
1799
+ headingOffsetDeg: z.ZodNumber;
1800
+ headingSign: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<-1>]>;
1801
+ landmarks: z.ZodArray<z.ZodObject<{
1802
+ id: z.ZodString;
1803
+ label: z.ZodString;
1804
+ world: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
1805
+ kind: z.ZodOptional<z.ZodEnum<["calibration", "entry", "objective", "poi", "npc", "enemy", "exit", "note"]>>;
1806
+ spoilerFree: z.ZodOptional<z.ZodBoolean>;
1807
+ requiresObjective: z.ZodOptional<z.ZodString>;
1808
+ chestFlag: z.ZodOptional<z.ZodNumber>;
1809
+ /** OoT Gold Skulltula token flag: byte `index` of gSaveContext.gsFlags, bit `mask` (from En_Sw params). */
1810
+ gsFlag: z.ZodOptional<z.ZodObject<{
1811
+ index: z.ZodNumber;
1812
+ mask: z.ZodNumber;
1813
+ }, "strip", z.ZodTypeAny, {
1814
+ index: number;
1815
+ mask: number;
1816
+ }, {
1817
+ index: number;
1818
+ mask: number;
1819
+ }>>;
1820
+ /** v3: generic collected test for this pin (replaces per-kind flags as packs migrate). */
1821
+ collectedBy: z.ZodOptional<z.ZodType<import("./condition.js").Condition, z.ZodTypeDef, import("./condition.js").Condition>>;
1822
+ /** v3: the pin isn't there in this state (e.g. a Doom thing absent on the current skill). */
1823
+ hiddenWhen: z.ZodOptional<z.ZodType<import("./condition.js").Condition, z.ZodTypeDef, import("./condition.js").Condition>>;
1824
+ /** Which of the pack's pin categories it is in (the player filters by these). */
1825
+ category: z.ZodOptional<z.ZodString>;
1826
+ /** How this pin connects to others on the map, e.g. a switch "Opens" a door, a door is
1827
+ * "Opened by" a switch: `to` is the other pin's id. Shown on the card and given to the AI. */
1828
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
1829
+ label: z.ZodString;
1830
+ to: z.ZodString;
1831
+ }, "strip", z.ZodTypeAny, {
1832
+ label: string;
1833
+ to: string;
1834
+ }, {
1835
+ label: string;
1836
+ to: string;
1837
+ }>, "many">>;
1838
+ /** A colour the pin is coded by (a locked door and its key), from a fixed palette. */
1839
+ tint: z.ZodOptional<z.ZodEnum<["red", "blue", "yellow", "green", "purple", "orange", "grey"]>>;
1840
+ /** What the pack knows about this spot, for the AI and the spot card: which one it is among
1841
+ * similar pins, where it is relative to other pins, how it's reached (plain sentences). */
1842
+ context: z.ZodOptional<z.ZodString>;
1843
+ }, "strip", z.ZodTypeAny, {
1844
+ label: string;
1845
+ id: string;
1846
+ world: [number, number, number];
1847
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
1848
+ links?: {
1849
+ label: string;
1850
+ to: string;
1851
+ }[] | undefined;
1852
+ spoilerFree?: boolean | undefined;
1853
+ requiresObjective?: string | undefined;
1854
+ chestFlag?: number | undefined;
1855
+ gsFlag?: {
1856
+ index: number;
1857
+ mask: number;
1858
+ } | undefined;
1859
+ collectedBy?: import("./condition.js").Condition | undefined;
1860
+ hiddenWhen?: import("./condition.js").Condition | undefined;
1861
+ category?: string | undefined;
1862
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
1863
+ context?: string | undefined;
1864
+ }, {
1865
+ label: string;
1866
+ id: string;
1867
+ world: [number, number, number];
1868
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
1869
+ links?: {
1870
+ label: string;
1871
+ to: string;
1872
+ }[] | undefined;
1873
+ spoilerFree?: boolean | undefined;
1874
+ requiresObjective?: string | undefined;
1875
+ chestFlag?: number | undefined;
1876
+ gsFlag?: {
1877
+ index: number;
1878
+ mask: number;
1879
+ } | undefined;
1880
+ collectedBy?: import("./condition.js").Condition | undefined;
1881
+ hiddenWhen?: import("./condition.js").Condition | undefined;
1882
+ category?: string | undefined;
1883
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
1884
+ context?: string | undefined;
1885
+ }>, "many">;
1886
+ }, "strip", z.ZodTypeAny, {
1887
+ id: string;
1888
+ name: string;
1889
+ priority: number;
1890
+ rooms: number[];
1891
+ svg: string;
1892
+ affine: [number, number, number, number, number, number];
1893
+ headingOffsetDeg: number;
1894
+ headingSign: 1 | -1;
1895
+ landmarks: {
1896
+ label: string;
1897
+ id: string;
1898
+ world: [number, number, number];
1899
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
1900
+ links?: {
1901
+ label: string;
1902
+ to: string;
1903
+ }[] | undefined;
1904
+ spoilerFree?: boolean | undefined;
1905
+ requiresObjective?: string | undefined;
1906
+ chestFlag?: number | undefined;
1907
+ gsFlag?: {
1908
+ index: number;
1909
+ mask: number;
1910
+ } | undefined;
1911
+ collectedBy?: import("./condition.js").Condition | undefined;
1912
+ hiddenWhen?: import("./condition.js").Condition | undefined;
1913
+ category?: string | undefined;
1914
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
1915
+ context?: string | undefined;
1916
+ }[];
1917
+ yRange?: [number, number] | undefined;
1918
+ }, {
1919
+ id: string;
1920
+ name: string;
1921
+ priority: number;
1922
+ rooms: number[];
1923
+ svg: string;
1924
+ affine: [number, number, number, number, number, number];
1925
+ headingOffsetDeg: number;
1926
+ headingSign: 1 | -1;
1927
+ landmarks: {
1928
+ label: string;
1929
+ id: string;
1930
+ world: [number, number, number];
1931
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
1932
+ links?: {
1933
+ label: string;
1934
+ to: string;
1935
+ }[] | undefined;
1936
+ spoilerFree?: boolean | undefined;
1937
+ requiresObjective?: string | undefined;
1938
+ chestFlag?: number | undefined;
1939
+ gsFlag?: {
1940
+ index: number;
1941
+ mask: number;
1942
+ } | undefined;
1943
+ collectedBy?: import("./condition.js").Condition | undefined;
1944
+ hiddenWhen?: import("./condition.js").Condition | undefined;
1945
+ category?: string | undefined;
1946
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
1947
+ context?: string | undefined;
1948
+ }[];
1949
+ yRange?: [number, number] | undefined;
1950
+ }>, "many">;
1951
+ }, "strip", z.ZodTypeAny, {
1952
+ viewBox: [number, number];
1953
+ hysteresisMs: number;
1954
+ layers: {
1955
+ id: string;
1956
+ name: string;
1957
+ priority: number;
1958
+ rooms: number[];
1959
+ svg: string;
1960
+ affine: [number, number, number, number, number, number];
1961
+ headingOffsetDeg: number;
1962
+ headingSign: 1 | -1;
1963
+ landmarks: {
1964
+ label: string;
1965
+ id: string;
1966
+ world: [number, number, number];
1967
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
1968
+ links?: {
1969
+ label: string;
1970
+ to: string;
1971
+ }[] | undefined;
1972
+ spoilerFree?: boolean | undefined;
1973
+ requiresObjective?: string | undefined;
1974
+ chestFlag?: number | undefined;
1975
+ gsFlag?: {
1976
+ index: number;
1977
+ mask: number;
1978
+ } | undefined;
1979
+ collectedBy?: import("./condition.js").Condition | undefined;
1980
+ hiddenWhen?: import("./condition.js").Condition | undefined;
1981
+ category?: string | undefined;
1982
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
1983
+ context?: string | undefined;
1984
+ }[];
1985
+ yRange?: [number, number] | undefined;
1986
+ }[];
1987
+ }, {
1988
+ viewBox: [number, number];
1989
+ layers: {
1990
+ id: string;
1991
+ name: string;
1992
+ priority: number;
1993
+ rooms: number[];
1994
+ svg: string;
1995
+ affine: [number, number, number, number, number, number];
1996
+ headingOffsetDeg: number;
1997
+ headingSign: 1 | -1;
1998
+ landmarks: {
1999
+ label: string;
2000
+ id: string;
2001
+ world: [number, number, number];
2002
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
2003
+ links?: {
2004
+ label: string;
2005
+ to: string;
2006
+ }[] | undefined;
2007
+ spoilerFree?: boolean | undefined;
2008
+ requiresObjective?: string | undefined;
2009
+ chestFlag?: number | undefined;
2010
+ gsFlag?: {
2011
+ index: number;
2012
+ mask: number;
2013
+ } | undefined;
2014
+ collectedBy?: import("./condition.js").Condition | undefined;
2015
+ hiddenWhen?: import("./condition.js").Condition | undefined;
2016
+ category?: string | undefined;
2017
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
2018
+ context?: string | undefined;
2019
+ }[];
2020
+ yRange?: [number, number] | undefined;
2021
+ }[];
2022
+ hysteresisMs?: number | undefined;
2023
+ }>>;
2024
+ }, "strip", z.ZodTypeAny, {
2025
+ name: string;
2026
+ map?: {
2027
+ viewBox: [number, number];
2028
+ hysteresisMs: number;
2029
+ layers: {
2030
+ id: string;
2031
+ name: string;
2032
+ priority: number;
2033
+ rooms: number[];
2034
+ svg: string;
2035
+ affine: [number, number, number, number, number, number];
2036
+ headingOffsetDeg: number;
2037
+ headingSign: 1 | -1;
2038
+ landmarks: {
2039
+ label: string;
2040
+ id: string;
2041
+ world: [number, number, number];
2042
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
2043
+ links?: {
2044
+ label: string;
2045
+ to: string;
2046
+ }[] | undefined;
2047
+ spoilerFree?: boolean | undefined;
2048
+ requiresObjective?: string | undefined;
2049
+ chestFlag?: number | undefined;
2050
+ gsFlag?: {
2051
+ index: number;
2052
+ mask: number;
2053
+ } | undefined;
2054
+ collectedBy?: import("./condition.js").Condition | undefined;
2055
+ hiddenWhen?: import("./condition.js").Condition | undefined;
2056
+ category?: string | undefined;
2057
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
2058
+ context?: string | undefined;
2059
+ }[];
2060
+ yRange?: [number, number] | undefined;
2061
+ }[];
2062
+ } | undefined;
2063
+ objectives?: {
2064
+ label: string;
2065
+ id: string;
2066
+ minDifficulty?: string | undefined;
2067
+ difficulties?: string[] | undefined;
2068
+ completedByItems?: string[] | undefined;
2069
+ completedByFlags?: string[] | undefined;
2070
+ }[] | undefined;
2071
+ act?: string | undefined;
2072
+ }, {
2073
+ name: string;
2074
+ map?: {
2075
+ viewBox: [number, number];
2076
+ layers: {
2077
+ id: string;
2078
+ name: string;
2079
+ priority: number;
2080
+ rooms: number[];
2081
+ svg: string;
2082
+ affine: [number, number, number, number, number, number];
2083
+ headingOffsetDeg: number;
2084
+ headingSign: 1 | -1;
2085
+ landmarks: {
2086
+ label: string;
2087
+ id: string;
2088
+ world: [number, number, number];
2089
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
2090
+ links?: {
2091
+ label: string;
2092
+ to: string;
2093
+ }[] | undefined;
2094
+ spoilerFree?: boolean | undefined;
2095
+ requiresObjective?: string | undefined;
2096
+ chestFlag?: number | undefined;
2097
+ gsFlag?: {
2098
+ index: number;
2099
+ mask: number;
2100
+ } | undefined;
2101
+ collectedBy?: import("./condition.js").Condition | undefined;
2102
+ hiddenWhen?: import("./condition.js").Condition | undefined;
2103
+ category?: string | undefined;
2104
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
2105
+ context?: string | undefined;
2106
+ }[];
2107
+ yRange?: [number, number] | undefined;
2108
+ }[];
2109
+ hysteresisMs?: number | undefined;
2110
+ } | undefined;
2111
+ objectives?: {
2112
+ label: string;
2113
+ id: string;
2114
+ minDifficulty?: string | undefined;
2115
+ difficulties?: string[] | undefined;
2116
+ completedByItems?: string[] | undefined;
2117
+ completedByFlags?: string[] | undefined;
2118
+ }[] | undefined;
2119
+ act?: string | undefined;
2120
+ }>>;
2121
+ }, "strip", z.ZodTypeAny, {
2122
+ schemaVersion: 1;
2123
+ locations: Record<string, {
2124
+ name: string;
2125
+ map?: {
2126
+ viewBox: [number, number];
2127
+ hysteresisMs: number;
2128
+ layers: {
2129
+ id: string;
2130
+ name: string;
2131
+ priority: number;
2132
+ rooms: number[];
2133
+ svg: string;
2134
+ affine: [number, number, number, number, number, number];
2135
+ headingOffsetDeg: number;
2136
+ headingSign: 1 | -1;
2137
+ landmarks: {
2138
+ label: string;
2139
+ id: string;
2140
+ world: [number, number, number];
2141
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
2142
+ links?: {
2143
+ label: string;
2144
+ to: string;
2145
+ }[] | undefined;
2146
+ spoilerFree?: boolean | undefined;
2147
+ requiresObjective?: string | undefined;
2148
+ chestFlag?: number | undefined;
2149
+ gsFlag?: {
2150
+ index: number;
2151
+ mask: number;
2152
+ } | undefined;
2153
+ collectedBy?: import("./condition.js").Condition | undefined;
2154
+ hiddenWhen?: import("./condition.js").Condition | undefined;
2155
+ category?: string | undefined;
2156
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
2157
+ context?: string | undefined;
2158
+ }[];
2159
+ yRange?: [number, number] | undefined;
2160
+ }[];
2161
+ } | undefined;
2162
+ objectives?: {
2163
+ label: string;
2164
+ id: string;
2165
+ minDifficulty?: string | undefined;
2166
+ difficulties?: string[] | undefined;
2167
+ completedByItems?: string[] | undefined;
2168
+ completedByFlags?: string[] | undefined;
2169
+ }[] | undefined;
2170
+ act?: string | undefined;
2171
+ }>;
2172
+ }, {
2173
+ schemaVersion: 1;
2174
+ locations: Record<string, {
2175
+ name: string;
2176
+ map?: {
2177
+ viewBox: [number, number];
2178
+ layers: {
2179
+ id: string;
2180
+ name: string;
2181
+ priority: number;
2182
+ rooms: number[];
2183
+ svg: string;
2184
+ affine: [number, number, number, number, number, number];
2185
+ headingOffsetDeg: number;
2186
+ headingSign: 1 | -1;
2187
+ landmarks: {
2188
+ label: string;
2189
+ id: string;
2190
+ world: [number, number, number];
2191
+ kind?: "note" | "calibration" | "entry" | "objective" | "poi" | "npc" | "enemy" | "exit" | undefined;
2192
+ links?: {
2193
+ label: string;
2194
+ to: string;
2195
+ }[] | undefined;
2196
+ spoilerFree?: boolean | undefined;
2197
+ requiresObjective?: string | undefined;
2198
+ chestFlag?: number | undefined;
2199
+ gsFlag?: {
2200
+ index: number;
2201
+ mask: number;
2202
+ } | undefined;
2203
+ collectedBy?: import("./condition.js").Condition | undefined;
2204
+ hiddenWhen?: import("./condition.js").Condition | undefined;
2205
+ category?: string | undefined;
2206
+ tint?: "red" | "blue" | "yellow" | "green" | "purple" | "orange" | "grey" | undefined;
2207
+ context?: string | undefined;
2208
+ }[];
2209
+ yRange?: [number, number] | undefined;
2210
+ }[];
2211
+ hysteresisMs?: number | undefined;
2212
+ } | undefined;
2213
+ objectives?: {
2214
+ label: string;
2215
+ id: string;
2216
+ minDifficulty?: string | undefined;
2217
+ difficulties?: string[] | undefined;
2218
+ completedByItems?: string[] | undefined;
2219
+ completedByFlags?: string[] | undefined;
2220
+ }[] | undefined;
2221
+ act?: string | undefined;
2222
+ }>;
2223
+ }>;
2224
+ export type LocalManifest = z.infer<typeof LocalManifestSchema>;
2225
+ /**
2226
+ * Overlays local locations on the registry manifest. A local layer's `svg` is relative to the
2227
+ * local-assets game dir, so it is rewritten to an absolute URL under `localBaseUrl`.
2228
+ */
2229
+ export declare function mergeLocalManifest(manifest: GameManifest, local: LocalManifest, localBaseUrl: string): GameManifest;
2230
+ /** A layer's SVG URL: registry-relative, or already absolute (local overlays). */
2231
+ export declare function resolveLayerSvgUrl(registryBaseUrl: string, svg: string): string;