import { Http } from '@angular/http'; import { Observable } from 'rxjs/Observable'; import { BehaviorSubject } from 'rxjs/BehaviorSubject'; import 'rxjs/add/operator/map'; import { LoginIframe } from '../utils/keycloak.utils.loginIframe'; import { Lock } from '../utils/keycloak.utils.singleton'; export declare class Keycloak { static lock: Lock; static config: any; static adapter: any; static resourceAccess: any; static callback_id: number; static loginIframe: LoginIframe; static callbackStorage: any; static timeSkew: number; static http: Http; static loginRequired: boolean; static tokenParsed: any; static idTokenParsed: any; static refreshTokenParsed: any; static accessToken: string; static idToken: string; static refreshToken: string; static tokenTimeoutHandle: any; static subject: string; static sessionId: string; static responseMode: string; static responseType: string; static flow: string; static clientId: string; static clientSecret: string; static authServerUrl: string; static realm: string; static realmAccess: any; static initializedBehaviourSubject: BehaviorSubject; static initializingBehaviourSubject: BehaviorSubject; static authenticatedBehaviourSubject: BehaviorSubject; static authSuccessBehaviourSubject: BehaviorSubject; static authErrorBehaviourSubject: BehaviorSubject; static tokenExpiredBehaviourSubject: BehaviorSubject; static initializedObs: Observable; static initializingObs: Observable; static authenticatedObs: Observable; static authSuccessObs: Observable; static authErrorObs: Observable; static tokenExpiredObs: Observable; static login(options: any): any; static logout(options: any): any; static updateToken(minValidity: number): Observable; static register(options: any): any; static accountManagement(options: any): any; static loadUserProfile(): Observable; static loadUserInfo(): Observable; static hasRealmRole(role: string): boolean; static hasResourceRole(role: string, resource: string): boolean; static isTokenExpired(minValidity: number): boolean; static isRefreshTokenExpired(minValidity: number): boolean; static clearToken(initOptions: any): void; static createLoginUrl(options: any): string; static createLogoutUrl(options: any): string; static createRegisterUrl(options: any): string; static createAccountUrl(options: any): string; static getRealmUrl(): string; static checkLoginIframe(): Observable; static processCallback(oauth: any): void; static setToken(accessToken: string, refreshToken: string, idToken: string, useTokenTime: boolean): void; static createCallbackId(): string; static parseCallback(url: string): any; constructor(); init(initOptions: any): void; private loadConfig(url); private processInit(initOptions); private setupCheckLoginIframe(); private loadAdapter(type); }