-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
13 lines (9 loc) · 871 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
declare namespace fbrute {
function bruteForce(alphabet: string, l: number, cb: (str: string[]) => undefined): undefined;
function bruteForceWithStop(alphabet: string, l: number, cb: (str: string[]) => boolean | undefined): undefined;
function bruteForceWithAsyncStop(alphabet: string, l: number, cb: (str: string[]) => boolean | undefined): undefined;
function multiBruteForce(longToShorter: boolean, alphabet: string, l: number, cb: (str: string[]) => undefined): undefined;
function multiBruteForceWithStop(longToShorter: boolean, alphabet: string, l: number, cb: (str: string[]) => boolean | undefined, returnEverything: boolean): boolean | boolean[];
function multiBruteForceWithAsyncStop(longToShorter: boolean, alphabet: string, l: number, cb: (str: string[]) => boolean | undefined, returnEverything: boolean): boolean | boolean[];
}
export = fbrute;