randex 0.25.0 → 0.28.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 (56) hide show
  1. package/README.md +80 -45
  2. package/lib/basic/const.d.ts +3 -0
  3. package/lib/basic/const.js +5 -0
  4. package/lib/basic/set.d.ts +10 -8
  5. package/lib/basic/set.js +14 -1
  6. package/lib/basic/type.d.ts +2 -2
  7. package/lib/custom/bool.d.ts +1 -0
  8. package/lib/custom/bool.js +7 -0
  9. package/lib/custom/email.d.ts +4 -13
  10. package/lib/custom/email.js +41 -0
  11. package/lib/custom/filenameX.d.ts +5 -0
  12. package/lib/custom/filenameX.js +43 -0
  13. package/lib/custom/fullnameX.d.ts +6 -0
  14. package/lib/custom/fullnameX.js +35 -0
  15. package/lib/custom/index.d.ts +36 -45
  16. package/lib/custom/index.js +23 -289
  17. package/lib/custom/number.d.ts +3 -3
  18. package/lib/custom/number.js +37 -0
  19. package/lib/custom/random.d.ts +2 -5
  20. package/lib/custom/random.js +81 -0
  21. package/lib/custom/sentence.d.ts +11 -0
  22. package/lib/custom/sentence.js +50 -0
  23. package/lib/custom/singleName.d.ts +5 -0
  24. package/lib/custom/singleName.js +30 -0
  25. package/lib/custom/username.d.ts +2 -4
  26. package/lib/custom/username.js +10 -0
  27. package/lib/custom/word.d.ts +11 -5
  28. package/lib/custom/word.js +35 -0
  29. package/lib/interfaces/base.d.ts +21 -0
  30. package/lib/interfaces/email.d.ts +13 -0
  31. package/lib/{custom → interfaces}/filename.d.ts +3 -3
  32. package/lib/interfaces/filename.js +2 -0
  33. package/lib/interfaces/fullname.d.ts +6 -0
  34. package/lib/interfaces/fullname.js +2 -0
  35. package/lib/interfaces/index.d.ts +9 -21
  36. package/lib/interfaces/index.js +23 -0
  37. package/lib/interfaces/number.d.ts +3 -0
  38. package/lib/interfaces/number.js +2 -0
  39. package/lib/interfaces/random.d.ts +5 -0
  40. package/lib/interfaces/random.js +2 -0
  41. package/lib/interfaces/sentence.d.ts +5 -0
  42. package/lib/interfaces/sentence.js +2 -0
  43. package/lib/interfaces/username.d.ts +4 -0
  44. package/lib/interfaces/username.js +2 -0
  45. package/lib/interfaces/word.d.ts +5 -0
  46. package/lib/interfaces/word.js +2 -0
  47. package/lib/test/sentence.test.d.ts +1 -0
  48. package/lib/test/sentence.test.js +33 -0
  49. package/lib/test/test-util.d.ts +10 -9
  50. package/lib/test/test-util.js +15 -3
  51. package/lib/test/word.test.js +16 -1
  52. package/package.json +1 -1
  53. package/todo +2 -4
  54. package/lib/custom/fullname.d.ts +0 -6
  55. /package/lib/{custom/filename.js → interfaces/base.js} +0 -0
  56. /package/lib/{custom/fullname.js → interfaces/email.js} +0 -0
package/README.md CHANGED
@@ -17,12 +17,13 @@ npm i randex
17
17
  Strings:
18
18
 
