val detect : Reader.t -> (Types.format, Types.error) result val of_bytes : bytes -> Types.format option