@elara-services/packages 5.3.1 → 6.0.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.
Files changed (69) hide show
  1. package/dist/package.json +44 -0
  2. package/dist/src/index.d.ts +1 -0
  3. package/dist/src/index.js +17 -0
  4. package/dist/src/interfaces/discord.d.ts +91 -0
  5. package/dist/src/interfaces/discord.js +2 -0
  6. package/dist/src/interfaces/index.d.ts +1 -0
  7. package/dist/src/interfaces/index.js +17 -0
  8. package/dist/src/lib/AES.d.ts +7 -0
  9. package/dist/src/lib/AES.js +82 -0
  10. package/dist/src/lib/discord.d.ts +136 -0
  11. package/dist/src/lib/discord.js +381 -0
  12. package/dist/src/lib/index.d.ts +8 -0
  13. package/dist/src/lib/index.js +24 -0
  14. package/dist/src/lib/languages.d.ts +220 -0
  15. package/dist/src/lib/languages.js +125 -0
  16. package/dist/src/lib/minesweeper.d.ts +20 -0
  17. package/dist/src/lib/minesweeper.js +81 -0
  18. package/dist/src/lib/misc.d.ts +1 -0
  19. package/dist/src/lib/misc.js +73 -0
  20. package/dist/src/lib/random.d.ts +16 -0
  21. package/dist/src/lib/random.js +2035 -0
  22. package/dist/src/lib/tasks.d.ts +9 -0
  23. package/dist/src/lib/tasks.js +72 -0
  24. package/docs/.nojekyll +1 -0
  25. package/docs/assets/highlight.css +22 -0
  26. package/docs/assets/main.js +58 -0
  27. package/docs/assets/search.js +1 -0
  28. package/docs/assets/style.css +1367 -0
  29. package/docs/classes/AES.html +144 -0
  30. package/docs/classes/Minesweeper.html +205 -0
  31. package/docs/classes/Tasks.html +141 -0
  32. package/docs/functions/fetch.html +89 -0
  33. package/docs/functions/randomWeight.html +79 -0
  34. package/docs/functions/randomWords.html +74 -0
  35. package/docs/index.html +163 -0
  36. package/docs/interfaces/ButtonOptions.html +154 -0
  37. package/docs/interfaces/ModalOptions.html +124 -0
  38. package/docs/interfaces/RandomWord.html +153 -0
  39. package/docs/interfaces/SelectOptions.html +159 -0
  40. package/docs/interfaces/Slash.html +138 -0
  41. package/docs/interfaces/SlashOptions.html +187 -0
  42. package/docs/interfaces/TaskCreate.html +103 -0
  43. package/docs/interfaces/TextInputOptions.html +180 -0
  44. package/docs/modules.html +101 -0
  45. package/docs/types/ButtonNumberStyles.html +65 -0
  46. package/docs/types/ButtonStyles.html +65 -0
  47. package/docs/types/ChannelTypes.html +65 -0
  48. package/docs/types/Lang.html +65 -0
  49. package/docs/types/LangName.html +65 -0
  50. package/docs/variables/ButtonStyle.html +88 -0
  51. package/docs/variables/Duration.html +109 -0
  52. package/docs/variables/Interactions.html +159 -0
  53. package/docs/variables/Languages.html +294 -0
  54. package/docs/variables/SlashBuilder.html +238 -0
  55. package/package.json +44 -10
  56. package/.github/renovate.json +0 -5
  57. package/CHANGELOG +0 -62
  58. package/index.d.ts +0 -247
  59. package/index.js +0 -11
  60. package/packages/Interactions.js +0 -76
  61. package/packages/SlashBuilder.js +0 -58
  62. package/packages/Tasks.js +0 -22
  63. package/packages/aes256.js +0 -62
  64. package/packages/duration.js +0 -74
  65. package/packages/fetch.js +0 -30
  66. package/packages/languages.js +0 -119
  67. package/packages/minesweeper.js +0 -77
  68. package/packages/random/weight.js +0 -8
  69. package/packages/random/words.js +0 -300
