sig
  type t
  type error_type = Null_retry | Too_many_nulls | Exception of string * exn
  type result =
      Success of int * string
    | Nothing_available
    | Error of Linebuf.error_type
    | Fatal_error of string * exn
  val open_linebuf :
    ?close_on_eof:bool ->
    ?null_hack:bool -> ?follow_deletes:bool -> string -> Linebuf.t
  val close_linebuf : Linebuf.t -> unit
  val closed_linebuf : Linebuf.t -> bool
  val try_read : Linebuf.t -> string option
  val try_read_lnum : Linebuf.t -> (int * string) option
  val try_read_lnum_verbose : Linebuf.t -> Linebuf.result
  val read : Linebuf.t -> string
  val tail : Linebuf.t -> unit
  val unsafe_tail : Linebuf.t -> unit
end