@elara-services/packages 6.0.0 → 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 (40) hide show
  1. package/dist/package.json +1 -1
  2. package/dist/src/interfaces/discord.d.ts +2 -2
  3. package/dist/src/lib/AES.js +19 -8
  4. package/dist/src/lib/discord.js +84 -39
  5. package/dist/src/lib/languages.d.ts +114 -4
  6. package/dist/src/lib/languages.js +120 -118
  7. package/dist/src/lib/minesweeper.js +24 -10
  8. package/dist/src/lib/misc.js +5 -4
  9. package/dist/src/lib/random.js +1960 -251
  10. package/dist/src/lib/tasks.js +5 -1
  11. package/docs/assets/search.js +1 -1
  12. package/docs/classes/AES.html +6 -7
  13. package/docs/classes/Minesweeper.html +12 -13
  14. package/docs/classes/Tasks.html +4 -5
  15. package/docs/functions/fetch.html +2 -3
  16. package/docs/functions/randomWeight.html +2 -3
  17. package/docs/functions/randomWords.html +2 -3
  18. package/docs/index.html +1 -2
  19. package/docs/interfaces/ButtonOptions.html +11 -12
  20. package/docs/interfaces/ModalOptions.html +7 -8
  21. package/docs/interfaces/RandomWord.html +10 -11
  22. package/docs/interfaces/SelectOptions.html +13 -14
  23. package/docs/interfaces/Slash.html +9 -10
  24. package/docs/interfaces/SlashOptions.html +15 -16
  25. package/docs/interfaces/TaskCreate.html +5 -6
  26. package/docs/interfaces/TextInputOptions.html +16 -17
  27. package/docs/modules.html +2 -4
  28. package/docs/types/ButtonNumberStyles.html +2 -3
  29. package/docs/types/ButtonStyles.html +2 -3
  30. package/docs/types/ChannelTypes.html +2 -3
  31. package/docs/types/Lang.html +3 -4
  32. package/docs/types/LangName.html +2 -3
  33. package/docs/variables/ButtonStyle.html +2 -3
  34. package/docs/variables/Duration.html +2 -3
  35. package/docs/variables/Interactions.html +2 -3
  36. package/docs/variables/Languages.html +294 -0
  37. package/docs/variables/SlashBuilder.html +2 -3
  38. package/package.json +1 -1
  39. package/docs/functions/find.html +0 -75
  40. package/docs/variables/langs.html +0 -279
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elara-services/packages",
3
- "version": "6.0.0",
3
+ "version": "6.0.1",
4
4
  "description": "",
5
5
  "main": "./dist/src/index.js",
6
6
  "author": "SUPERCHIEFYT (Elara-Discord-Bots, Elara-Services)",
@@ -1,5 +1,5 @@
1
1
  import { APIModalActionRowComponent, APISelectMenuOption, ComponentType } from "discord-api-types/v10";
2
- export type ButtonStyles = 'PRIMARY' | 'BLURPLE' | 'SECONDARY' | 'GREY' | 'SUCCESS' | 'GREEN' | 'DANGER' | 'RED' | 'LINK' | 'URL';
2
+ export type ButtonStyles = "PRIMARY" | "BLURPLE" | "SECONDARY" | "GREY" | "SUCCESS" | "GREEN" | "DANGER" | "RED" | "LINK" | "URL";
3
3
  export type ButtonNumberStyles = 1 | 2 | 3 | 4 | 5;
4
4
  export interface ButtonOptions {
5
5
  type?: number;
@@ -67,7 +67,7 @@ export interface Slash {
67
67
  descriptions?: Record<string, string>;
68
68
  };
69
69
  }
