/**
 * Public surface of the settings module. Other code should import from
 * `@/core/settings` rather than reaching into individual files.
 */

export {
  getSecret,
  setSecret,
  getPlain,
  setPlain,
  getStringOrDefault,
  listCatalogueKeys,
} from './repo';

export { encrypt, decrypt, isEncryptionAvailable, EncryptionError } from './crypto';

export {
  getOpenRouterKey,
  getOpenRouterKeyOptional,
  getFalKey,
} from './api-keys';

export {
  SETTINGS_CATALOGUE,
  isSecretKey,
  getEnvFallback,
  type SettingKind,
  type SettingDefinition,
  type KnownSettingKey,
} from './keys';
