#pragma once #include "types.hpp" #include "Range.hpp" #include namespace dchat { struct IncomingMessagePart { enum class Type { TEXT, EMOJI }; Type type; Range textRange; }; void parseIncomingMessage(const char *text, usize size, std::function callbackFunc); }