import { AccountService } from '../__generated__/AccountService'; import { AuthenticateParams, LoginDc, UserInfoDc } from '../__generated__/data-contracts'; export type DecodedAuthToken = { /** емайл */ email: string; /** имя пользователя */ sub: string; /** Имя */ given_name: string; /** Фамилия */ family_name: string; /** workspace */ Namespace: string; /** сроки жизни токена */ exp: number; /** список ролей в будущем */ role: string[]; /** открывать последний проект или нет */ OpenLastProject: "False" | "True"; /** фото пользователя (ссылка) */ HasProfilePhoto: boolean; }; export type UserInfoWithPhoto = UserInfoDc & { profile_photo?: string; }; export declare class Account extends AccountService { private userInfo?; get username(): string; get isAuth(): boolean; get user(): Partial | undefined; login(params?: LoginDc, authParams?: AuthenticateParams, useJwt?: boolean): Promise; fetchCurrentUser(): Promise>; logout(): Promise; updateCurrentUser(userInfo: UserInfoWithPhoto): Promise; setPassword(password: string): Promise; }