#ifndef COMPONENTS_POLICY_CORE_COMMON_DEVICE_LOCAL_ACCOUNT_TYPE_H_
#define COMPONENTS_POLICY_CORE_COMMON_DEVICE_LOCAL_ACCOUNT_TYPE_H_
#include <string>
#include <string_view>
#include "base/types/expected.h"
#include "components/policy/policy_export.h"
namespace policy {
enum class DeviceLocalAccountType { … };
POLICY_EXPORT bool IsValidDeviceLocalAccountType(int value);
POLICY_EXPORT std::string GenerateDeviceLocalAccountUserId(
std::string_view account_id,
DeviceLocalAccountType type);
enum class GetDeviceLocalAccountTypeError { … };
POLICY_EXPORT
base::expected<DeviceLocalAccountType, GetDeviceLocalAccountTypeError>
GetDeviceLocalAccountType(std::string_view user_id);
POLICY_EXPORT bool IsDeviceLocalAccountUser(std::string_view user_id);
}
#endif