1// Expose this file as a module (see https://stackoverflow.com/a/59499895/4337317)
2export {};
3
4/**
5 * Handle deprecations and missing typings that not available in the main lib.dom.d.ts file.
6 */
7declare global {
8  type EffectiveConnectionType = '2g' | '3g' | '4g' | 'slow-2g';
9
10  interface NetworkInformation {
11    readonly effectiveType: EffectiveConnectionType;
12  }
13
14  interface Navigator {
15    readonly mozConnection?: NetworkInformation;
16    readonly webkitConnection?: NetworkInformation;
17  }
18}
19