interface UserSettingDefinition { /** * Get the setting value */ getSetting(): T; /** * Update the setting value * @param value The new value */ updateSetting(value: T): Promise; /** * Update the setting value * @param value A callback that accepts the old value as the first argument, and returns the new value */ updateSetting(value: (old: T) => T): Promise; /** * Stateful React hook for this setting value */ useSetting(): T; userSettingsAPIGroup: string; userSettingsAPIName: string; } export declare const UserSettings: Record> | undefined; /** * Get the setting with the given setting group and name. * * @param group The setting group * @param name The name of the setting */ export declare function getUserSetting(group: string, name: string): UserSettingDefinition | undefined; /** * {@link getUserSettingDefinition}, lazy. * * Get the setting with the given setting group and name. * * @param group The setting group * @param name The name of the setting */ export declare function getUserSettingLazy(group: string, name: string): UserSettingDefinition | undefined; export {};