-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
116 lines (106 loc) · 3.24 KB
/
index.d.ts
File metadata and controls
116 lines (106 loc) · 3.24 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
declare module "p-proxies" {
export interface Request {
Request: this;
Client(url: string, options: object, callback: (err: Error, response: object, body: string) => any): object;
ClientSock5(url: string, options: object, proxyHost: string, proxyPort: number | string, callback: (err: Error, response: object, body: string) => any): object;
createOption(options: object): object;
}
export function jQuery(...args): object;
export interface ProxySearch {
ProxySearch: this;
cachePath: string;
countryList: {
BR: 'Brazil',
US: 'United States',
SE: 'Sweden',
RU: 'Russia',
MY: 'Malaysia',
CA: 'Canada',
SG: 'Singapore',
RO: 'Romania',
TW: 'Taiwan',
BG: 'Bulgaria',
UK: 'United Kingdom',
NO: 'Norway',
HK: 'Hong Kong',
TR: 'Turkey',
CN: 'China',
KR: 'Republic Of Korea',
IT: 'Italy',
PL: 'Poland',
FR: 'France',
DE: 'Germany',
AU: 'Australia',
UA: 'Ukraine',
NL: 'Netherlands',
BD: 'Bangladesh',
IN: 'India',
ES: 'Spain',
EC: 'Ecuador',
CZ: 'Czech Republic',
SK: 'Slovak Republic',
CH: 'Switzerland',
CL: 'Chile',
TH: 'Thailand',
VE: 'Venezuela',
SI: 'Slovenia',
DK: 'Denmark',
JP: 'Japan',
PJ: 'Philippines',
ID: 'Indonesia',
AT: 'Austria',
MN: 'Mongolia',
TZ: 'Tanzania',
BE: 'Belgium',
AR: 'Argentina',
PT: 'Portugal',
VN: 'Vietnam',
DM: 'Dominican Republic',
LV: 'Latvia',
FI: 'Finland',
NA: 'Namibia',
SC: 'Seychelles',
LU: 'Luxembourg',
EG: 'Egypt',
CO: 'Colombia',
JM: 'Jamaica',
MX: 'Mexico',
IM: 'Isle Of Man',
IR: 'Iran',
AE: 'United Arab Emirates',
NI: 'Nicaragua',
MD: 'Republic Of Moldova',
TT: 'Trinidad and Tobago',
SR: 'Suriname',
CR: 'Costa Rica',
CU: 'Cuba',
PE: 'Peru',
BY: 'Belarus',
KE: 'Kazakhstan',
GE: 'Georgia',
GT: 'Guatemala',
PA: 'Panama',
NG: 'Nigeria',
GU: 'Guam',
GH: 'Ghana',
SA: 'Saudi Arabia',
AM: 'Armenia',
IE: 'Ireland',
BN: 'Brunei',
NP: 'Nepal',
};
proxyCrawl(countries: string | object, cacheTime: number | boolean, debug: boolean = false): Promise;
getSearchCode(stringCode: string): string | null;
}
export interface UserAgent {
UserAgent: this;
browser: {
firefox(args: string): string;
chrome(args: string): string;
iexplorer(args: string): string;
opera(args: string): string;
safari(args: string): string;
};
generate(): string;
}
}