70
- export type ChannelTypes = 'GUILD_TEXT' | 'DM' | 'GUILD_VOICE' | 'GROUP_DM' | 'GUILD_CATEGORY' | 'GUILD_NEWS' | 'GUILD_STORE' | 'GUILD_NEWS_THREAD' | 'GUILD_PUBLIC_THREAD' | 'GUILD_PRIVATE_THREAD' | 'GUILD_STAGE_VOICE';
70
+ export type ChannelTypes = "GUILD_TEXT" | "DM" | "GUILD_VOICE" | "GROUP_DM" | "GUILD_CATEGORY" | "GUILD_NEWS" | "GUILD_STORE" | "GUILD_NEWS_THREAD" | "GUILD_PUBLIC_THREAD" | "GUILD_PRIVATE_THREAD" | "GUILD_STAGE_VOICE";
71
71
  export interface SlashOptions {
72
72
  type: number;
73
73
  name: string;
@@ -15,7 +15,9 @@ class AES {
15
15
  encrypt(input) {
16
16
  const isString = utils_1.is.string(input);
17
17
  const isBuffer = Buffer.isBuffer(input);
18
- if (!(isString || isBuffer) || (isString && !input) || (isBuffer && !Buffer.byteLength(input))) {
18
+ if (!(isString || isBuffer) ||
19
+ (isString && !input) ||
20
+ (isBuffer && !Buffer.byteLength(input))) {
19
21
  throw new Error(`${header} Provided invalid 'input', must be a non-empty string or buffer.`);
20
22
  }
21
23
  const sha = (0, crypto_1.createHash)("sha256");
@@ -27,24 +29,30 @@ class AES {
27
29
  buffer = Buffer.from(input);
28
30
  }
29
31
  const text = cipher.update(buffer);
30
- let encrypted = Buffer.concat([iv, text, cipher.final()]);
32
+ let encrypted = Buffer.concat([
33
+ iv,
34
+ text,
35
+ cipher.final(),
36
+ ]);
31
37
  if (isString) {
32
- encrypted = encrypted.toString('base64');
38
+ encrypted = encrypted.toString("base64");
33
39
  }
34
40
  return encrypted;
35
41
  }
36
42
  decrypt(encrypted) {
37
43
  const isString = utils_1.is.string(encrypted);
38
44
  const isBuffer = Buffer.isBuffer(encrypted);
39
- if (!(isString || isBuffer) || (isString && !encrypted) || (isBuffer && !Buffer.byteLength(encrypted))) {
45
+ if (!(isString || isBuffer) ||
46
+ (isString && !encrypted) ||
47
+ (isBuffer && !Buffer.byteLength(encrypted))) {
40
48
  throw new Error(`${header} Provided "encrypted" must be a non-empty string or buffer`);
41
49
  }
42
- const sha256 = (0, crypto_1.createHash)('sha256');
50
+ const sha256 = (0, crypto_1.createHash)("sha256");
43
51
  sha256.update(this.key);
44
52
  let input = encrypted;
45
53
  if (isString) {
46
54
  // @ts-expect-error
47
- input = Buffer.from(encrypted, 'base64');
55
+ input = Buffer.from(encrypted, "base64");
48
56
  if (input.length < 17) {
49
57
  throw new Error(`${header} Provided "encrypted" must decrypt to a non-empty string or buffer`);
50
58
  }
@@ -62,8 +70,11 @@ class AES {
62
70
  output = decipher.update(ciphertext) + decipher.final();
63
71
  }
64
72
  else {
65
- // @ts-expect-error
66
- output = Buffer.concat([decipher.update(ciphertext), decipher.final()]);
73
+ output = Buffer.concat([
74
+ // @ts-expect-error
75
+ decipher.update(ciphertext),
76
+ decipher.final(),
77
+ ]);
67
78
  }
68
79
  return output;
69
80
  }
@@ -3,7 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SlashBuilder = exports.Duration = exports.Interactions = exports.ButtonStyle = void 0;
4
4
  const utils_1 = require("@elara-services/utils");
5
5
  const v10_1 = require("discord-api-types/v10");
6
- exports.ButtonStyle = { PRIMARY: 1, BLURPLE: 1, SECONDARY: 2, GREY: 2, SUCCESS: 3, GREEN: 3, DANGER: 4, RED: 4, LINK: 5, URL: 5 };
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
+ };
7
18
  exports.Interactions = {
8
19
  button: (options = {}) => {
9
20
  var _a, _b, _c, _d, _e, _f, _g;
@@ -16,7 +27,8 @@ exports.Interactions = {
16
27
  options.style = 2;
17
28
  }
18
29
  }
19
- if (typeof options.url === "string" && options.url.match(/(https?|discord):\/\//gi)) {
30
+ if (typeof options.url === "string" &&
31
+ options.url.match(/(https?|discord):\/\//gi)) {
20
32
  options.style = 5;
21
33
  options.id = "";
22
34
  }
@@ -25,13 +37,16 @@ exports.Interactions = {
25
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 : "",
26
38
  type: (_e = options === null || options === void 0 ? void 0 : options.type) !== null && _e !== void 0 ? _e : 2,
27
39
  style: (options === null || options === void 0 ? void 0 : options.style) ? options.style : 2,
28
- disabled: typeof options.disabled === "boolean" ? options.disabled : false,
40
+ disabled: typeof options.disabled === "boolean"
41
+ ? options.disabled
42
+ : false,
29
43
  emoji: (_f = options === null || options === void 0 ? void 0 : options.emoji) !== null && _f !== void 0 ? _f : undefined,
30
- url: (_g = options === null || options === void 0 ? void 0 : options.url) !== null && _g !== void 0 ? _g : undefined
44
+ url: (_g = options === null || options === void 0 ? void 0 : options.url) !== null && _g !== void 0 ? _g : undefined,
31
45
  };
32
46
  },
33
47
  select: (options = {}) => {
34
- if (options.type === v10_1.ComponentType.StringSelect && !Array.isArray(options.options)) {
48
+ if (options.type === v10_1.ComponentType.StringSelect &&
49
+ !Array.isArray(options.options)) {
35
50
  throw new Error(`[Interactions#select]: The 'options' isn't an array.`);
36
51
  }
37
52
  const data = {
@@ -170,7 +185,7 @@ exports.Duration = {
170
185
  const n = dur.match(/\d+/g) || ["0"];
171
186
  const [num, [str]] = [
172
187
  parseInt(n[0]),
173
- dur.match(/[A-Za-z]+/g) || ['']
188
+ dur.match(/[A-Za-z]+/g) || [""],
174
189
  ];
175
190
  if (isNaN(num)) {
176
191
  totalTime = 0;
@@ -189,32 +204,41 @@ exports.Duration = {
189
204
  switch (str) {
190
205
  case "ms":
191
206
  case "millisecond":
192
- case "milliseconds": return 1;
207
+ case "milliseconds":
208
+ return 1;
193
209
  case "s":
194
210
  case "second":
195
- case "seconds": return 1000;
211
+ case "seconds":
212
+ return 1000;
196
213
  case "m":
197
214
  case "min":
198
215
  case "mins":
199
216
  case "minute":
200
- case "minutes": return 60 * 1000;
217
+ case "minutes":
218
+ return 60 * 1000;
201
219
  case "h":
202
220
  case "hr":
203
221
  case "hour":
204
- case "hours": return 60 * 60 * 1000;
222
+ case "hours":
223
+ return 60 * 60 * 1000;
205
224
  case "d":
206
225
  case "day":
207
- case "days": return 24 * 60 * 60 * 1000;
226
+ case "days":
227
+ return 24 * 60 * 60 * 1000;
208
228
  case "w":
209
229
  case "week":
210
- case "weeks": return 7 * 24 * 60 * 60 * 1000;
230
+ case "weeks":
231
+ return 7 * 24 * 60 * 60 * 1000;
211
232
  case "mo":
212
233
  case "month":
213
- case "months": return 30 * 24 * 60 * 60 * 1000;
234
+ case "months":
235
+ return 30 * 24 * 60 * 60 * 1000;
214
236
  case "y":
215
237
  case "year":
216
- case "years": return 365 * 24 * 60 * 60 * 1000;
217
- default: return 1;
238
+ case "years":
239
+ return 365 * 24 * 60 * 60 * 1000;
240
+ default:
241
+ return 1;
218
242
  }
219
243
  },
220
244
  validate: (value) => {
@@ -223,12 +247,12 @@ exports.Duration = {
223
247
  for (const match of MATCHES_ALL) {
224
248
  const [num, str] = [
225
249
  match.match(/\d+/g),
226
- match.match(/[A-Za-z]+/g)
250
+ match.match(/[A-Za-z]+/g),
227
251
  ];
228
- if (!num || (num.length !== 1)) {
252
+ if (!num || num.length !== 1) {
229
253
  return false;
230
254
  }
231
- if (!str || (str.length !== 1)) {
255
+ if (!str || str.length !== 1) {
232
256
  return false;
233
257
  }
234
258
  if (!Number.isInteger(parseInt(num[0]))) {
@@ -243,20 +267,38 @@ exports.Duration = {
243
267
  return false;
244
268
  },
245
269
  timeIds: new Set([
246
- "ms", "millisecond", "milliseconds",
247
- "s", "second", "seconds",
248
- "m", "min", "mins", "minute", "minutes",
249
- "h", "hr", "hrs", "hour", "hours",
250
- "d", "day", "days",
251
- "w", "week", "weeks",
252
- "mo", "month", "months",
253
- "y", "year", "years"
254
- ])
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
+ ]),
255
299
  };
256
300
  exports.SlashBuilder = {
257
- TEXT_BASED_CHANNELS: [
258
- 0, 5, 11, 12
259
- ],
301
+ TEXT_BASED_CHANNELS: [0, 5, 11, 12],
260
302
  types: {
261
303
  sub_command: 1,
262
304
  sub_group: 2,
@@ -270,12 +312,12 @@ exports.SlashBuilder = {
270
312
  number: 10,
271
313
  context: {
272
314
  user: 2,
273
- message: 3
274
- }
315
+ message: 3,
316
+ },
275
317
  },
276
318
  context: {
277
319
  user: (name, options) => exports.SlashBuilder.create(name, "", Object.assign({ type: exports.SlashBuilder.types.context.user }, options)),
278
- message: (name, options) => exports.SlashBuilder.create(name, "", Object.assign({ type: exports.SlashBuilder.types.context.message }, options))
320
+ message: (name, options) => exports.SlashBuilder.create(name, "", Object.assign({ type: exports.SlashBuilder.types.context.message }, options)),
279
321
  },
280
322
  choice: (name, value, name_localizations) => {
281
323
  return { name, value, name_localizations };
@@ -305,7 +347,7 @@ exports.SlashBuilder = {
305
347
  options: [],
306
348
  type: 0,
307
349
  dm_permission: false,
308
- default_member_permissions: ""
350
+ default_member_permissions: "",
309
351
  };
310
352
  if ((_a = options === null || options === void 0 ? void 0 : options.locale) === null || _a === void 0 ? void 0 : _a.names) {
311
353
  obj.name_localizations = options.locale.names;
@@ -314,7 +356,7 @@ exports.SlashBuilder = {
314
356
  obj.description_localizations = options.locale.descriptions;
315
357
  }
316
358
  if (utils_1.is.array(options.options)) {
317
- obj['options'] = options.options;
359
+ obj["options"] = options.options;
318
360
  }
319
361
  if (utils_1.is.number(options.type)) {
320
362
  obj.type = options.type;
@@ -322,15 +364,18 @@ exports.SlashBuilder = {
322
364
  if ("dmPermission" in options && utils_1.is.boolean(options.dmPermission)) {
323
365
  obj["dm_permission"] = options.dmPermission;
324
366
  }
325
- else if ("dm_permission" in options && utils_1.is.boolean(options.dm_permission)) {
367
+ else if ("dm_permission" in options &&
368
+ utils_1.is.boolean(options.dm_permission)) {
326
369
  obj["dm_permission"] = options.dm_permission;
327
370
  }
328
- if ("default_member_permissions" in options && utils_1.is.string(options.default_member_permissions)) {
371
+ if ("default_member_permissions" in options &&
372
+ utils_1.is.string(options.default_member_permissions)) {
329
373
  obj.default_member_permissions = options.default_member_permissions;
330
374
  }
331
- else if ("defaultMemberPermissions" in options && utils_1.is.string(options.defaultMemberPermissions)) {
375
+ else if ("defaultMemberPermissions" in options &&
376
+ utils_1.is.string(options.defaultMemberPermissions)) {
332
377
  obj.default_member_permissions = options.defaultMemberPermissions;
333
378
  }
334
379
  return obj;
335
- }
380
+ },
336
381
  };
@@ -1,4 +1,4 @@
1
- export declare const langs: {
1
+ declare const langs: {
2
2
  en: string;
3
3
  fr: string;
4
4
  es: string;
@@ -20,7 +20,7 @@ export declare const langs: {
20
20
  ceb: string;
21
21
  ny: string;
22
22
  zh: string;
23
- 'zh-tw': string;
23
+ "zh-tw": string;
24
24
  co: string;
25
25
  hr: string;
26
26
  cs: string;
@@ -105,6 +105,116 @@ export declare const langs: {
105
105
  yo: string;
106
106
  zu: string;
107
107
  };
108
- export declare function 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;
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
+ };
109
218
  export type Lang = keyof typeof langs;
110
- 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';
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 {};