export {}

declare global {
  var __APP_VERSION__: string
  var __DEV__: string

  /**
   * Network Information API — not in the DOM lib, and Safari/Firefox don't
   * implement it, so every field is optional and callers must tolerate the
   * whole object being absent.
   */
  interface NetworkInformation extends EventTarget {
    readonly saveData?: boolean
    readonly effectiveType?: 'slow-2g' | '2g' | '3g' | '4g'
  }

  interface Navigator {
    standalone?: boolean
    connection?: NetworkInformation
  }
}
