#ifndef MONOFORMAT_PARSEONLY_HPP
#define MONOFORMAT_PARSEONLY_HPP

#include "monoformat_parsehelpers.hpp"
#include "monoformat_schema.hpp"

namespace monoformat {

std::expected<void, ParseError> parseAndApply(std::span<std::byte const> data, OneBitBufferInterface* buffer,
                                              std::uint16_t screenWidth, std::uint16_t screenHeight,
                                              bool isFront, std::size_t animationTick, std::int64_t currentTimestamp);

std::expected<bool, ParseError> parseAndCheckExpiry(std::span<std::byte const> data, std::int64_t currentTimestamp);

} // namespace monoformat

#endif // MONOFORMAT_PARSEONLY_HPP
