#pragma once
#include <string>
#include <vector>
namespace torlinkc {
// Splits on commas/whitespace, validates scheme (udp/http(s)/ws(s)), dedupes.
// Ported from config/trackers.ts.
std::vector<std::string> parseTrackers(const std::string& input);
std::string formatTrackers(const std::vector<std::string>& trackers);
// One dim status line for the trackers prompt: what is saved now, what the
// current field text will save, and how many typed tokens get dropped (bad
// scheme or duplicate).
std::string trackersStatus(const std::vector<std::string>& saved, const std::string& fieldText);
} // namespace torlinkc