import { NotificationService } from './notification.service'; import { Http } from '@angular/http'; import { Observable } from 'rxjs'; import { SettingsStorageService } from './settings-storage.service'; import 'rxjs/add/operator/map'; /** * Service for managing JWT Auth Token from dotCMS Site/Host */ export declare class JWTAuthService { private http; private notificationService; private settingsStorageService; constructor(http: Http, notificationService: NotificationService, settingsStorageService: SettingsStorageService); /** * Will POST to the dotCMS to retrieve a dotCMS Auth Token * @param siteURL Site/Host of dotCMS * @param username * @param password * @returns {Observable} String return for the token */ getJWT(siteURL: string, username: string, password: string): Observable; /** * Will login and save the Auth Token to local storage * @param siteURL * @param username * @param password * @returns {Observable} */ login(siteURL: string, username: string, password: string): Observable; private doPostAuth(siteUrl, data); private extractJWT(res); private handleError(error); } export declare class DotJWTAuthModule { }