1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | declare const enum ServiceWorkerStatus {
|
18 | UNKNOWN = 0,
|
19 | UNSUPPORTED = 1,
|
20 | CONTROLLED = 2,
|
21 | UNCONTROLLED = 3
|
22 | }
|
23 | export declare enum VisibilityState {
|
24 | UNKNOWN = 0,
|
25 | VISIBLE = 1,
|
26 | HIDDEN = 2
|
27 | }
|
28 | declare const enum EffectiveConnectionType {
|
29 | UNKNOWN = 0,
|
30 | CONNECTION_SLOW_2G = 1,
|
31 | CONNECTION_2G = 2,
|
32 | CONNECTION_3G = 3,
|
33 | CONNECTION_4G = 4
|
34 | }
|
35 | export declare function getServiceWorkerStatus(): ServiceWorkerStatus;
|
36 | export declare function getVisibilityState(): VisibilityState;
|
37 | export declare function getEffectiveConnectionType(): EffectiveConnectionType;
|
38 | export declare function isValidCustomAttributeName(name: string): boolean;
|
39 | export declare function isValidCustomAttributeValue(value: string): boolean;
|
40 | export {};
|