19
19
  - [random](#random)
20
+ - [word](#word)
21
+ - [sentence](#sentence)
20
22
  - [fileName](#filename)
21
23
  - [username](#username)
22
24
  - [email](#email)
23
25
  - [singleName](#singlename)
24
26
  - [fullName](#fullname)
25
- - [word](#word)
26
27
 
27
28
  Numbers:
28
29
  - [number](#number)
@@ -118,6 +119,84 @@ Options:
118
119
  |range|`string`| Range or custom chars |
119
120
  |length|[RandexLength](#randexlength) | Length of chars |
120
121
 
122
+ ## word
123
+
124
+ Randoms a simple word.
125
+
126
+ ```ts
127
+ import Randex from "randex";
128
+
129
+ // default
130
+ Randex.word();
131
+ // kpmld
132
+
133
+ // with length 5 chars
134
+ Randex.word({ length: 5 });
135
+ // or short:
136
+ Randex.word(5);
137
+ // imphs
138
+
139
+ // with 2 min and 5 max chars
140
+ Randex.word({ length: [2, 5] });
141
+ // or short:
142
+ Randex.word([2, 5]);
143
+ // kslg
144
+
145
+ // name from french alphabet
146
+ Randex.word({ alphabet: "french" });
147
+ // or short:
148
+ Randex.word("french");
149
+ // dbïœ
150
+
151
+ // name from french alphabet with length
152
+ Randex.word({ alphabet: "french", length: 10 });
153
+ // or short:
154
+ Randex.word("french", 10);
155
+ // rsîrjhjôôw
156
+ ```
157
+
158
+ Options:
159
+ | Name | Type| Description|
160
+ | ------------------------ | ---- |------------ |
161
+ |length|[RandexLength](#randexlength) | Length of chars. Default: [2,10] |
162
+ |alphabet|[RandexAlphabet](#randexalphabet) | Defined alphabet. Default: `english` |
163
+
164
+ ## sentence
165
+
166
+ Randoms a sentence.
167
+
168
+ ```ts
169
+ import Randex from "randex";
170
+
171
+ // default word range is from 3 to 15
172
+ Randex.sentence();
173
+ // Gpgowb te vdancy poluwsd sswl aqxq.
174
+
175
+ // with length 5 chars
176
+ Randex.sentence({ wordRange: 5 });
177
+ // or:
178
+ Randex.sentence(5);
179
+ // Xja wyfbhnhtl ptn shemiukme poyyjtr.
180
+
181
+ // with word range
182
+ Randex.sentence({ wordRange: [3, 6] });
183
+ // or:
184
+ Randex.sentence([3, 6]);
185
+ // Vg nfobxcwg tmhfu hiqonw.
186
+
187
+ // name from french alphabet
188
+ Randex.sentence({ alphabet: "french" });
189
+ // or:
190
+ Randex.sentence("french");
191
+ // Êid æeâoô déèbfûûæ aôç udôûsèqpa ygyïœùuè oê rmânacgwnc kuàq qêœççzœx iolîœsqàu aùàrpëhuâh rèèfhmæ klltu.
192
+ ```
193
+
194
+ Options:
195
+ | Name | Type| Description|
196
+ | ------------------------ | ---- |------------ |
197
+ |length|[RandexLength](#randexlength) | Length of chars. Default: [2,10] |
198
+ |alphabet|[RandexAlphabet](#randexalphabet) | Defined alphabet. Default: `english` |
199
+
121
200
  ## fileName
122
201
 
123
202
  Randoms file name.
@@ -302,50 +381,6 @@ Options:
302
381
  |alphabet|[RandexAlphabet](#randexalphabet) | Defined alphabet. Default: `english` |
303
382
 
304
383
 
305
-
306
- ## word
307
-
308
- Randoms a simple word.
309
-
310
- ```ts
311
- import Randex from "randex";
312
-
313
- // default
314
- Randex.word();
315
- // kpmld
316
-
317
- // with length 5 chars
318
- Randex.word({ length: 5 });
319
- // or short:
320
- Randex.word(5);
321
- // imphs
322
-
323
- // with 2 min and 5 max chars
324
- Randex.word({ length: [2, 5] });
325
- // or short:
326
- Randex.word([2, 5]);
327
- // kslg
328
-
329
- // name from french alphabet
330
- Randex.word({ alphabet: "french" });
331
- // or short:
332
- Randex.word("french");
333
- // dbïœ
334
-
335
- // name from french alphabet with length
336
- Randex.word({ alphabet: "french", length: 10 });
337
- // or short:
338
- Randex.word("french", 10);
339
- // rsîrjhjôôw
340
- ```
341
-
342
- Options:
343
- | Name | Type| Description|
344
- | ------------------------ | ---- |------------ |
345
- |length|[RandexLength](#randexlength) | Length of chars. Default: [2,10] |
346
- |alphabet|[RandexAlphabet](#randexalphabet) | Defined alphabet. Default: `english` |
347
-
348
-
349
384
  ## number
350
385
 
351
386
  Generates random number from a range of numbers.
@@ -0,0 +1,3 @@
1
+ import { RandexRange } from "../interfaces";
2
+ export declare const DEFAULT_WORD_RANGE: RandexRange;
3
+ export declare const DEFAULT_SENTENCE_RANGE: RandexRange;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DEFAULT_SENTENCE_RANGE = exports.DEFAULT_WORD_RANGE = void 0;
4
+ exports.DEFAULT_WORD_RANGE = [2, 10];
5
+ exports.DEFAULT_SENTENCE_RANGE = [3, 15];
@@ -1,15 +1,17 @@
1
- import { RandexSet, RandexLength } from "../interfaces";
1
+ import { RandexSet, RandexRange } from "../interfaces";
2
2
  export declare class RandexSetUtil {
3
- static readonly defaultFileNameLength: RandexLength;
4
- static readonly defaultExtensionLength: RandexLength;
3
+ static readonly defaultFileNameLength: RandexRange;
4
+ static readonly defaultExtensionLength: RandexRange;
5
5
  static readonly fileNameExtraChars = "";
6
- static readonly defaultEmailPrefixLength: RandexLength;
7
- static readonly defaultHightDomainEmailLength: RandexLength;
8
- static readonly defaultLowDomainEmailLength: RandexLength;
6
+ static readonly defaultEmailPrefixLength: RandexRange;
7
+ static readonly defaultHightDomainEmailLength: RandexRange;
8
+ static readonly defaultLowDomainEmailLength: RandexRange;
9
9
  private static toSingleRange;
10
10
  private static toAlphabetCase;
11
11
  private static toAlphabetRange;
12
12
  static toRange(set: RandexSet): string;
13
- static getLength(reservedChars: number, length: RandexLength | undefined, defaultLength: RandexLength): RandexLength;
14
- static randomNumber(length: number): number;
13
+ static getLength(reservedChars: number, length: RandexRange | undefined, defaultLength: RandexRange): RandexRange;
14
+ static randomSingleNumber(length: number): number;
15
+ static randomRangeNumber(min: number, max: number): number;
16
+ static many<TItem>(count: RandexRange, callback: () => TItem): TItem[];
15
17
  }
package/lib/basic/set.js CHANGED
@@ -94,9 +94,22 @@ var RandexSetUtil = /** @class */ (function () {
94
94
  }
95
95
  return result;
96
96
  };
97
- RandexSetUtil.randomNumber = function (length) {
97
+ RandexSetUtil.randomSingleNumber = function (length) {
98
98
  return Math.floor(Math.random() * length);
99
99
  };
100
+ RandexSetUtil.randomRangeNumber = function (min, max) {
101
+ var minN = Math.min(min, max);
102
+ var maxN = Math.max(min, max);
103
+ return RandexSetUtil.randomSingleNumber(maxN - minN + 1) + minN;
104
+ };
105
+ RandexSetUtil.many = function (count, callback) {
106
+ var result = [];
107
+ var length = Array.isArray(count) ? RandexSetUtil.randomRangeNumber(count[0], count[1]) : count;
108
+ for (var i = 0; i < length; i++) {
109
+ result.push(callback());
110
+ }
111
+ return result;
112
+ };
100
113
  RandexSetUtil.defaultFileNameLength = [3, 10];
101
114
  RandexSetUtil.defaultExtensionLength = [2, 5];
102
115
  RandexSetUtil.fileNameExtraChars = ""; //"-_.";
@@ -1,11 +1,11 @@
1
- import { RandexCase, RandexAlphabet, RandexItemSet, RandexContentArrayOptions, RandexSet, RandexSingleSet, RandexLength } from "../interfaces";
1
+ import { RandexCase, RandexAlphabet, RandexItemSet, RandexContentArrayOptions, RandexSet, RandexSingleSet, RandexRange } from "../interfaces";
2
2
  export declare class RandexTypeParser {
3
3
  private static inRange;
4
4
  private static inLiteral;
5
5
  static inCase(value: string): value is RandexCase;
6
6
  static inAlphabet(value: any): value is RandexAlphabet;
7
7
  static inSet(value: string): value is RandexSingleSet;
8
- static isLength(value: any): value is RandexLength;
8
+ static isLength(value: any): value is RandexRange;
9
9
  static isSetSingle(value: any): value is RandexItemSet;
10
10
  static isSet(value: any): value is RandexSet;
11
11
  static isPartArray(value: any): value is RandexContentArrayOptions;
@@ -0,0 +1 @@
1
+ export declare function randexBool(): boolean;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.randexBool = void 0;
4
+ function randexBool() {
5
+ return Math.random() < 0.5;
6
+ }
7
+ exports.randexBool = randexBool;
@@ -1,13 +1,4 @@
1
- import { RandexLength } from "../interfaces";
2
- interface BasicEmailOptions {
3
- prefixLength?: RandexLength;
4
- }
5
- interface DomainLengthEmailOptions {
6
- hightDomainLength?: RandexLength;
7
- lowDomainLength?: RandexLength;
8
- }
9
- interface DomainEmailOptions {
10
- domain?: string;
11
- }
12
- export type RandexEmailOptions = BasicEmailOptions & (DomainLengthEmailOptions | DomainEmailOptions);
13
- export {};
1
+ import { RandexEmailOptions, RandexRange } from "../interfaces";
2
+ export declare function randexEmail(options?: RandexEmailOptions): string;
3
+ export declare function randexEmail(prefixLength: RandexRange, lowDomainLength?: RandexRange, hightDomainLength?: RandexRange): string;
4
+ export declare function randexEmail(domain: string): string;
@@ -1,2 +1,43 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.randexEmail = void 0;
4
+ var set_1 = require("../basic/set");
5
+ var type_1 = require("../basic/type");
6
+ var random_1 = require("./random");
7
+ function randexEmail(p1, p2, p3) {
8
+ var prefixLength = set_1.RandexSetUtil.defaultEmailPrefixLength;
9
+ var hightDomainLength = set_1.RandexSetUtil.defaultHightDomainEmailLength;
10
+ var lowDomainLength = set_1.RandexSetUtil.defaultLowDomainEmailLength;
11
+ var domain = "";
12
+ if (type_1.RandexTypeParser.isLength(p1)) {
13
+ prefixLength = p1;
14
+ if (type_1.RandexTypeParser.isLength(p2)) {
15
+ lowDomainLength = p2;
16
+ }
17
+ if (type_1.RandexTypeParser.isLength(p3)) {
18
+ hightDomainLength = p3;
19
+ }
20
+ }
21
+ else if (typeof p1 === "string") {
22
+ domain = p1;
23
+ }
24
+ else if (typeof p1 === "object") {
25
+ if (p1.prefixLength) {
26
+ prefixLength = p1.prefixLength;
27
+ }
28
+ if (p1.hightDomainLength) {
29
+ hightDomainLength = p1.hightDomainLength;
30
+ }
31
+ if (p1.lowDomainLength) {
32
+ lowDomainLength = p1.lowDomainLength;
33
+ }
34
+ if (p1.domain) {
35
+ domain = p1.domain;
36
+ }
37
+ }
38
+ if (!domain) {
39
+ domain = (0, random_1.randexRandom)([["english", "l"], lowDomainLength]) + "." + (0, random_1.randexRandom)([["english", "l"], hightDomainLength]);
40
+ }
41
+ return (0, random_1.randexRandom)([[["english", "l"], "number"], prefixLength]) + "@" + domain;
42
+ }
43
+ exports.randexEmail = randexEmail;
@@ -0,0 +1,5 @@
1
+ import { RandexFileNameOptions, RandexRange } from "../interfaces";
2
+ export declare function randexFileName(options?: RandexFileNameOptions): string;
3
+ export declare function randexFileName(fileNameLength: RandexRange, extensionLength?: RandexRange): string;
4
+ export declare function randexFileName(fileNameLength: RandexRange, extension: string): string;
5
+ export declare function randexFileName(extension: string): string;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.randexFileName = void 0;
4
+ var set_1 = require("../basic/set");
5
+ var type_1 = require("../basic/type");
6
+ var random_1 = require("./random");
7
+ function randexFileName(p1, p2) {
8
+ var fileNameLength = set_1.RandexSetUtil.defaultFileNameLength;
9
+ var extensionLength = set_1.RandexSetUtil.defaultExtensionLength;
10
+ var extension = "";
11
+ if (type_1.RandexTypeParser.isLength(p1)) {
12
+ fileNameLength = p1;
13
+ if (type_1.RandexTypeParser.isLength(p2)) {
14
+ extensionLength = p2;
15
+ }
16
+ else if (typeof p2 === "string") {
17
+ extension = p2;
18
+ }
19
+ }
20
+ else if (typeof p1 === "string") {
21
+ extension = p1;
22
+ }
23
+ else if (typeof p1 === "object") {
24
+ if (p1.fileNameLength) {
25
+ fileNameLength = p1.fileNameLength;
26
+ }
27
+ if (p1.extensionLength) {
28
+ extensionLength = p1.extensionLength;
29
+ }
30
+ if (p1.extension) {
31
+ extension = p1.extension;
32
+ }
33
+ }
34
+ fileNameLength = set_1.RandexSetUtil.getLength(1, fileNameLength, fileNameLength);
35
+ if (!extension) {
36
+ extension = (0, random_1.randexRandom)([["english", "l"], extensionLength]);
37
+ }
38
+ return ((0, random_1.randexRandom)([["english", "number"], set_1.RandexSetUtil.fileNameExtraChars, fileNameLength]) +
39
+ (0, random_1.randexRandom)(["english", "number"]) +
40
+ "." +
41
+ (extension ? extension.replace(/^\./, "") : (0, random_1.randexRandom)([["english", "l"], extensionLength])));
42
+ }
43
+ exports.randexFileName = randexFileName;
@@ -0,0 +1,6 @@
1
+ import { RandexAlphabet, RandexFullNameOptions, RandexRange } from "../interfaces";
2
+ export declare function randexFullName(options?: RandexFullNameOptions): string;
3
+ export declare function randexFullName(length: RandexRange): string;
4
+ export declare function randexFullName(alphabet?: RandexAlphabet): string;
5
+ export declare function randexFullName(alphabet: RandexAlphabet, length: RandexRange): string;
6
+ export declare function randexFullName(alphabet: RandexAlphabet, firstLength: RandexRange, secondLength: RandexRange): string;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.randexFullName = void 0;
4
+ var type_1 = require("../basic/type");
5
+ var singleName_1 = require("./singleName");
6
+ function randexFullName(p1, p2, p3) {
7
+ var firstLength = 0;
8
+ var secondLength = 0;
9
+ var alphabet = "english";
10
+ if (type_1.RandexTypeParser.isLength(p1)) {
11
+ firstLength = secondLength = p1;
12
+ }
13
+ else if (type_1.RandexTypeParser.inAlphabet(p1)) {
14
+ alphabet = p1;
15
+ if (type_1.RandexTypeParser.isLength(p2)) {
16
+ firstLength = secondLength = p2;
17
+ }
18
+ if (type_1.RandexTypeParser.isLength(p3)) {
19
+ secondLength = p3;
20
+ }
21
+ }
22
+ else if (typeof p1 === "object") {
23
+ if (p1.alphabet) {
24
+ alphabet = p1.alphabet;
25
+ }
26
+ if (p1.firstLength) {
27
+ firstLength = p1.firstLength;
28
+ }
29
+ if (p1.secondLength) {
30
+ secondLength = p1.secondLength;
31
+ }
32
+ }
33
+ return (0, singleName_1.randexSingleName)({ length: firstLength, alphabet: alphabet }) + " " + (0, singleName_1.randexSingleName)({ length: secondLength, alphabet: alphabet });
34
+ }
35
+ exports.randexFullName = randexFullName;
@@ -1,50 +1,41 @@
1
- import { RandexAlphabet, RandexContentOptions, RandexLength } from "../interfaces";
2
- import { RandexEmailOptions } from "./email";
3
- import { RandexFileNameOptions } from "./filename";
4
- import { RandexWordOptions } from "./word";
5
- import { RandomNumberOptions } from "./number";
6
- import { RandexUsernameOptions } from "./username";
7
- import { RandexFullNameOptions } from "./fullname";
8
- export * from "./email";
9
- export * from "./filename";
10
- export * from "./word";
11
- export * from "./username";
12
- export * from "./fullname";
13
- export * from "./number";
1
+ import { RandexRange } from "../interfaces";
2
+ import { randexBool } from "./bool";
3
+ import { randexEmail } from "./email";
4
+ import { randexFileName } from "./filenameX";
5
+ import { randexFullName } from "./fullnameX";
6
+ import { randexNumber } from "./number";
7
+ import { randexRandom } from "./random";
8
+ import { randexSentence } from "./sentence";
9
+ import { randexSingleName } from "./singleName";
10
+ import { randexUsername } from "./username";
11
+ import { randexWord } from "./word";
14
12
  export declare class Randex {
15
- private static randomString;
16
- private static toContent;
17
- private static toRangeOptions;
18
- static random(...options: RandexContentOptions[]): string;
13
+ static random: typeof randexRandom;
19
14
  static arrayItem<T>(array: T[]): T;
20
15
  static arrayItem<T>(array: T[], defaultValue: T): T;
21
16
  static array<T>(array: T[], count: number): T[];
22
- static bool(): boolean;
23
- static email(options?: RandexEmailOptions): string;
24
- static email(prefixLength: RandexLength, lowDomainLength?: RandexLength, hightDomainLength?: RandexLength): string;
25
- static email(domain: string): string;
26
- static fileName(options?: RandexFileNameOptions): string;
27
- static fileName(fileNameLength: RandexLength, extensionLength?: RandexLength): string;
28
- static fileName(fileNameLength: RandexLength, extension: string): string;
29
- static fileName(extension: string): string;
30
- static fullName(options?: RandexFullNameOptions): string;
31
- static fullName(length: RandexLength): string;
32
- static fullName(alphabet?: RandexAlphabet): string;
33
- static fullName(alphabet: RandexAlphabet, length: RandexLength): string;
34
- static fullName(alphabet: RandexAlphabet, firstLength: RandexLength, secondLength: RandexLength): string;
35
- static singleName(options?: RandexWordOptions): string;
36
- static singleName(length: RandexLength): string;
37
- static singleName(alphabet?: RandexAlphabet): string;
38
- static singleName(alphabet: RandexAlphabet, length: RandexLength): string;
39
- static word(options?: RandexWordOptions): string;
40
- static word(length: RandexLength): string;
41
- static word(alphabet?: RandexAlphabet): string;
42
- static word(alphabet: RandexAlphabet, length: RandexLength): string;
43
- static numberArray(length: RandexLength, count: number): number[];
44
- private static getNumberBase;
45
- private static getNumberValue;
46
- private static innerRandomNumber;
47
- static number(length: RandexLength, options?: RandomNumberOptions): number;
48
- static number(from: number, to: number, options?: RandomNumberOptions): number;
49
- static username(options?: RandexUsernameOptions | RandexLength): string;
17
+ static bool: typeof randexBool;
18
+ static email: typeof randexEmail;
19
+ static fileName: typeof randexFileName;
20
+ static fullName: typeof randexFullName;
21
+ static singleName: typeof randexSingleName;
22
+ static numberArray(length: RandexRange, count: number): number[];
23
+ static number: typeof randexNumber;
24
+ static username: typeof randexUsername;
25
+ static word: typeof randexWord;
26
+ static sentence: typeof randexSentence;
27
+ static many(count: RandexRange): {
28
+ word: {
29
+ (options?: import("../interfaces").RandexWordOptions | undefined): string[];
30
+ (length: RandexRange): string[];
31
+ (alphabet?: import("../interfaces").RandexAlphabet | undefined): string[];
32
+ (alphabet: import("../interfaces").RandexAlphabet, length: RandexRange): string[];
33
+ };
34
+ sentence: {
35
+ (options?: import("../interfaces").RandexSentenceOptions | undefined): string[];
36
+ (length: RandexRange): string[];
37
+ (alphabet?: import("../interfaces").RandexAlphabet | undefined): string[];
38
+ (alphabet: import("../interfaces").RandexAlphabet, length: RandexRange): string[];
39
+ };
40
+ };
50
41
  }