declare namespace Api {
  namespace UserPreference {
    type ThemeSettingsValue<T> = {
      [K in keyof T]?: T[K] extends Record<string, unknown> ? ThemeSettingsValue<T[K]> : T[K];
    };

    type ThemeSettings = ThemeSettingsValue<App.Theme.ThemeSetting>;
  }
}
