#pragma once

#include <string_view>

#include <userver/compression/error.hpp>

USERVER_NAMESPACE_BEGIN

namespace compression::zstd {

/// Decompresses the string.
/// @throws DecompressionError
std::string Decompress(std::string_view compressed, size_t max_size);

}  // namespace compression::zstd

USERVER_NAMESPACE_END
