sig
  type 'a t
  val sexp_of_t :
    ('-> Sexplib.Sexp.t) -> 'Interval_intf.S1.t -> Sexplib.Sexp.t
  val t_of_sexp :
    (Sexplib.Sexp.t -> 'a) -> Sexplib.Sexp.t -> 'Interval_intf.S1.t
  val bin_size_t :
    'Bin_prot.Size.sizer -> 'Interval_intf.S1.t Bin_prot.Size.sizer
  val bin_write_t :
    'Bin_prot.Unsafe_write_c.writer ->
    'Interval_intf.S1.t Bin_prot.Write_ml.writer
  val bin_write_t_ :
    'Bin_prot.Unsafe_write_c.writer ->
    'Interval_intf.S1.t Bin_prot.Unsafe_write_c.writer
  val bin_writer_t :
    'Bin_prot.Type_class.writer ->
    'Interval_intf.S1.t Bin_prot.Type_class.writer
  val bin_read_t :
    'Bin_prot.Unsafe_read_c.reader ->
    'Interval_intf.S1.t Bin_prot.Read_ml.reader
  val bin_read_t_ :
    'Bin_prot.Unsafe_read_c.reader ->
    'Interval_intf.S1.t Bin_prot.Unsafe_read_c.reader
  val bin_read_t__ :
    'Bin_prot.Unsafe_read_c.reader ->
    (int -> 'Interval_intf.S1.t) Bin_prot.Unsafe_read_c.reader
  val bin_reader_t :
    'Bin_prot.Type_class.reader ->
    'Interval_intf.S1.t Bin_prot.Type_class.reader
  val bin_t :
    'Bin_prot.Type_class.t -> 'Interval_intf.S1.t Bin_prot.Type_class.t
  type 'a interval = 'Interval_intf.S1.t
  module T : sig type 'a bound = 'type 'a t = 'a t end
  val create : 'T.bound -> 'T.bound -> 'T.t
  val empty : 'T.t
  val intersect : 'T.t -> 'T.t -> 'T.t
  val is_empty : 'T.t -> bool
  val is_empty_or_singleton : 'T.t -> bool
  val bounds : 'T.t -> ('T.bound * 'T.bound) option
  val lbound : 'T.t -> 'T.bound option
  val ubound : 'T.t -> 'T.bound option
  val bounds_exn : 'T.t -> 'T.bound * 'T.bound
  val lbound_exn : 'T.t -> 'T.bound
  val ubound_exn : 'T.t -> 'T.bound
  val contains : 'T.t -> 'T.bound -> bool
  val compare_value :
    'T.t ->
    'T.bound -> [ `Above | `Below | `Interval_is_empty | `Within ]
  val bound : 'T.t -> 'T.bound -> 'T.bound option
  val is_superset : 'T.t -> of_:'T.t -> bool
  val is_subset : 'T.t -> of_:'T.t -> bool
  val map : f:('T.bound -> 'T.bound) -> 'T.t -> 'T.t
  val are_disjoint : 'T.t list -> bool
  val are_disjoint_as_open_intervals : 'T.t list -> bool
  val list_intersect : 'T.t list -> 'T.t list -> 'T.t list
  val half_open_intervals_are_a_partition : 'T.t list -> bool
  module Set :
    sig
      type 'a t
      val sexp_of_t :
        ('-> Sexplib.Sexp.t) -> 'Interval_intf.S1.Set.t -> Sexplib.Sexp.t
      val t_of_sexp :
        (Sexplib.Sexp.t -> 'a) -> Sexplib.Sexp.t -> 'Interval_intf.S1.Set.t
      val bin_size_t :
        'Bin_prot.Size.sizer ->
        'Interval_intf.S1.Set.t Bin_prot.Size.sizer
      val bin_write_t :
        'Bin_prot.Unsafe_write_c.writer ->
        'Interval_intf.S1.Set.t Bin_prot.Write_ml.writer
      val bin_write_t_ :
        'Bin_prot.Unsafe_write_c.writer ->
        'Interval_intf.S1.Set.t Bin_prot.Unsafe_write_c.writer
      val bin_writer_t :
        'Bin_prot.Type_class.writer ->
        'Interval_intf.S1.Set.t Bin_prot.Type_class.writer
      val bin_read_t :
        'Bin_prot.Unsafe_read_c.reader ->
        'Interval_intf.S1.Set.t Bin_prot.Read_ml.reader
      val bin_read_t_ :
        'Bin_prot.Unsafe_read_c.reader ->
        'Interval_intf.S1.Set.t Bin_prot.Unsafe_read_c.reader
      val bin_read_t__ :
        'Bin_prot.Unsafe_read_c.reader ->
        (int -> 'Interval_intf.S1.Set.t) Bin_prot.Unsafe_read_c.reader
      val bin_reader_t :
        'Bin_prot.Type_class.reader ->
        'Interval_intf.S1.Set.t Bin_prot.Type_class.reader
      val bin_t :
        'Bin_prot.Type_class.t ->
        'Interval_intf.S1.Set.t Bin_prot.Type_class.t
      module T :
        sig
          type 'a t = 'a t
          type 'a bound = 'a
          type 'a interval = 'a interval
        end
      val create : ('T.bound * 'T.bound) list -> 'T.t
      val create_from_intervals : 'T.interval list -> 'T.t
      val contains : 'T.t -> 'T.bound -> bool
      val contains_set : container:'T.t -> contained:'T.t -> bool
      val ubound_exn : 'T.t -> 'T.bound
      val lbound_exn : 'T.t -> 'T.bound
      val ubound : 'T.t -> 'T.bound option
      val lbound : 'T.t -> 'T.bound option
    end
end