Module Events.EventEmitter

include Interop.Js.T
type t
val t_of_js : Ojs.t -> t
val t_to_js : t -> Ojs.t
type listener = args:Interop.Js.Any.t list -> unit
val create : ?options:EventEmitterOptions.t -> unit -> t
val addListener : t -> eventName:string -> listener:listener -> t
val on : t -> eventName:string -> listener:listener -> t
val once : t -> eventName:string -> listener:listener -> t
val removeListener : t -> eventName:string -> listener:listener -> t
val off : t -> eventName:string -> listener:listener -> t
val removeAllListeners : t -> ?event:string -> unit -> t
val setMaxListener : t -> n:int -> t
val getMaxListener : t -> int
val listeners : t -> eventName:string -> listener list
val rawListeners : t -> eventName:string -> listener list
val emit : t -> eventName:string -> args:Interop.Js.Any.t list -> bool
val listenerCount : t -> eventName:string -> ?listener:listener -> unit -> int
val prependListener : t -> eventName:string -> listener:listener -> t
val prependOnceListener : t -> eventName:string -> listener:listener -> t
val eventNames : t -> string list