import { ApiService } from '../ApiService'; import { Subject } from 'rxjs'; import { Location } from '@angular/common'; import { User } from "../../../models/index"; export interface AuthProvider { name: string; loginTitle: string; publicUrlTitle: string; icon?: string; authLink?: string; } export declare let AUTH_PROVIDERS: AuthProvider[]; export interface JwtData { id: string; userId: string; created: Date; ttl: number; } export declare class AuthService { private api; private location; jwtData: JwtData; currentUserObservable: Subject; private currentUser; constructor(api: ApiService, location: Location); static CacheCurrentUser(user: any): void; setCurrentUser(user: any): void; loginByJwt(jwtString: any): void; login(data: any): void; logout(): void; parseJwtCache(): boolean; validateJwtAndRequestUser(jwtString: string): boolean; setUserFromCache(): void; requestUser(): any; _setJwtData(jwtData: any): void; }