# Module type Interfaces.Stable2

    module type Stable2 = Stable_module_types.S2

    type ('a1, 'a2) t

    val map : ('a1, 'a2) t ->
           f1:('a1 -> 'b1) -> f2:('a2 -> 'b2) -> ('b1, 'b2) t

    val t_of_sexp : (Sexplib.Sexp.t -> 'a1) ->
           (Sexplib.Sexp.t -> 'a2) ->
           Sexplib.Sexp.t -> ('a1, 'a2) t

    val sexp_of_t : ('a1 -> Sexplib.Sexp.t) ->
           ('a2 -> Sexplib.Sexp.t) ->
           ('a1, 'a2) t -> Sexplib.Sexp.t

    val compare : ('a1 -> 'a1 -> int) ->
           ('a2 -> 'a2 -> int) ->
           ('a1, 'a2) t ->
           ('a1, 'a2) t -> int

    val bin_t : 'a1 Bin_prot.Type_class.t ->
           'a2 Bin_prot.Type_class.t ->
           ('a1, 'a2) t Bin_prot.Type_class.t

    val bin_read_t : 'a1 Bin_prot.Read.reader ->
           'a2 Bin_prot.Read.reader ->
           ('a1, 'a2) t Bin_prot.Read.reader

    val __bin_read_t__ : 'a1 Bin_prot.Read.reader ->
           'a2 Bin_prot.Read.reader ->
           (int -> ('a1, 'a2) t) Bin_prot.Read.reader

    val bin_reader_t : 'a1 Bin_prot.Type_class.reader ->
           'a2 Bin_prot.Type_class.reader ->
           ('a1, 'a2) t Bin_prot.Type_class.reader

    val bin_size_t : 'a1 Bin_prot.Size.sizer ->
           'a2 Bin_prot.Size.sizer ->
           ('a1, 'a2) t Bin_prot.Size.sizer

    val bin_write_t : 'a1 Bin_prot.Write.writer ->
           'a2 Bin_prot.Write.writer ->
           ('a1, 'a2) t Bin_prot.Write.writer

    val bin_writer_t : 'a1 Bin_prot.Type_class.writer ->
           'a2 Bin_prot.Type_class.writer ->
           ('a1, 'a2) t Bin_prot.Type_class.writer