import { BaseAuthService } from './base-auth.service'; import { CognitoConfiguration } from '../config/cognito-configuration'; import { AuthState } from '../model/AuthState'; import { RegisterProps } from '../model/RegisterProps'; import { IdpProvider } from '../model/IdpProvider'; import { AuthApiService } from './auth-api.service'; import { Observable, Subject } from 'rxjs'; export declare class CognitoAuthService implements BaseAuthService { private authApiService; private config; authState: AuthState; stateChangedObservable: Subject; constructor(authApiService: AuthApiService, config: CognitoConfiguration); private setCurrentState; private getAccessTokenFromSession; private getPayloadFromSession; private getCurrentSession; private getSocialSessionVerification; private getCurrentSessionVerification; private verifyCurrentSessionAndSetState; private verifyCurrentSessionAndSetStateAsPromise; private runHubListener; private afterRegister; forgotPassword(email: any): Promise; resetPassword(email: string, code: string, password: string): Promise; logout(): Promise; /** * Register a user into cognito and automatically log the user in * @param props */ register(props: RegisterProps): Promise; login(email: string, password: string): Promise; changePassword(old_password: string, new_password: string): Promise; changePasswordAsAdmin(new_password: string, user_id: number): Promise; authenticateFromExternalIdp(idpProvider: IdpProvider): Promise; listenToStateChanges(): Observable; isAuthenticated(): Observable; getAccessToken(): Observable; getUserProfileOfCurrentSession(cognitoSession: any): Promise; getUserProfile(): Promise; checkIfCognitoUserExist(): Promise; updateEmail(data: any): Promise; verifyUpdateEmail(data: any): Promise; } //# sourceMappingURL=cognito-auth.service.d.ts.map