import { DecryptedItem } from '../../Abstract/Item/Implementations/DecryptedItem' import { ContentType } from '@standardnotes/common' import { Predicate } from '../../Runtime/Predicate/Predicate' import { PrefKey, PrefValue } from './PrefKey' export class SNUserPrefs extends DecryptedItem { static singletonPredicate = new Predicate('content_type', '=', ContentType.UserPrefs) override get isSingleton(): true { return true } override singletonPredicate(): Predicate { return SNUserPrefs.singletonPredicate } getPref(key: K): PrefValue[K] | undefined { return this.getAppDomainValue(key) } }