-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.d.ts
42 lines (36 loc) · 1.45 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
* @param {string} message - The message to check links from.
* @param {boolean} scanSuspiciousDomains - Whether to also check for suspicious domains. Default is `false`
* @returns {Promise<boolean>} Whether this message contains a link.
*/
export declare async function checkMessage(message: string, scanSuspiciousDomains: boolean = false): Promise<boolean>;
/**
* Returns all phising domains.
* @returns {Promise<string[]>} An array of links.
*/
export declare async function listPhishingDomains(): Promise<string[]>;
/**
* Returns all suspicious domains.
* @returns {Promise<string[]>} An array of links.
*/
export declare async function listSuspiciousDomains(): Promise<string[]>;
/**
* Returns all confirmed and suspicious domains.
* @returns {Promise<string[]>} An array of links.
*/
export declare async function listAllDomains(): Promise<string[]>;
/**
* Returns the total amount of detected phising domains.
* @returns {Promise<number>} The number of detected domains
*/
export declare async function phishingDomainCount(): Promise<number>;
/**
* Returns the total amount of suspicious domains.
* @returns {Promise<number>} The number of suspicious domains
*/
export declare async function suspiciousDomainCount(): Promise<number>;
/**
* Returns the total amount of confirmed and suspicious domains.
* @returns {Promise<number>} The number of confirmed and suspicious domains.
*/
export declare async function domainCount(): Promise<number>;