import { ErrorCallback } from '../utils'; import { User } from './user'; import { AuthCredential } from './providers'; import { App } from '../app'; export declare class Auth { app: App; private _currentUser; private _authListenerId; private _authListeners; private _exec(success, error, action, args); readonly currentUser: User; applyActionCode(code: string): Promise; checkActionCode(code: string): Promise; createUserWithEmailAndPassword(email: string, password: string): Promise; fetchProvidersForEmail(email: string): Promise; onAuthStateChanged(callback: (user: User) => any, errorFn?: ErrorCallback, completeFn?: () => any): () => void; signInAnonymously(): Promise; signInWithCredential(credential: AuthCredential): Promise; signInWithCustomToken(token: string): Promise; signInWithEmailAndPassword(email: string, password: string): Promise; signOut(): Promise; sendPasswordResetEmail(email: string): Promise; verifyPasswordResetCode(code: string): Promise; confirmPasswordReset(code: string, newPassword: string): Promise; private _removeAuthStateListener(listenerId); private _attachAuthStateChangeListener(); private _detachAuthStateChangeListener(); } export interface ActionCodeInfo { data: { email: string; }; } export interface AuthStateListener { callback: (user: User) => any; errorFn?: ErrorCallback; completeFn?: () => any; } export * from './providers'; export * from './user'; export * from './user-info';