sig
  class type t =
    object ('a)
      method addEvents : 'Js.t -> unit Js.meth
      method addListener :
        'Js.t ->
        'Js.callback Js.optdef ->
        'Js.t Js.optdef -> 'Js.t Js.optdef -> 'Js.t Js.meth
      method addManagedListener :
        'Js.t ->
        'Js.t ->
        'Js.callback Js.optdef ->
        'Js.t Js.optdef -> 'Js.t Js.optdef -> 'Js.t Js.meth
      method addStateEvents : 'Js.t -> unit Js.meth
      method applyState : 'Js.t -> unit Js.meth
      method callParent : 'Js.t -> 'Js.t Js.meth
      method callSuper : 'Js.t -> 'Js.t Js.meth
      method clearListeners : unit Js.meth
      method clearManagedListeners : unit Js.meth
      method destroy : unit Js.meth
      method enableBubble : 'Js.t -> unit Js.meth
      method fireEvent : Js.js_string Js.t -> 'Js.t -> bool Js.t Js.meth
      method fireEventArgs :
        Js.js_string Js.t -> 'Js.t Js.js_array Js.t -> bool Js.t Js.meth
      method getInitialConfig :
        Js.js_string Js.t Js.optdef -> 'Js.t Js.meth
      method getState : 'Js.t Js.meth
      method hasListener : Js.js_string Js.t -> bool Js.t Js.meth
      method hasListeners : 'Js.t Js.readonly_prop
      method initConfig : 'Js.t -> '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 : '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 -> 'Js.t -> 'Js.t -> unit) Js.callback
        Js.writeonly_prop
      method beforestatesave :
        (Ext_state_Stateful.t Js.t -> 'Js.t -> 'Js.t -> unit) Js.callback
        Js.writeonly_prop
      method staterestore :
        (Ext_state_Stateful.t Js.t -> 'Js.t -> 'Js.t -> unit) Js.callback
        Js.writeonly_prop
      method statesave :
        (Ext_state_Stateful.t Js.t -> 'Js.t -> 'Js.t -> unit) Js.callback
        Js.writeonly_prop
    end
  class type statics =
    object
      method addMembers : 'Js.t -> unit Js.meth
      method addStatics : 'Js.t -> 'Js.t Js.meth
      method capture :
        'Js.t -> 'Js.callback -> 'Js.t Js.optdef -> unit Js.meth
      method create : 'Js.t Js.meth
      method createAlias : 'Js.t -> 'Js.t -> unit Js.meth
      method getName : Js.js_string Js.t Js.meth
      method observe : 'Js.callback -> 'Js.t -> unit Js.meth
      method releaseCapture : '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