'Stream.t ->
object
  method consume_stream : unit
  method next_item : 'a option
  method nth_item : int -> 'a option
  method to_stream : 'Stream.t
end