import { TokenPayload } from 'google-auth-library'; type GoogleIdTokenPayloadType = TokenPayload & { email: string; }; /** * Verifies a Google ID token and returns the email address if the token is valid and the email is authorized. * @param googleClientId - The client ID of the Google application. * @param idToken - The ID token to verify. * @returns The email address if the token is valid and the email is authorized, or null if not. */ declare function decodeGoogleIdToken(googleClientId: string, idToken: string): Promise; interface ParsedEmailAddressType { originalValue: string; username: string; domain: string; isValid: boolean; } declare function parseEmailAddress(email: string): ParsedEmailAddressType; export { GoogleIdTokenPayloadType, decodeGoogleIdToken, parseEmailAddress };