#pragma once

#include <maps/wikimap/mapspro/libs/social_serv_serialize/include/substitution_data.h>

#include <yandex/maps/wiki/social/feedback/task.h>
#include <yandex/maps/wiki/social/feedback/history.h>

#include <optional>
 
namespace maps::wiki::socialsrv::serialize {

SubstitutionData getSubstitutionData(
    const social::feedback::HistoryItems& items,
    const std::optional<social::feedback::TaskResolved>& realTaskResolved,
    const social::feedback::TaskState realTaskState);

namespace internal {

bool isProcessingLevelUp(const social::feedback::HistoryItem& item);

} // namespace internal

} // namespace maps::wiki::socialsrv::serialize
