import KintoClientBase , { KintoClientOptions } from "./base" ; import * as errors from "./errors" ; import { EventEmitter as ee } from "events" ; declare const ChromeUtils ; const { EventEmitter } = ChromeUtils . import ( "resource://gre/modules/EventEmitter.jsm" ) as { EventEmitter : any ; } ; export default class KintoHttpClient extends KintoClientBase { constructor ( remote , options = { } ) { const events = { } ; EventEmitter . decorate ( events ) ; super ( remote , { events : events as ee , ... options } ) ; } } ( KintoHttpClient as any ) . errors = errors ;