sig
  type key = int
  type +'a t
  val empty : 'a t
  val is_empty : 'a t -> bool
  val cardinal : 'a t -> int
  val add : key -> '-> 'a t -> 'a t
  val update_stdlib : key -> ('a option -> 'a option) -> 'a t -> 'a t
  val update : key -> key -> '-> 'a t -> 'a t
  val find : key -> 'a t -> 'a
  val find_opt : key -> 'a t -> 'a option
  val find_default : '-> key -> 'a t -> 'a
  val find_first : (key -> bool) -> 'a t -> key * 'a
  val find_first_opt : (key -> bool) -> 'a t -> (key * 'a) option
  val find_last : (key -> bool) -> 'a t -> key * 'a
  val find_last_opt : (key -> bool) -> 'a t -> (key * 'a) option
  val remove : key -> 'a t -> 'a t
  val remove_exn : key -> 'a t -> 'a t
  val modify : key -> ('-> 'a) -> 'a t -> 'a t
  val modify_def : '-> key -> ('-> 'a) -> 'a t -> 'a t
  val modify_opt : key -> ('a option -> 'a option) -> 'a t -> 'a t
  val extract : key -> 'a t -> 'a * 'a t
  val pop : 'a t -> (key * 'a) * 'a t
  val mem : key -> 'a t -> bool
  val iter : (key -> '-> unit) -> 'a t -> unit
  val map : ('-> 'b) -> 'a t -> 'b t
  val mapi : (key -> '-> 'b) -> 'a t -> 'b t
  val fold : (key -> '-> '-> 'b) -> 'a t -> '-> 'b
  val filterv : ('-> bool) -> 'a t -> 'a t
  val filter : (key -> '-> bool) -> 'a t -> 'a t
  val filter_map : (key -> '-> 'b option) -> 'a t -> 'b t
  val compare : ('-> '-> int) -> 'a t -> 'a t -> int
  val equal : ('-> '-> bool) -> 'a t -> 'a t -> bool
  val keys : 'a t -> key BatEnum.t
  val values : 'a t -> 'BatEnum.t
  val min_binding : 'a t -> key * 'a
  val min_binding_opt : 'a t -> (key * 'a) option
  val pop_min_binding : 'a t -> (key * 'a) * 'a t
  val max_binding : 'a t -> key * 'a
  val max_binding_opt : 'a t -> (key * 'a) option
  val pop_max_binding : 'a t -> (key * 'a) * 'a t
  val choose : 'a t -> key * 'a
  val choose_opt : 'a t -> (key * 'a) option
  val any : 'a t -> key * 'a
  val split : key -> 'a t -> 'a t * 'a option * 'a t
  val partition : (key -> '-> bool) -> 'a t -> 'a t * 'a t
  val singleton : key -> '-> 'a t
  val bindings : 'a t -> (key * 'a) list
  val enum : 'a t -> (key * 'a) BatEnum.t
  val backwards : 'a t -> (key * 'a) BatEnum.t
  val of_enum : (key * 'a) BatEnum.t -> 'a t
  val for_all : (key -> '-> bool) -> 'a t -> bool
  val exists : (key -> '-> bool) -> 'a t -> bool
  val merge :
    (key -> 'a option -> 'b option -> 'c option) -> 'a t -> 'b t -> 'c t
  val union : (key -> '-> '-> 'a option) -> 'a t -> 'a t -> 'a t
  val to_seq : 'a t -> (key * 'a) BatSeq.t
  val to_rev_seq : 'a t -> (key * 'a) BatSeq.t
  val to_seq_from : key -> 'a t -> (key * 'a) BatSeq.t
  val add_seq : (key * 'a) BatSeq.t -> 'a t -> 'a t
  val of_seq : (key * 'a) BatSeq.t -> 'a t
  val print :
    ?first:string ->
    ?last:string ->
    ?sep:string ->
    ?kvsep:string ->
    ('BatInnerIO.output -> key -> unit) ->
    ('BatInnerIO.output -> '-> unit) ->
    'BatInnerIO.output -> 'c t -> unit
  module Exceptionless :
    sig
      val find : key -> 'a t -> 'a option
      val choose : 'a t -> (key * 'a) option
      val any : 'a t -> (key * 'a) option
    end
  module Infix :
    sig
      val ( --> ) : 'a t -> key -> 'a
      val ( <-- ) : 'a t -> key * '-> 'a t
    end
  module Labels :
    sig
      val add : key:key -> data:'-> 'a t -> 'a t
      val iter : f:(key:key -> data:'-> unit) -> 'a t -> unit
      val map : f:('-> 'b) -> 'a t -> 'b t
      val mapi : f:(key:key -> data:'-> 'b) -> 'a t -> 'b t
      val filterv : f:('-> bool) -> 'a t -> 'a t
      val filter : f:(key -> '-> bool) -> 'a t -> 'a t
      val fold : f:(key:key -> data:'-> '-> 'b) -> 'a t -> init:'-> 'b
      val compare : cmp:('-> '-> int) -> 'a t -> 'a t -> int
      val equal : cmp:('-> '-> bool) -> 'a t -> 'a t -> bool
    end
end