sig
  class type t =
    object ('a)
      method addEvents : 'b Js.t -> unit Js.meth
      method addListener :
        'c Js.t ->
        'd Js.callback Js.optdef ->
        'e Js.t Js.optdef -> 'f Js.t Js.optdef -> 'g Js.t Js.meth
      method addManagedListener :
        'h Js.t ->
        'i Js.t ->
        'j Js.callback Js.optdef ->
        'k Js.t Js.optdef -> 'l Js.t Js.optdef -> 'm Js.t Js.meth
      method addStateEvents : 'n Js.t -> unit Js.meth
      method applyState : 'o Js.t -> unit Js.meth
      method callParent : 'p Js.t -> 'q Js.t Js.meth
      method callSuper : 'r Js.t -> 's Js.t Js.meth
      method clearListeners : unit Js.meth
      method clearManagedListeners : unit Js.meth
      method destroy : unit Js.meth
      method enableBubble : 't Js.t -> unit Js.meth
      method fireEvent : Js.js_string Js.t -> 'u Js.t -> bool Js.t Js.meth
      method fireEventArgs :
        Js.js_string Js.t -> 'v Js.t Js.js_array Js.t -> bool Js.t Js.meth
      method getInitialConfig :
        Js.js_string Js.t Js.optdef -> 'w Js.t Js.meth
      method getState : 'x Js.t Js.meth
      method hasListener : Js.js_string Js.t -> bool Js.t Js.meth
      method hasListeners : 'y Js.t Js.readonly_prop
      method initConfig : 'z Js.t -> 'a Js.t Js.meth
      method isObservable : bool Js.t Js.prop
      method mon :
        'a1 Js.t ->
        'b1 Js.t ->
        'c1 Js.callback Js.optdef ->
        'd1 Js.t Js.optdef -> 'e1 Js.t Js.optdef -> 'f1 Js.t Js.meth
      method mun :
        'g1 Js.t ->
        'h1 Js.t ->
        'i1 Js.callback Js.optdef -> 'j1 Js.t Js.optdef -> unit Js.meth
      method on :
        'k1 Js.t ->
        'l1 Js.callback Js.optdef ->
        'm1 Js.t Js.optdef -> 'n1 Js.t Js.optdef -> 'o1 Js.t Js.meth
      method relayEvents :
        'p1 Js.t ->
        Js.js_string Js.t Js.js_array Js.t ->
        Js.js_string Js.t Js.optdef -> 'q1 Js.t Js.meth
      method removeListener :
        Js.js_string Js.t ->
        'r1 Js.callback -> 's1 Js.t Js.optdef -> unit Js.meth
      method removeManagedListener :
        't1 Js.t ->
        'u1 Js.t ->
        'v1 Js.callback Js.optdef -> 'w1 Js.t Js.optdef -> unit Js.meth
      method resumeEvent : Js.js_string Js.t -> unit Js.meth
      method resumeEvents : unit Js.meth
      method savePropToState :
        Js.js_string Js.t ->
        'x1 Js.t -> Js.js_string Js.t Js.optdef -> bool Js.t Js.meth
      method savePropsToState : 'y1 Js.t -> 'z1 Js.t -> 'a2 Js.t Js.meth
      method saveState : unit Js.meth
      method self : Ext_Class.t Js.t Js.prop
      method statics : Ext_Class.t Js.t Js.meth
      method suspendEvent : Js.js_string Js.t -> unit Js.meth
      method suspendEvents : bool Js.t -> unit Js.meth
      method un :
        Js.js_string Js.t ->
        'b2 Js.callback -> 'c2 Js.t Js.optdef -> unit Js.meth
    end
  class type configs =
    object
      method listeners : 'a Js.t Js.prop
      method saveDelay : Js.number Js.t Js.prop
      method stateEvents : Js.js_string Js.t Js.js_array Js.t Js.prop
      method stateId : Js.js_string Js.t Js.prop
      method stateful : bool Js.t Js.prop
    end
  class type events =
    object
      method beforestaterestore :
        (Ext_state_Stateful.t Js.t -> 'a Js.t -> 'b Js.t -> unit) Js.callback
        Js.writeonly_prop
      method beforestatesave :
        (Ext_state_Stateful.t Js.t -> 'c Js.t -> 'd Js.t -> unit) Js.callback
        Js.writeonly_prop
      method staterestore :
        (Ext_state_Stateful.t Js.t -> 'e Js.t -> 'f Js.t -> unit) Js.callback
        Js.writeonly_prop
      method statesave :
        (Ext_state_Stateful.t Js.t -> 'g Js.t -> 'h Js.t -> unit) Js.callback
        Js.writeonly_prop
    end
  class type statics =
    object
      method addMembers : 'a Js.t -> unit Js.meth
      method addStatics : 'b Js.t -> 'c Js.t Js.meth
      method capture :
        'd Js.t -> 'e Js.callback -> 'f Js.t Js.optdef -> unit Js.meth
      method create : 'g Js.t Js.meth
      method createAlias : 'h Js.t -> 'i Js.t -> unit Js.meth
      method getName : Js.js_string Js.t Js.meth
      method observe : 'j Js.callback -> 'k Js.t -> unit Js.meth
      method releaseCapture : 'l Js.t -> unit Js.meth
    end
  val of_configs :
    Ext_state_Stateful.configs Js.t -> Ext_state_Stateful.t Js.t
  val to_configs :
    Ext_state_Stateful.t Js.t -> Ext_state_Stateful.configs Js.t
end