import { TranslateService } from '@ngx-translate/core'; import { Observable } from 'rxjs'; import { LocalStoragService } from '../localStorag/local-storag.service'; import * as i0 from "@angular/core"; export declare enum UserPreferenceValues { Locale = "locale", ExpandedSideNavStatus = "expandedSidenav" } export declare class UserPreferencesService { #private; translate: TranslateService; private storage; defaults: { locale: string; expandedSidenav: boolean; }; private userPreferenceStatus; private onChangeSubject; onChange: Observable; constructor(translate: TranslateService, storage: LocalStoragService); private initUserPreferenceStatus; private initUserLanguage; /** * Sets up a callback to notify when a property has changed. * @param property The property to watch * @returns Notification callback */ select(property: string): Observable; /** * Gets a preference property. * @param property Name of the property * @param defaultValue Default to return if the property is not found * @returns Preference property */ get(property: string, defaultValue?: string, withoutUser?: boolean): string; /** * Sets a preference property. * @param property Name of the property * @param value New value for the property */ set(property: string, value: any, withoutUser?: boolean): void; /** * Sets a preference property. * @param property Name of the property * @param value New value for the property */ setWithoutStore(property: string, value: any): void; /** * Check if an item is present in the storage * @param property Name of the property * @returns True if the item is present, false otherwise */ hasItem(property: string, withoutUser?: boolean): boolean; /** * Gets the active storage prefix for preferences. * @returns Storage prefix */ getStoragePrefix(): string; /** * Sets the active storage prefix for preferences. * @param value Name of the prefix */ setStoragePrefix(value: string): void; /** * Gets the full property key with prefix. * @param property The property name * @returns Property key */ getPropertyKey(property: string): string; /** Current locale setting. */ get locale(): string; set locale(value: string); /** * Gets the default locale. * @returns Default locale language code */ getDefaultLocale(): string; private getLanguageByKey; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }