warframe-worldstate-data 3.9.0 → 3.9.1

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,345 @@
1
+ import { t as exports_default } from "./exports-RIRl0WJ7.mjs";
2
+ //#region tools/translation.ts
3
+ /**
4
+ * Rough Titlecase!
5
+ * @param {string} str string to be titlecased
6
+ * @returns {string} titlecased string
7
+ */
8
+ const toTitleCase = (str) => {
9
+ return str.replace(/\w\S*/g, (txt) => txt.charAt(0).toUpperCase() + txt.substring(1).toLowerCase());
10
+ };
11
+ /**
12
+ * Utility function to split the resource name and return somewhat human-readable string
13
+ * @param {string} str localization resource key
14
+ * @returns {string} human-readable string
15
+ */
16
+ const splitResourceName = (str) => str.split(/([A-Z]?[^A-Z]*)/g).filter(Boolean).join(" ");
17
+ const lastResourceName = (str) => str ? str.split?.("/").reverse()[0] : str;
18
+ const i18n = (locale = "en") => exports_default[locale] || exports_default;
19
+ const keyInData = (key, dataOverride) => key in i18n(dataOverride) ? i18n(dataOverride)[key] : key;
20
+ /**
21
+ *
22
+ * @param {string} color - The internal color name
23
+ * @param {string} dataOverride locale for use with translation
24
+ * @returns {Object | undefined}
25
+ */
26
+ const archonShard = (color, dataOverride = "en") => {
27
+ return keyInData("archonShards", dataOverride)[color];
28
+ };
29
+ /**
30
+ *
31
+ * @param {string} color - The internal color name
32
+ * @param {string} dataOverride locale for use with translation
33
+ * @returns {string}
34
+ */
35
+ const archonShardColor = (color, dataOverride = "en") => archonShard(color, dataOverride)?.value ?? color;
36
+ /**
37
+ *
38
+ * @param {string} color - The internal color name
39
+ * @param {string} upgradeType - The upgrade type
40
+ * @param {string} dataOverride locale for use with translation
41
+ * @returns {string}
42
+ */
43
+ const archonShardUpgradeType = (color, upgradeType, dataOverride = "en") => archonShard(color, dataOverride)?.upgradeTypes[upgradeType]?.value ?? lastResourceName(upgradeType);
44
+ /**
45
+ *
46
+ * @param {string} key - The data key
47
+ * @param {string} dataOverride locale for use with translation
48
+ * @returns {string} faction name
49
+ */
50
+ const faction = (key, dataOverride = "en") => keyInData("factions", dataOverride)[key]?.value ?? key;
51
+ const solNode = (key, thing, dataOverride = "en") => keyInData("solNodes", dataOverride)?.[key]?.[thing] ?? lastResourceName(key) ?? key;
52
+ /**
53
+ *
54
+ * @param {string} key - The data key
55
+ * @param {string} dataOverride locale for use with translation
56
+ * @returns {string} node name
57
+ */
58
+ const node = (key, dataOverride = "en") => solNode(key, "value", dataOverride);
59
+ /**
60
+ *
61
+ * @param {string} key - The data key
62
+ * @param {string} dataOverride locale for use with translation
63
+ * @returns {string} mission type of the node
64
+ */
65
+ const nodeMissionType = (key, dataOverride = "en") => solNode(key, "type", dataOverride);
66
+ /**
67
+ *
68
+ * @param {string} key - The data key
69
+ * @param {string} dataOverride locale for use with translation
70
+ * @returns {string} faction that controls the node
71
+ */
72
+ const nodeEnemy = (key, dataOverride = "en") => {
73
+ return key in i18n(dataOverride).solNodes ? i18n(dataOverride).solNodes[key].enemy : lastResourceName(key) ?? key;
74
+ };
75
+ /**
76
+ *
77
+ * @param {string} key - The data key
78
+ * @param {string} dataOverride locale for use with translation
79
+ * @returns {string} localization for language string
80
+ */
81
+ const languageString = (key, dataOverride = "en") => {
82
+ const lowerKey = String(key).toLowerCase();
83
+ return i18n(dataOverride).languages[lowerKey]?.value ?? i18n(dataOverride).languages[key]?.value ?? (key ? toTitleCase(splitResourceName(lastResourceName(String(key)) ?? "")) : key);
84
+ };
85
+ /**
86
+ *
87
+ * @param {string} key - The data key
88
+ * @param {string} dataOverride locale for use with translation
89
+ * @returns {string} localization for language description
90
+ */
91
+ const languageDesc = (key, dataOverride = "en") => {
92
+ const lowerKey = String(key).toLowerCase();
93
+ return i18n(dataOverride).languages[lowerKey]?.desc ?? i18n(dataOverride).languages[key]?.desc ?? (key ? `[PH] ${toTitleCase(splitResourceName(lastResourceName(String(key)) ?? ""))} Desc` : key);
94
+ };
95
+ /**
96
+ *
97
+ * @param {string} key - The data key
98
+ * @param {string} dataOverride locale for use with translation
99
+ * @returns {string} translation for mission type
100
+ */
101
+ const missionType = (key, dataOverride = "en") => {
102
+ const keyBased = key && typeof key === "string" && toTitleCase((key ?? "").replace(/^MT_/, ""));
103
+ return key in i18n(dataOverride).missionTypes ? i18n(dataOverride).missionTypes[key].value : keyBased;
104
+ };
105
+ const conclave = (key, thing, dataOverride = "en") => keyInData("conclave", dataOverride)?.[thing]?.[key];
106
+ /**
107
+ *
108
+ * @param {string} key - The data key
109
+ * @param {string} dataOverride locale for use with translation
110
+ * @returns {string} conclave mode
111
+ */
112
+ const conclaveMode = (key, dataOverride = "en") => conclave(key, "modes", dataOverride)?.value ?? key;
113
+ /**
114
+ *
115
+ * @param {string} key - The data key
116
+ * @param {string} dataOverride locale for use with translation
117
+ * @returns {{ value: string; description: string }} conclave category
118
+ */
119
+ const conclaveCategory = (key, dataOverride = "en") => conclave(key, "categories", dataOverride)?.value ?? key;
120
+ const fissure = (key, dataOverride = "en") => keyInData("fissureModifiers", dataOverride)?.[key] ?? key;
121
+ /**
122
+ *
123
+ * @param {string} key - The data key
124
+ * @param {string} dataOverride locale for use with translation
125
+ * @returns {string} fissure modifier data
126
+ */
127
+ const fissureModifier = (key, dataOverride = "en") => fissure(key, dataOverride)?.value ?? key;
128
+ /**
129
+ *
130
+ * @param {string} key - The data key
131
+ * @param {string} dataOverride locale for use with translation
132
+ * @returns {number | string} fissure tier
133
+ */
134
+ const fissureTier = (key, dataOverride = "en") => fissure(key, dataOverride).num ?? key;
135
+ /**
136
+ *
137
+ * @param {string} key - The data key
138
+ * @param {string} dataOverride locale for use with translation
139
+ * @returns {string} syndicate name
140
+ */
141
+ const syndicate = (key, dataOverride = "en") => i18n(dataOverride).syndicates[key]?.name ?? key;
142
+ /**
143
+ *
144
+ * @param {string} key - The data key
145
+ * @param {string} dataOverride locale for use with translation
146
+ * @returns {string} upgrade type
147
+ */
148
+ const upgrade = (key, dataOverride = "en") => i18n(dataOverride).upgradeTypes[key]?.value ?? key;
149
+ const oppo = (key, dataOverride = "en") => i18n(dataOverride).operationTypes[key];
150
+ /**
151
+ *
152
+ * @param {string} key - The data key
153
+ * @param {string} dataOverride locale for use with translation
154
+ * @returns {string} mathematical operation value
155
+ */
156
+ const operation = (key, dataOverride = "en") => oppo(key, dataOverride)?.value ?? key;
157
+ /**
158
+ *
159
+ * @param {string} key - The data key
160
+ * @param {string} dataOverride locale for use with translation
161
+ * @returns {string} symbol of mathematical operation
162
+ */
163
+ const operationSymbol = (key, dataOverride = "en") => oppo(key, dataOverride)?.symbol ?? key;
164
+ const sortie = (key, dataOverride = "en") => i18n(dataOverride).sortie.bosses[key];
165
+ /**
166
+ * @param {string} key - The data key
167
+ * @param {string} dataOverride locale for use with translation
168
+ * @returns {string} sortie boss name
169
+ */
170
+ const sortieBoss = (key, dataOverride = "en") => sortie(key, dataOverride)?.name ?? key;
171
+ /**
172
+ * @param {string} key - The data key
173
+ * @param {string} dataOverride locale for use with translation
174
+ * @returns {string} faction for a sortie based on the boss
175
+ */
176
+ const sortieFaction = (key, dataOverride = "en") => sortie(key, dataOverride)?.faction ?? key;
177
+ /**
178
+ *
179
+ * @param {string} key - The data key
180
+ * @param {string} dataOverride locale for use with translation
181
+ * @returns {string} sortie modifier data
182
+ */
183
+ const sortieModifier = (key, dataOverride = "en") => i18n(dataOverride).sortie.modifierTypes?.[key] ?? key;
184
+ /**
185
+ * @param {string} key - The data key
186
+ * @param {string} dataOverride locale for use with translation
187
+ * @returns {string} sortie modifier description
188
+ */
189
+ const sortieModDesc = (key, dataOverride = "en") => i18n(dataOverride).sortie.modifierDescriptions?.[key] ?? key;
190
+ /**
191
+ * Retrieve the localized region for a given key
192
+ * @param {string | number} key - The region key
193
+ * @param {string} dataOverride - The locale to use for translations
194
+ * @returns {string} localized region name
195
+ */
196
+ const region = (key, dataOverride = "en") => (key && i18n(dataOverride).persistentEnemy?.regions[key]) ?? key;
197
+ /**
198
+ * Retrieve conclave challenge name for the given key and locale
199
+ * @param {string} key key to retrieve
200
+ * @param {string} dataOverride locale key override
201
+ * @returns {{
202
+ * title: string,
203
+ * description: string,
204
+ * standing: number,
205
+ * }} - The conclave challenge name for the given key
206
+ */
207
+ const conclaveChallenge = (key, dataOverride = "en") => {
208
+ const splitKey = lastResourceName(String(key));
209
+ if (splitKey !== void 0 && i18n(dataOverride).conclave?.challenges?.[splitKey]) return i18n(dataOverride).conclave.challenges[splitKey];
210
+ return {
211
+ title: toTitleCase(splitResourceName(splitKey)),
212
+ description: toTitleCase(splitResourceName(splitKey)),
213
+ standing: 0
214
+ };
215
+ };
216
+ /**
217
+ * Get the steel path data for given key
218
+ * @param {string} dataOverride - The locale to use for translations
219
+ * @returns {string} - The steel path data for the given key
220
+ */
221
+ const steelPath = (dataOverride = "en") => (i18n(dataOverride) || exports_default).steelPath;
222
+ const valMapping = (key, map) => {
223
+ let val = "None";
224
+ Object.keys(map).forEach((k) => {
225
+ if (key.includes(k)) val = map[k];
226
+ });
227
+ return val;
228
+ };
229
+ const focusMap = {
230
+ "Focus/Attack": "Madurai",
231
+ "Focus/Defense": "Vazarin",
232
+ "Focus/Tactic": "Naramon",
233
+ "Focus/Power": "Zenurik",
234
+ "Focus/Ward": "Unairu"
235
+ };
236
+ /**
237
+ * Translate the given focus school
238
+ * @param {string} focus The focus school to translate
239
+ * @returns {string} The translated focus school
240
+ */
241
+ const translateFocus = (focus = "") => valMapping(focus, focusMap);
242
+ const polarityMap = {
243
+ AP_ATTACK: "Madurai",
244
+ AP_DEFENSE: "Vazarin",
245
+ AP_TACTIC: "Naramon",
246
+ AP_POWER: "Zenurik",
247
+ AP_WARD: "Unairu",
248
+ AP_UMBRA: "Umbra",
249
+ AP_ANY: "Aura"
250
+ };
251
+ /**
252
+ * Translate the given polarity
253
+ * @param {string?} pol The polarity to translate
254
+ * @returns {string} The translated polarity
255
+ */
256
+ const translatePolarity = (pol = "") => valMapping(pol, polarityMap);
257
+ const eventTypeMap = {
258
+ CET_CHALLENGE: "To Do",
259
+ CET_UPGRADE: "Override",
260
+ CET_REWARD: "Big Prize!",
261
+ CET_PLOT: "Birthday"
262
+ };
263
+ /**
264
+ * Translate the given event key
265
+ * @param {string} key Unique event type
266
+ * @returns {string}
267
+ */
268
+ const translateCalendarEvent = (key) => valMapping(key, eventTypeMap);
269
+ /**
270
+ * Translate the given season name to a non-unique string
271
+ * @param {string} season Unique season name
272
+ * @returns {string}
273
+ */
274
+ const translateSeason = (season) => toTitleCase(season.replace("CST_", ""));
275
+ const archimedeaTypes = {
276
+ CT_LAB: "Deep Archimedea",
277
+ CT_HEX: "Temporal Archimedea"
278
+ };
279
+ const translateArchimedeaType = (type) => valMapping(type, archimedeaTypes);
280
+ /**
281
+ * An object containing functions to convert in-game names to their localizations
282
+ * @typedef {Record<string, function>} Translator
283
+ * @property {function} faction - Converts faction names
284
+ * @property {function} node - Converts star map node names
285
+ * @property {function} nodeMissionType - Returns the mission type of given node
286
+ * @property {function} nodeEnemy - Returns the faction that controls a given node
287
+ * @property {function} languageString - Converts generic language strings
288
+ * @property {function} languageDesc - Converts generic language strings
289
+ * and retrieves the description
290
+ * @property {function} missionType - Converts mission types
291
+ * @property {function} conclaveMode - Converts conclave modes
292
+ * @property {function} conclaveCategory - Converts conclave challenge categories
293
+ * @property {function} fissureModifier - Converts fissure mission modifiers
294
+ * @property {function} syndicate - Converts syndicate names
295
+ * @property {function} upgrade - Converts upgrade types
296
+ * @property {function} operation - Converts operation types
297
+ * @property {function} sortieBoss - Converts sortie boss names
298
+ * @property {function} sortieModifier - Converts sortie modifier types
299
+ * @property {function} sortieModDesc - Converts sortie modifier type descriptions
300
+ * @property {function} region - Converts persistent enemy region indicies
301
+ * @property {function} conclaveChallenge - Convert conclave identifiers into standing data
302
+ * @property {function} steelPath - Retrieve Steel Path rotation data for locale
303
+ * @property {function} toTitleCase - Format provided string as titlecase
304
+ * @property {function} translateFocus - Translate focus schools
305
+ * @property {function} translatePolarity - Translate polarities
306
+ * @property {function} archonShard - Converts archon shard names
307
+ * @property {function} archonShardColor - Converts archon shard names to in-game color values
308
+ * @property {function} archonShardUpgradeType - Convert archon shard upgrade type
309
+ * @property {function} translateCalendarEvent - Translate the given event key
310
+ * @property {function} translateSeason - Translate the given season name to a non-unique string
311
+ */
312
+ var translation_default = {
313
+ faction,
314
+ node,
315
+ nodeMissionType,
316
+ nodeEnemy,
317
+ languageString,
318
+ languageDesc,
319
+ missionType,
320
+ conclaveMode,
321
+ conclaveCategory,
322
+ fissureModifier,
323
+ fissureTier,
324
+ syndicate,
325
+ upgrade,
326
+ operation,
327
+ operationSymbol,
328
+ sortieBoss,
329
+ sortieModifier,
330
+ sortieModDesc,
331
+ sortieFaction,
332
+ region,
333
+ conclaveChallenge,
334
+ steelPath,
335
+ toTitleCase,
336
+ translateFocus,
337
+ translatePolarity,
338
+ archonShard,
339
+ archonShardColor,
340
+ archonShardUpgradeType,
341
+ translateCalendarEvent,
342
+ translateSeason
343
+ };
344
+ //#endregion
345
+ export { translateFocus as A, sortieModifier as C, toTitleCase as D, syndicate as E, translateSeason as M, translation_default as N, translateArchimedeaType as O, upgrade as P, sortieModDesc as S, steelPath as T, operation as _, conclaveChallenge as a, sortieBoss as b, fissureModifier as c, languageString as d, lastResourceName as f, nodeMissionType as g, nodeEnemy as h, conclaveCategory as i, translatePolarity as j, translateCalendarEvent as k, fissureTier as l, node as m, archonShardColor as n, conclaveMode as o, missionType as p, archonShardUpgradeType as r, faction as s, archonShard as t, languageDesc as u, operationSymbol as v, splitResourceName as w, sortieFaction as x, region as y };
@@ -0,0 +1,292 @@
1
+ import { n as ArchonShard, s as SteelPath } from "./types-Bt_sadfS.mjs";
2
+ import { t as Locale } from "./exports-vM5Z3-oC.mjs";
3
+
4
+ //#region tools/translation.d.ts
5
+ /**
6
+ * Rough Titlecase!
7
+ * @param {string} str string to be titlecased
8
+ * @returns {string} titlecased string
9
+ */
10
+ declare const toTitleCase: (str: string) => string;
11
+ /**
12
+ * Utility function to split the resource name and return somewhat human-readable string
13
+ * @param {string} str localization resource key
14
+ * @returns {string} human-readable string
15
+ */
16
+ declare const splitResourceName: (str: string) => string;
17
+ declare const lastResourceName: (str: string | undefined) => string | undefined;
18
+ /**
19
+ *
20
+ * @param {string} color - The internal color name
21
+ * @param {string} dataOverride locale for use with translation
22
+ * @returns {Object | undefined}
23
+ */
24
+ declare const archonShard: (color: string, dataOverride?: Locale) => ArchonShard;
25
+ /**
26
+ *
27
+ * @param {string} color - The internal color name
28
+ * @param {string} dataOverride locale for use with translation
29
+ * @returns {string}
30
+ */
31
+ declare const archonShardColor: (color: string, dataOverride?: Locale) => string;
32
+ /**
33
+ *
34
+ * @param {string} color - The internal color name
35
+ * @param {string} upgradeType - The upgrade type
36
+ * @param {string} dataOverride locale for use with translation
37
+ * @returns {string}
38
+ */
39
+ declare const archonShardUpgradeType: (color: string, upgradeType: string, dataOverride?: Locale) => string;
40
+ /**
41
+ *
42
+ * @param {string} key - The data key
43
+ * @param {string} dataOverride locale for use with translation
44
+ * @returns {string} faction name
45
+ */
46
+ declare const faction: (key: string, dataOverride?: Locale) => string;
47
+ /**
48
+ *
49
+ * @param {string} key - The data key
50
+ * @param {string} dataOverride locale for use with translation
51
+ * @returns {string} node name
52
+ */
53
+ declare const node: (key: string, dataOverride?: Locale) => string;
54
+ /**
55
+ *
56
+ * @param {string} key - The data key
57
+ * @param {string} dataOverride locale for use with translation
58
+ * @returns {string} mission type of the node
59
+ */
60
+ declare const nodeMissionType: (key: string, dataOverride?: Locale) => string;
61
+ /**
62
+ *
63
+ * @param {string} key - The data key
64
+ * @param {string} dataOverride locale for use with translation
65
+ * @returns {string} faction that controls the node
66
+ */
67
+ declare const nodeEnemy: (key: string, dataOverride?: Locale) => string;
68
+ /**
69
+ *
70
+ * @param {string} key - The data key
71
+ * @param {string} dataOverride locale for use with translation
72
+ * @returns {string} localization for language string
73
+ */
74
+ declare const languageString: (key: string, dataOverride?: Locale) => string;
75
+ /**
76
+ *
77
+ * @param {string} key - The data key
78
+ * @param {string} dataOverride locale for use with translation
79
+ * @returns {string} localization for language description
80
+ */
81
+ declare const languageDesc: (key: string, dataOverride?: Locale) => string;
82
+ /**
83
+ *
84
+ * @param {string} key - The data key
85
+ * @param {string} dataOverride locale for use with translation
86
+ * @returns {string} translation for mission type
87
+ */
88
+ declare const missionType: (key: string, dataOverride?: Locale) => string;
89
+ /**
90
+ *
91
+ * @param {string} key - The data key
92
+ * @param {string} dataOverride locale for use with translation
93
+ * @returns {string} conclave mode
94
+ */
95
+ declare const conclaveMode: (key: string, dataOverride?: Locale) => string;
96
+ /**
97
+ *
98
+ * @param {string} key - The data key
99
+ * @param {string} dataOverride locale for use with translation
100
+ * @returns {{ value: string; description: string }} conclave category
101
+ */
102
+ declare const conclaveCategory: (key: string, dataOverride?: Locale) => string;
103
+ /**
104
+ *
105
+ * @param {string} key - The data key
106
+ * @param {string} dataOverride locale for use with translation
107
+ * @returns {string} fissure modifier data
108
+ */
109
+ declare const fissureModifier: (key: string, dataOverride?: Locale) => string;
110
+ /**
111
+ *
112
+ * @param {string} key - The data key
113
+ * @param {string} dataOverride locale for use with translation
114
+ * @returns {number | string} fissure tier
115
+ */
116
+ declare const fissureTier: (key: string, dataOverride?: Locale) => number | string;
117
+ /**
118
+ *
119
+ * @param {string} key - The data key
120
+ * @param {string} dataOverride locale for use with translation
121
+ * @returns {string} syndicate name
122
+ */
123
+ declare const syndicate: (key: string, dataOverride?: Locale) => string;
124
+ /**
125
+ *
126
+ * @param {string} key - The data key
127
+ * @param {string} dataOverride locale for use with translation
128
+ * @returns {string} upgrade type
129
+ */
130
+ declare const upgrade: (key: string, dataOverride?: Locale) => string;
131
+ /**
132
+ *
133
+ * @param {string} key - The data key
134
+ * @param {string} dataOverride locale for use with translation
135
+ * @returns {string} mathematical operation value
136
+ */
137
+ declare const operation: (key: string, dataOverride?: Locale) => string;
138
+ /**
139
+ *
140
+ * @param {string} key - The data key
141
+ * @param {string} dataOverride locale for use with translation
142
+ * @returns {string} symbol of mathematical operation
143
+ */
144
+ declare const operationSymbol: (key: string, dataOverride?: Locale) => string;
145
+ /**
146
+ * @param {string} key - The data key
147
+ * @param {string} dataOverride locale for use with translation
148
+ * @returns {string} sortie boss name
149
+ */
150
+ declare const sortieBoss: (key: string, dataOverride?: Locale) => string;
151
+ /**
152
+ * @param {string} key - The data key
153
+ * @param {string} dataOverride locale for use with translation
154
+ * @returns {string} faction for a sortie based on the boss
155
+ */
156
+ declare const sortieFaction: (key: string, dataOverride?: Locale) => string;
157
+ /**
158
+ *
159
+ * @param {string} key - The data key
160
+ * @param {string} dataOverride locale for use with translation
161
+ * @returns {string} sortie modifier data
162
+ */
163
+ declare const sortieModifier: (key: string, dataOverride?: Locale) => string;
164
+ /**
165
+ * @param {string} key - The data key
166
+ * @param {string} dataOverride locale for use with translation
167
+ * @returns {string} sortie modifier description
168
+ */
169
+ declare const sortieModDesc: (key: string, dataOverride?: Locale) => string;
170
+ /**
171
+ * Retrieve the localized region for a given key
172
+ * @param {string | number} key - The region key
173
+ * @param {string} dataOverride - The locale to use for translations
174
+ * @returns {string} localized region name
175
+ */
176
+ declare const region: (key: number, dataOverride?: Locale) => string | number;
177
+ /**
178
+ * Retrieve conclave challenge name for the given key and locale
179
+ * @param {string} key key to retrieve
180
+ * @param {string} dataOverride locale key override
181
+ * @returns {{
182
+ * title: string,
183
+ * description: string,
184
+ * standing: number,
185
+ * }} - The conclave challenge name for the given key
186
+ */
187
+ declare const conclaveChallenge: (key: string, dataOverride?: Locale) => {
188
+ title: string;
189
+ description: string;
190
+ standing: number;
191
+ };
192
+ /**
193
+ * Get the steel path data for given key
194
+ * @param {string} dataOverride - The locale to use for translations
195
+ * @returns {string} - The steel path data for the given key
196
+ */
197
+ declare const steelPath: (dataOverride?: Locale) => SteelPath;
198
+ /**
199
+ * Translate the given focus school
200
+ * @param {string} focus The focus school to translate
201
+ * @returns {string} The translated focus school
202
+ */
203
+ declare const translateFocus: (focus?: string) => string;
204
+ /**
205
+ * Translate the given polarity
206
+ * @param {string?} pol The polarity to translate
207
+ * @returns {string} The translated polarity
208
+ */
209
+ declare const translatePolarity: (pol?: string) => string;
210
+ /**
211
+ * Translate the given event key
212
+ * @param {string} key Unique event type
213
+ * @returns {string}
214
+ */
215
+ declare const translateCalendarEvent: (key: string) => string;
216
+ /**
217
+ * Translate the given season name to a non-unique string
218
+ * @param {string} season Unique season name
219
+ * @returns {string}
220
+ */
221
+ declare const translateSeason: (season: string) => string;
222
+ declare const translateArchimedeaType: (type: string) => string;
223
+ /**
224
+ * An object containing functions to convert in-game names to their localizations
225
+ * @typedef {Record<string, function>} Translator
226
+ * @property {function} faction - Converts faction names
227
+ * @property {function} node - Converts star map node names
228
+ * @property {function} nodeMissionType - Returns the mission type of given node
229
+ * @property {function} nodeEnemy - Returns the faction that controls a given node
230
+ * @property {function} languageString - Converts generic language strings
231
+ * @property {function} languageDesc - Converts generic language strings
232
+ * and retrieves the description
233
+ * @property {function} missionType - Converts mission types
234
+ * @property {function} conclaveMode - Converts conclave modes
235
+ * @property {function} conclaveCategory - Converts conclave challenge categories
236
+ * @property {function} fissureModifier - Converts fissure mission modifiers
237
+ * @property {function} syndicate - Converts syndicate names
238
+ * @property {function} upgrade - Converts upgrade types
239
+ * @property {function} operation - Converts operation types
240
+ * @property {function} sortieBoss - Converts sortie boss names
241
+ * @property {function} sortieModifier - Converts sortie modifier types
242
+ * @property {function} sortieModDesc - Converts sortie modifier type descriptions
243
+ * @property {function} region - Converts persistent enemy region indicies
244
+ * @property {function} conclaveChallenge - Convert conclave identifiers into standing data
245
+ * @property {function} steelPath - Retrieve Steel Path rotation data for locale
246
+ * @property {function} toTitleCase - Format provided string as titlecase
247
+ * @property {function} translateFocus - Translate focus schools
248
+ * @property {function} translatePolarity - Translate polarities
249
+ * @property {function} archonShard - Converts archon shard names
250
+ * @property {function} archonShardColor - Converts archon shard names to in-game color values
251
+ * @property {function} archonShardUpgradeType - Convert archon shard upgrade type
252
+ * @property {function} translateCalendarEvent - Translate the given event key
253
+ * @property {function} translateSeason - Translate the given season name to a non-unique string
254
+ */
255
+ declare const _default: {
256
+ faction: (key: string, dataOverride?: Locale) => string;
257
+ node: (key: string, dataOverride?: Locale) => string;
258
+ nodeMissionType: (key: string, dataOverride?: Locale) => string;
259
+ nodeEnemy: (key: string, dataOverride?: Locale) => string;
260
+ languageString: (key: string, dataOverride?: Locale) => string;
261
+ languageDesc: (key: string, dataOverride?: Locale) => string;
262
+ missionType: (key: string, dataOverride?: Locale) => string;
263
+ conclaveMode: (key: string, dataOverride?: Locale) => string;
264
+ conclaveCategory: (key: string, dataOverride?: Locale) => string;
265
+ fissureModifier: (key: string, dataOverride?: Locale) => string;
266
+ fissureTier: (key: string, dataOverride?: Locale) => number | string;
267
+ syndicate: (key: string, dataOverride?: Locale) => string;
268
+ upgrade: (key: string, dataOverride?: Locale) => string;
269
+ operation: (key: string, dataOverride?: Locale) => string;
270
+ operationSymbol: (key: string, dataOverride?: Locale) => string;
271
+ sortieBoss: (key: string, dataOverride?: Locale) => string;
272
+ sortieModifier: (key: string, dataOverride?: Locale) => string;
273
+ sortieModDesc: (key: string, dataOverride?: Locale) => string;
274
+ sortieFaction: (key: string, dataOverride?: Locale) => string;
275
+ region: (key: number, dataOverride?: Locale) => string | number;
276
+ conclaveChallenge: (key: string, dataOverride?: Locale) => {
277
+ title: string;
278
+ description: string;
279
+ standing: number;
280
+ };
281
+ steelPath: (dataOverride?: Locale) => SteelPath;
282
+ toTitleCase: (str: string) => string;
283
+ translateFocus: (focus?: string) => string;
284
+ translatePolarity: (pol?: string) => string;
285
+ archonShard: (color: string, dataOverride?: Locale) => ArchonShard;
286
+ archonShardColor: (color: string, dataOverride?: Locale) => string;
287
+ archonShardUpgradeType: (color: string, upgradeType: string, dataOverride?: Locale) => string;
288
+ translateCalendarEvent: (key: string) => string;
289
+ translateSeason: (season: string) => string;
290
+ };
291
+ //#endregion
292
+ export { translateCalendarEvent as A, sortieModDesc as C, syndicate as D, steelPath as E, translatePolarity as M, translateSeason as N, toTitleCase as O, upgrade as P, sortieFaction as S, splitResourceName as T, nodeMissionType as _, conclaveCategory as a, region as b, faction as c, languageDesc as d, languageString as f, nodeEnemy as g, node as h, archonShardUpgradeType as i, translateFocus as j, translateArchimedeaType as k, fissureModifier as l, missionType as m, archonShard as n, conclaveChallenge as o, lastResourceName as p, archonShardColor as r, conclaveMode as s, _default as t, fissureTier as u, operation as v, sortieModifier as w, sortieBoss as x, operationSymbol as y };