type error = error
type t = t
val exists : t -> Fpath.t -> (bool, error) Stdlib.result Lwt.t
val delete : t -> Fpath.t -> (unit, error) Stdlib.result Lwt.t
val write : Cstruct.t -> ?off:int -> ?len:int -> [> `Write ] fd -> (int, error) Stdlib.result Lwt.t
val read : Cstruct.t -> ?off:int -> ?len:int -> [> `Read ] fd -> (int, error) Stdlib.result Lwt.t
val close : 'a fd -> (unit, error) Stdlib.result Lwt.t