#pragma once

#include <string>

namespace torlinkc {

// Expands a leading ~ (and ~\, for paths pasted from Windows) against `home`.
// ~bob isn't us, so it's left alone. Ported from config/folder.ts.
std::string expandHome(const std::string& input, const std::string& home);

// Typed input -> a path suitable for creating a directory. Blank returns ""
// (caller: leave it be).
std::string normalizeDownloadDir(const std::string& input, const std::string& home);

}  // namespace torlinkc
