import { AngularDataContext } from '@themost/angular'; import { ConfigurationService } from '../../shared/services/configuration.service'; export declare class UserService { private _context; private _configurationService; private _user; constructor(_context: AngularDataContext, _configurationService: ConfigurationService); /** * Refreshes user token taken by implicit authorization flow. */ checkLogin(): void; /** * Gets current user * @returns {Promise<*>} An object which represents the current user * * Example * ```typescript import {UserService} from '@universis/common'; constructor(private _userService: UserService) { // } ngOnInit() { this._userService.getUser().then(user => { // place code here... }); } ``` */ getUser(): Promise; getUserSync(): any; /** * Sets current user profile * @param {*} profile * @returns UserService */ setProfile(profile?: any): UserService; }