-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.d.ts
55 lines (52 loc) · 1.55 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
43
44
45
46
47
48
49
50
51
52
53
54
55
interface factory {
isAndroid(): boolean;
isIOS(): boolean;
isWinPhone(): boolean;
iOSVersion(): [number, number] | [];
appleWebkitVersion(): Array<number>;
baiduBoxVersion(): Array<number> | number;
baiduBoxVersionOnArk(): Array<number> | number;
baiduBoxOrBdappVersion(): Array<number> | null;
honorVersion(): Array<number> | null;
bdappVersion(): Array<number>| null;
secrVersion(): Array<number>;
getChromeVersion(): Array<number>;
androidVersion(): Array<number>;
vivoBrowserVersion(): Array<number>;
isBaiduboxOrBdapp(): boolean;
isTomas(): boolean;
isKnews(): boolean;
isBDBoxEngine(): boolean;
isBdapp(): boolean;
isBaiduBox(): boolean;
isBaiduHonorBrowser(): boolean;
isBaiduBoxLite(): boolean;
isBaiduBoxJisu(): boolean;
isBaiduBoxVision(): boolean;
isQQ(): boolean;
isQQApp(): boolean;
isWeixinApp(): boolean;
isQQBrowser(): boolean;
isBaiduBrowser(): boolean;
isSearchCraft(): boolean;
isUC(): boolean;
isChromeDesktop(): boolean;
isChromeMobile(): boolean;
isSafariBrowser(): boolean;
isGoogleChrome(): boolean;
isCriOS(): boolean;
isSogouMobile(): boolean;
isMiuiBrowser(): boolean;
isHUAWEIBrowser(): boolean;
isMZBrowser(): boolean;
isOppoBrowser(): boolean;
isWKWebview(): boolean;
isUIWebview(): boolean;
isXcxApp(): boolean;
isVivoBrowser(): boolean;
isArkBrowser(): boolean;
isBaiduBoxOnArk(): boolean;
use(ua: string): factory
}
declare const mod: factory;
export = mod