import { default as makeServiceWorkerEnv } from 'service-worker-mock' ; declare var global ; declare global { interface Hash < T > { [ key ] : T ; } let IPINFO ; let CLIENT_ID ; let LOKI_HOST ; let FINGERPRINT ; let OPTIONS ; } var DEFAULT_OPTIONS = { IPINFO : 'test-token' , CLIENT_ID : 'client-id' , LOKI_HOST : 'loki:3100' , FINGERPRINT : 'some-uuid' , OPTIONS : JSON . stringify ( { css : false , images : false , js : false , ip : false , } ) , } ; Object . assign ( global , makeServiceWorkerEnv ( ) ) ; Object . assign ( global , DEFAULT_OPTIONS ) ;