import { GoogleUser, User } from '../types'; /** * Main Google Authentication function * This should be called from within the GoogleOAuthProvider context * @returns Promise with user information */ export declare function googleAuth(): Promise; /** * Fetches user information from Google using the access token * @param accessToken - The access token from Google OAuth * @returns Promise with user information */ export declare function fetchGoogleUserInfo(accessToken: string): Promise; /** * Validates if the Google Client ID is properly formatted * @param clientId - The Google OAuth Client ID * @returns boolean indicating if the client ID is valid */ export declare function validateGoogleClientId(clientId: string): boolean; /** * Stores user information in session storage (optional utility) * @param user - The user object */ export declare function storeUserSession(user: User): void; /** * Retrieves user information from session storage (optional utility) * @returns User object or null */ export declare function getUserSession(): User | null; /** * Clears user session from storage */ export declare function clearUserSession(): void; /** * Handles OAuth errors and provides user-friendly messages * @param error - The error object * @returns User-friendly error message */ export declare function handleAuthError(error: any): string; /** * Checks if the user is authenticated * @returns boolean indicating authentication status */ export declare function isAuthenticated(): boolean; /** * Exports the current user's basic info for logging/debugging * @param user - The Google user object * @returns Sanitized user info without sensitive data */ export declare function getSanitizedUserInfo(user: GoogleUser): { name: string; email: string; };