@@ -0,0 +1,381 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SlashBuilder = exports.Duration = exports.Interactions = exports.ButtonStyle = void 0;
4
+ const utils_1 = require("@elara-services/utils");
5
+ const v10_1 = require("discord-api-types/v10");
6
+ exports.ButtonStyle = {
7
+ PRIMARY: 1,
8
+ BLURPLE: 1,
9
+ SECONDARY: 2,
10
+ GREY: 2,
11
+ SUCCESS: 3,
12
+ GREEN: 3,
13
+ DANGER: 4,
14
+ RED: 4,
15
+ LINK: 5,
16
+ URL: 5,
17
+ };
18
+ exports.Interactions = {
19
+ button: (options = {}) => {
20
+ var _a, _b, _c, _d, _e, _f, _g;
21
+ if (typeof options.style === "string") {
22
+ const style = exports.ButtonStyle[options.style];
23
+ if (style) {
24
+ options.style = style;
25
+ }
26
+ else {
27
+ options.style = 2;
28
+ }
29
+ }
30
+ if (typeof options.url === "string" &&
31
+ options.url.match(/(https?|discord):\/\//gi)) {
32
+ options.style = 5;
33
+ options.id = "";
34
+ }
35
+ return {
36
+ custom_id: (_b = (_a = options === null || options === void 0 ? void 0 : options.id) !== null && _a !== void 0 ? _a : options === null || options === void 0 ? void 0 : options.custom_id) !== null && _b !== void 0 ? _b : "",
37
+ label: (_d = (_c = options === null || options === void 0 ? void 0 : options.title) !== null && _c !== void 0 ? _c : options === null || options === void 0 ? void 0 : options.label) !== null && _d !== void 0 ? _d : "",
38
+ type: (_e = options === null || options === void 0 ? void 0 : options.type) !== null && _e !== void 0 ? _e : 2,
39
+ style: (options === null || options === void 0 ? void 0 : options.style) ? options.style : 2,
40
+ disabled: typeof options.disabled === "boolean"
41
+ ? options.disabled
42
+ : false,
43
+ emoji: (_f = options === null || options === void 0 ? void 0 : options.emoji) !== null && _f !== void 0 ? _f : undefined,
44
+ url: (_g = options === null || options === void 0 ? void 0 : options.url) !== null && _g !== void 0 ? _g : undefined,
45
+ };
46
+ },
47
+ select: (options = {}) => {
48
+ if (options.type === v10_1.ComponentType.StringSelect &&
49
+ !Array.isArray(options.options)) {
50
+ throw new Error(`[Interactions#select]: The 'options' isn't an array.`);
51
+ }
52
+ const data = {
53
+ custom_id: "",
54
+ placeholder: "",
55
+ min_values: 0,
56
+ max_values: 0,
57
+ options: [],
58
+ type: 3,
59
+ disabled: false,
60
+ };
61
+ if (utils_1.is.string(options.id)) {
62
+ data.custom_id = options.id;
63
+ }
64
+ else if (utils_1.is.string(options.custom_id)) {
65
+ data.custom_id = options.custom_id;
66
+ }
67
+ if (utils_1.is.string(options.placeholder)) {
68
+ data.placeholder = options.placeholder;
69
+ }
70
+ else if (utils_1.is.string(options.holder)) {
71
+ data.placeholder = options.holder;
72
+ }
73
+ if (utils_1.is.number(options.max_values)) {
74
+ data.max_values = options.max_values;
75
+ }
76
+ else if (utils_1.is.number(options.max)) {
77
+ data.max_values = options.max;
78
+ }
79
+ if (utils_1.is.number(options.min_values)) {
80
+ data.min_values = options.min_values;
81
+ }
82
+ else if (utils_1.is.number(options.min)) {
83
+ data.min_values = options.min;
84
+ }
85
+ if (utils_1.is.boolean(options.disabled)) {
86
+ data.disabled = options.disabled;
87
+ }
88
+ if (utils_1.is.number(options.type)) {
89
+ data.type = options.type;
90
+ }
91
+ if (utils_1.is.array(options.options)) {
92
+ data.options === options.options;
93
+ }
94
+ return data;
95
+ },
96
+ modal: (options = { components: [] }) => {
97
+ if (!utils_1.is.array(options.components)) {
98
+ throw new Error(`[Interactions#modal]: 'components' isn't an array, or is empty.`);
99
+ }
100
+ const data = {
101
+ custom_id: "",
102
+ title: "",
103
+ components: options.components,
104
+ };
105
+ if (utils_1.is.string(options.id)) {
106
+ data.custom_id = options.id;
107
+ }
108
+ else if (utils_1.is.string(options.custom_id)) {
109
+ data.custom_id = options.custom_id;
110
+ }
111
+ if (utils_1.is.string(options.title)) {
112
+ data.title = options.title;
113
+ }
114
+ else if (utils_1.is.string(options.label)) {
115
+ data.title = options.label;
116
+ }
117
+ return data;
118
+ },
119
+ textInput: (options = {}, row = false) => {
120
+ const data = {
121
+ type: 4,
122
+ custom_id: "",
123
+ style: 1,
124
+ label: "",
125
+ min_length: 0,
126
+ max_length: 0,
127
+ placeholder: "",
128
+ value: "",
129
+ required: false,
130
+ };
131
+ if (utils_1.is.number(options.type)) {
132
+ data.type = options.type;
133
+ }
134
+ if (utils_1.is.string(options.id)) {
135
+ data.custom_id = options.id;
136
+ }
137
+ else if (utils_1.is.string(options.custom_id)) {
138
+ data.custom_id = options.custom_id;
139
+ }
140
+ if (utils_1.is.string(options.label)) {
141
+ data.label = options.label;
142
+ }
143
+ else if (utils_1.is.string(options.title)) {
144
+ data.label = options.title;
145
+ }
146
+ if (utils_1.is.string(options.placeholder)) {
147
+ data.placeholder = options.placeholder;
148
+ }
149
+ else if (utils_1.is.string(options.holder)) {
150
+ data.placeholder = options.holder;
151
+ }
152
+ if (utils_1.is.boolean(options.required)) {
153
+ data.required = options.required;
154
+ }
155
+ if (utils_1.is.string(options.value)) {
156
+ data.value = options.value;
157
+ }
158
+ if (utils_1.is.number(options.style)) {
159
+ data.style = options.style;
160
+ }
161
+ if (utils_1.is.number(options.min)) {
162
+ data.min_length = options.min;
163
+ }
164
+ else if (utils_1.is.number(options.min_length)) {
165
+ data.min_length = options.min_length;
166
+ }
167
+ if (utils_1.is.number(options.max)) {
168
+ data.max_length = options.max;
169
+ }
170
+ else if (utils_1.is.number(options.max_length)) {
171
+ data.max_length = options.max_length;
172
+ }
173
+ if (row) {
174
+ return { type: 1, components: [data] };
175
+ }
176
+ return data;
177
+ },
178
+ };
179
+ exports.Duration = {
180
+ parse: (value) => {
181
+ const MATCHES_ALL = value.match(/\d+\s*[A-Za-z]+/g);
182
+ if (MATCHES_ALL) {
183
+ let totalTime = 0;
184
+ for (const dur of MATCHES_ALL) {
185
+ const n = dur.match(/\d+/g) || ["0"];
186
+ const [num, [str]] = [
187
+ parseInt(n[0]),
188
+ dur.match(/[A-Za-z]+/g) || [""],
189
+ ];
190
+ if (isNaN(num)) {
191
+ totalTime = 0;
192
+ }
193
+ else {
194
+ totalTime += num * exports.Duration.determineTimeType(str);
195
+ }
196
+ }
197
+ if (totalTime) {
198
+ return totalTime;
199
+ }
200
+ }
201
+ return null;
202
+ },
203
+ determineTimeType: (str) => {
204
+ switch (str) {
205
+ case "ms":
206
+ case "millisecond":
207
+ case "milliseconds":
208
+ return 1;
209
+ case "s":
210
+ case "second":
211
+ case "seconds":
212
+ return 1000;
213
+ case "m":
214
+ case "min":
215
+ case "mins":
216
+ case "minute":
217
+ case "minutes":
218
+ return 60 * 1000;
219
+ case "h":
220
+ case "hr":
221
+ case "hour":
222
+ case "hours":
223
+ return 60 * 60 * 1000;
224
+ case "d":
225
+ case "day":
226
+ case "days":
227
+ return 24 * 60 * 60 * 1000;
228
+ case "w":
229
+ case "week":
230
+ case "weeks":
231
+ return 7 * 24 * 60 * 60 * 1000;
232
+ case "mo":
233
+ case "month":
234
+ case "months":
235
+ return 30 * 24 * 60 * 60 * 1000;
236
+ case "y":
237
+ case "year":
238
+ case "years":
239
+ return 365 * 24 * 60 * 60 * 1000;
240
+ default:
241
+ return 1;
242
+ }
243
+ },
244
+ validate: (value) => {
245
+ const MATCHES_ALL = value.match(/\d+\s*[A-Za-z]+/g);
246
+ if (MATCHES_ALL) {
247
+ for (const match of MATCHES_ALL) {
248
+ const [num, str] = [
249
+ match.match(/\d+/g),
250
+ match.match(/[A-Za-z]+/g),
251
+ ];
252
+ if (!num || num.length !== 1) {
253
+ return false;
254
+ }
255
+ if (!str || str.length !== 1) {
256
+ return false;
257
+ }
258
+ if (!Number.isInteger(parseInt(num[0]))) {
259
+ return false;
260
+ }
261
+ if (!exports.Duration.timeIds.has(str[0])) {
262
+ return false;
263
+ }
264
+ }
265
+ return true;
266
+ }
267
+ return false;
268
+ },
269
+ timeIds: new Set([
270
+ "ms",
271
+ "millisecond",
272
+ "milliseconds",
273
+ "s",
274
+ "second",
275
+ "seconds",
276
+ "m",
277
+ "min",
278
+ "mins",
279
+ "minute",
280
+ "minutes",
281
+ "h",
282
+ "hr",
283
+ "hrs",
284
+ "hour",
285
+ "hours",
286
+ "d",
287
+ "day",
288
+ "days",
289
+ "w",
290
+ "week",
291
+ "weeks",
292
+ "mo",
293
+ "month",
294
+ "months",
295
+ "y",
296
+ "year",
297
+ "years",
298
+ ]),
299
+ };
300
+ exports.SlashBuilder = {
301
+ TEXT_BASED_CHANNELS: [0, 5, 11, 12],
302
+ types: {
303
+ sub_command: 1,
304
+ sub_group: 2,
305
+ string: 3,
306
+ integer: 4,
307
+ boolean: 5,
308
+ user: 6,
309
+ channel: 7,
310
+ role: 8,
311
+ mentionable: 9,
312
+ number: 10,
313
+ context: {
314
+ user: 2,
315
+ message: 3,
316
+ },
317
+ },
318
+ context: {
319
+ user: (name, options) => exports.SlashBuilder.create(name, "", Object.assign({ type: exports.SlashBuilder.types.context.user }, options)),
320
+ message: (name, options) => exports.SlashBuilder.create(name, "", Object.assign({ type: exports.SlashBuilder.types.context.message }, options)),
321
+ },
322
+ choice: (name, value, name_localizations) => {
323
+ return { name, value, name_localizations };
324
+ },
325
+ option: (data) => {
326
+ var _a, _b;
327
+ // @ts-ignore
328
+ const _data = Object.assign({}, data);
329
+ if ((_a = data.locale) === null || _a === void 0 ? void 0 : _a.names) {
330
+ _data.name_localizations = data.locale.names;
331
+ }
332
+ if ((_b = data.locale) === null || _b === void 0 ? void 0 : _b.descriptions) {
333
+ _data.description_localizations = data.locale.descriptions;
334
+ }
335
+ if ("locale" in _data) {
336
+ delete _data["locale"];
337
+ }
338
+ return _data;
339
+ },
340
+ create: (name, description, options = {}) => {
341
+ var _a, _b;
342
+ const obj = {
343
+ name,
344
+ description,
345
+ name_localizations: undefined,
346
+ description_localizations: undefined,
347
+ options: [],
348
+ type: 0,
349
+ dm_permission: false,
350
+ default_member_permissions: "",
351
+ };
352
+ if ((_a = options === null || options === void 0 ? void 0 : options.locale) === null || _a === void 0 ? void 0 : _a.names) {
353
+ obj.name_localizations = options.locale.names;
354
+ }
355
+ if ((_b = options === null || options === void 0 ? void 0 : options.locale) === null || _b === void 0 ? void 0 : _b.descriptions) {
356
+ obj.description_localizations = options.locale.descriptions;
357
+ }
358
+ if (utils_1.is.array(options.options)) {
359
+ obj["options"] = options.options;
360
+ }
361
+ if (utils_1.is.number(options.type)) {
362
+ obj.type = options.type;
363
+ }
364
+ if ("dmPermission" in options && utils_1.is.boolean(options.dmPermission)) {
365
+ obj["dm_permission"] = options.dmPermission;
366
+ }
367
+ else if ("dm_permission" in options &&
368
+ utils_1.is.boolean(options.dm_permission)) {
369
+ obj["dm_permission"] = options.dm_permission;
370
+ }
371
+ if ("default_member_permissions" in options &&
372
+ utils_1.is.string(options.default_member_permissions)) {
373
+ obj.default_member_permissions = options.default_member_permissions;
374
+ }
375
+ else if ("defaultMemberPermissions" in options &&
376
+ utils_1.is.string(options.defaultMemberPermissions)) {
377
+ obj.default_member_permissions = options.defaultMemberPermissions;
378
+ }
379
+ return obj;
380
+ },
381
+ };
@@ -0,0 +1,8 @@
1
+ export * from "../interfaces";
2
+ export * from "./AES";
3
+ export * from "./discord";
4
+ export * from "./languages";
5
+ export * from "./minesweeper";
6
+ export * from "./misc";
7
+ export * from "./random";
8
+ export * from "./tasks";
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("../interfaces"), exports);
18
+ __exportStar(require("./AES"), exports);
19
+ __exportStar(require("./discord"), exports);
20
+ __exportStar(require("./languages"), exports);
21
+ __exportStar(require("./minesweeper"), exports);
22
+ __exportStar(require("./misc"), exports);
23
+ __exportStar(require("./random"), exports);
24
+ __exportStar(require("./tasks"), exports);
@@ -0,0 +1,220 @@
1
+ declare const langs: {
2
+ en: string;
3
+ fr: string;
4
+ es: string;
5
+ pt: string;
6
+ tr: string;
7
+ ru: string;
8
+ ar: string;
9
+ af: string;
10
+ sq: string;
11
+ am: string;
12
+ hy: string;
13
+ az: string;
14
+ eu: string;
15
+ be: string;
16
+ bn: string;
17
+ bs: string;
18
+ bg: string;
19
+ ca: string;
20
+ ceb: string;
21
+ ny: string;
22
+ zh: string;
23
+ "zh-tw": string;
24
+ co: string;
25
+ hr: string;
26
+ cs: string;
27
+ da: string;
28
+ nl: string;
29
+ eo: string;
30
+ et: string;
31
+ tl: string;
32
+ fi: string;
33
+ fy: string;
34
+ gl: string;
35
+ ka: string;
36
+ de: string;
37
+ el: string;
38
+ gu: string;
39
+ ht: string;
40
+ ha: string;
41
+ haw: string;
42
+ he: string;
43
+ iw: string;
44
+ hi: string;
45
+ hmn: string;
46
+ hu: string;
47
+ is: string;
48
+ ig: string;
49
+ id: string;
50
+ ga: string;
51
+ it: string;
52
+ ja: string;
53
+ jw: string;
54
+ kn: string;
55
+ kk: string;
56
+ km: string;
57
+ ko: string;
58
+ ku: string;
59
+ ky: string;
60
+ lo: string;
61
+ la: string;
62
+ lv: string;
63
+ lt: string;
64
+ lb: string;
65
+ mk: string;
66
+ mg: string;
67
+ ms: string;
68
+ ml: string;
69
+ mt: string;
70
+ mi: string;
71
+ mr: string;
72
+ mn: string;
73
+ my: string;
74
+ ne: string;
75
+ no: string;
76
+ ps: string;
77
+ fa: string;
78
+ pl: string;
79
+ pa: string;
80
+ ro: string;
81
+ sm: string;
82
+ gd: string;
83
+ sr: string;
84
+ st: string;
85
+ sn: string;
86
+ sd: string;
87
+ si: string;
88
+ sk: string;
89
+ sl: string;
90
+ so: string;
91
+ su: string;
92
+ sw: string;
93
+ sv: string;
94
+ tg: string;
95
+ ta: string;
96
+ te: string;
97
+ th: string;
98
+ uk: string;
99
+ ur: string;
100
+ uz: string;
101
+ vi: string;
102
+ cy: string;
103
+ xh: string;
104
+ yi: string;
105
+ yo: string;
106
+ zu: string;
107
+ };
108
+ export declare const Languages: {
109
+ langs: {
110
+ en: string;
111
+ fr: string;
112
+ es: string;
113
+ pt: string;
114
+ tr: string;
115
+ ru: string;
116
+ ar: string;
117
+ af: string;
118
+ sq: string;
119
+ am: string;
120
+ hy: string;
121
+ az: string;
122
+ eu: string;
123
+ be: string;
124
+ bn: string;
125
+ bs: string;
126
+ bg: string;
127
+ ca: string;
128
+ ceb: string;
129
+ ny: string;
130
+ zh: string;
131
+ "zh-tw": string;
132
+ co: string;
133
+ hr: string;
134
+ cs: string;
135
+ da: string;
136
+ nl: string;
137
+ eo: string;
138
+ et: string;
139
+ tl: string;
140
+ fi: string;
141
+ fy: string;
142
+ gl: string;
143
+ ka: string;
144
+ de: string;
145
+ el: string;
146
+ gu: string;
147
+ ht: string;
148
+ ha: string;
149
+ haw: string;
150
+ he: string;
151
+ iw: string;
152
+ hi: string;
153
+ hmn: string;
154
+ hu: string;
155
+ is: string;
156
+ ig: string;
157
+ id: string;
158
+ ga: string;
159
+ it: string;
160
+ ja: string;
161
+ jw: string;
162
+ kn: string;
163
+ kk: string;
164
+ km: string;
165
+ ko: string;
166
+ ku: string;
167
+ ky: string;
168
+ lo: string;
169
+ la: string;
170
+ lv: string;
171
+ lt: string;
172
+ lb: string;
173
+ mk: string;
174
+ mg: string;
175
+ ms: string;
176
+ ml: string;
177
+ mt: string;
178
+ mi: string;
179
+ mr: string;
180
+ mn: string;
181
+ my: string;
182
+ ne: string;
183
+ no: string;
184
+ ps: string;
185
+ fa: string;
186
+ pl: string;
187
+ pa: string;
188
+ ro: string;
189
+ sm: string;
190
+ gd: string;
191
+ sr: string;
192
+ st: string;
193
+ sn: string;
194
+ sd: string;
195
+ si: string;
196
+ sk: string;
197
+ sl: string;
198
+ so: string;
199
+ su: string;
200
+ sw: string;
201
+ sv: string;
202
+ tg: string;
203
+ ta: string;
204
+ te: string;
205
+ th: string;
206
+ uk: string;
207
+ ur: string;
208
+ uz: string;
209
+ vi: string;
210
+ cy: string;
211
+ xh: string;
212
+ yi: string;
213
+ yo: string;
214
+ zu: string;
215
+ };
216
+ find(name: Lang | LangName): "ms" | "hr" | "en" | "fr" | "es" | "pt" | "tr" | "ru" | "ar" | "af" | "sq" | "am" | "hy" | "az" | "eu" | "be" | "bn" | "bs" | "bg" | "ca" | "ceb" | "ny" | "zh" | "zh-tw" | "co" | "cs" | "da" | "nl" | "eo" | "et" | "tl" | "fi" | "fy" | "gl" | "ka" | "de" | "el" | "gu" | "ht" | "ha" | "haw" | "he" | "iw" | "hi" | "hmn" | "hu" | "is" | "ig" | "id" | "ga" | "it" | "ja" | "jw" | "kn" | "kk" | "km" | "ko" | "ku" | "ky" | "lo" | "la" | "lv" | "lt" | "lb" | "mk" | "mg" | "ml" | "mt" | "mi" | "mr" | "mn" | "my" | "ne" | "no" | "ps" | "fa" | "pl" | "pa" | "ro" | "sm" | "gd" | "sr" | "st" | "sn" | "sd" | "si" | "sk" | "sl" | "so" | "su" | "sw" | "sv" | "tg" | "ta" | "te" | "th" | "uk" | "ur" | "uz" | "vi" | "cy" | "xh" | "yi" | "yo" | "zu" | null;
217
+ };
218
+ export type Lang = keyof typeof langs;
219
+ export type LangName = "English" | "French" | "Spanish" | "Portuguese" | "Turkish" | "Russian" | "Arabic" | "Afrikaans" | "Albanian" | "Amharic" | "Armenian" | "Azerbaijani" | "Basque" | "Belarusian" | "Bengali" | "Bosnian" | "Bulgarian" | "Catalan" | "Cebuano" | "Chichewa" | "Chinese (Simplified)" | "Chinese (Traditional)" | "Corsican" | "Croatian" | "Czech" | "Danish" | "Dutch" | "Esperanto" | "Estonian" | "Filipino" | "Finnish" | "Frisian" | "Galician" | "Georgian" | "German" | "Greek" | "Gujarati" | "Haitian Creole" | "Hausa" | "Hawaiian" | "Hebrew" | "Hebrew" | "Hindi" | "Hmong" | "Hungarian" | "Icelandic" | "Igbo" | "Indonesian" | "Irish" | "Italian" | "Japanese" | "Javanese" | "Kannada" | "Kazakh" | "Khmer" | "Korean" | "Kurdish (Kurmanji)" | "Kyrgyz" | "Lao" | "Latin" | "Latvian" | "Lithuanian" | "Luxembourgish" | "Macedonian" | "Malagasy" | "Malay" | "Malayalam" | "Maltese" | "Maori" | "Marathi" | "Mongolian" | "Myanmar (Burmese)" | "Nepali" | "Norwegian" | "Pashto" | "Persian" | "Polish" | "Punjabi" | "Romanian" | "Samoan" | "Scots Gaelic" | "Serbian" | "Sesotho" | "Shona" | "Sindhi" | "Sinhala" | "Slovak" | "Slovenian" | "Somali" | "Sundanese" | "Swahili" | "Swedish" | "Tajik" | "Tamil" | "Telugu" | "Thai" | "Ukrainian" | "Urdu" | "Uzbek" | "Vietnamese" | "Welsh" | "Xhosa" | "Yiddish" | "Yoruba" | "Zulu";
220
+ export {};