import path from 'node:path';

export function licenseEncryptedPath(userData: string): string {
  return path.join(userData, 'license.sealed');
}

/** Fallback, если нет OS keychain (WSL без gnome-keyring и т.п.); только при DND_LICENSE_INSECURE_FILE_STORAGE=1. */
export function licenseFallbackSealedPath(userData: string): string {
  return path.join(userData, 'license.sealed.fallback');
}

export function deviceIdPath(userData: string): string {
  return path.join(userData, 'device.id');
}

export function preferencesPath(userData: string): string {
  return path.join(userData, 'preferences.json');
}
