import { FirebaseService } from './firebase.service'; import { AngularFireAuth } from '@angular/fire/auth'; import { Observable } from 'rxjs'; import { DebugService } from '../debug/debug.service'; export interface AuthState { user: AppUser; token: string; authenticated: boolean; } export interface AppUser { isAnonymous: boolean; name: string; given_name: string; email: string; emailVerified: boolean; photoURL: string; uid: string; isNewUser: boolean; } export declare class AuthService { private debugService; private fireAuth; private firebaseService; /** App current user stream */ private user; /** App global auth state */ private authenticated; constructor(debugService: DebugService, fireAuth: AngularFireAuth, firebaseService: FirebaseService); /** * Realiza un login de firebase con los datos dels formulario * @param formValues must contain {email, password} */ Login(formValues: any): Observable; /** Realiza el login mediante la cuenta de gmail google */ GoogleLogin(): Promise; /** Returns global app auth value */ isAuthenticated(): boolean; /** Returns app user stream */ getUser(): Observable; }