import AuthProvider from "../../auth/AbstractAuth"; import User from "../../local-models/user/UserProfile"; import { LocalStorageAuthObject } from "../../types/other"; declare class CredentialsAuth extends AuthProvider { static userProfile: any | null; constructor(); /** * Gets auth object from local storage */ getAuthObjectFromLocalStorage(): LocalStorageAuthObject | null; /** * Checks if there is a session stored in local storage. * @returns {boolean} - True if a session exists, false otherwise. */ checkSessionExists(): Promise; /** * Clears the session from local storage. */ clearSession(): void; /** * Initiates the login process for a Google user. This includes loading the GSI script, initializing the * OAuth client, and exchanging the auth code for tokens through a backend lambda function. * @returns {Promise} - A promise that resolves to true if login is successful. */ login(email: string, pw: string): Promise; storeTokens(email: string, pw: string): void; /** * Logs out the Google user by revoking the access token and clearing stored token information. * @returns {Promise} - A promise that resolves when the logout process is complete. */ logout(): Promise; getUserProfileAfterConnection(): Promise; } export { CredentialsAuth };