import { GenericAuth, Persistence, GenericUser } from "./auth"; import { GenericAuthProvider, CustomParameters, GenericUserCredential, NextOrObserver, OAuthCredential, OAuthCredentialOptions, GenericOAuthProvider, Unsubscribe, UserCredential, ProfileType, ActionCodeSettings, EmailAuthParamType, GenericAuthCredential } from "./auth.types"; import firebase from "firebase/compat/app"; export declare class CompatFirebaseAuth implements GenericAuth { private auth; constructor(auth: firebase.auth.Auth); newEmailAuthProvider(): GenericAuthProvider; newOAuthProvider(providerId: string): GenericOAuthProvider; signInWithPopup(provider: GenericAuthProvider): Promise>; signInWithRedirect(provider: GenericAuthProvider): Promise>; signOut(): Promise; get currentUser(): GenericUser | null; createUserWithEmailAndPassword(email: string, password: string): Promise>; signInWithEmailAndPassword(email: string, password: string): Promise>; onAuthStateChanged(nextOrObserver: NextOrObserver | null>): Unsubscribe; setPersistence(persistence: Persistence): Promise; applyActionCode(oobCode: string): Promise; sendPasswordResetEmail(email: string, actionCodeSettings?: ActionCodeSettings | undefined): Promise; } export declare class CompatFirebaseUser implements GenericUser { private user; constructor(user: firebase.User); reauthenticateWithCredential(credential: GenericAuthCredential): Promise>; sendEmailVerification(actionCodeSettings?: ActionCodeSettings | null | undefined): Promise; updateEmail(newEmail: string): Promise; updateProfile(profile: ProfileType): Promise; updatePassword(newPassword: string): Promise; get email(): string | null; get displayName(): string | null; get phoneNumber(): string | null; get photoURL(): string | null; get providerId(): string; get uid(): string; get emailVerified(): boolean; get isAnonymous(): boolean; delete(): Promise; getIdToken(forceRefresh?: boolean | undefined): Promise; reload(): Promise; toJSON(): object; } export declare class CompatOAuthProvider implements GenericOAuthProvider { handle: firebase.auth.OAuthProvider; providerId: string; constructor(providerId: string); credential(params: OAuthCredentialOptions): Promise>; addScope(scope: string): GenericAuthProvider; setCustomParameters(customOAuthParameters: CustomParameters): GenericAuthProvider; } export declare class CompatAuthCredential implements GenericAuthCredential { handle: firebase.auth.AuthCredential; constructor(handle: firebase.auth.AuthCredential); get providerId(): string; } //# sourceMappingURL=auth.compat.d.ts.map