import { PuiStorageService } from './../data/storage.service'; import { Observable } from 'rxjs/Rx'; import { UserProfile, Theme } from './lib'; /** * User profile service * @export * @class PuiUserProfileService */ export declare class PuiUserProfileService { private storageService; private static profile; private static themeSubject; private storage; /** * Send a theme. * @private * @static * @param {Theme} theme Theme. * @memberof PuiUserProfileService */ private static sendTheme(theme); /** * Set the current theme. * @static * @param {string} themeIdentifier Identifier of the intended new theme. * @memberof PuiUserProfileService */ static setTheme(theme: Theme): void; constructor(storageService: PuiStorageService); /** * Configure the service with a provided user profile. * @param {UserProfile} userProfile User profile data. * @returns {void} * @memberof PuiUserProfileService */ configure(userProfile: UserProfile): void; /** * Set the current theme. * @param {Theme} theme Intended new theme. * @memberof PuiUserProfileService */ setTheme(theme: Theme): void; /** * Get a subject which will recieve themes as the intended theme changes. * @returns {Observable} Current theme. * @memberof PuiUserProfileService */ getThemeSubject(): Observable; getTheme(): Theme; }