import type { GoogleSocialUser, SocialProvider } from './SocialProvider.js'; /** * Options for Google OAuth2 ID-token verification. */ export interface GoogleProviderOptions { /** * Expected Google OAuth client id for the token `aud` claim. */ readonly clientId: string; /** * Tokeninfo endpoint override, primarily for tests. */ readonly tokenInfoEndpoint?: string; /** * Fetch implementation override, primarily for tests. */ readonly fetch?: typeof globalThis.fetch; } /** * Verifies Google OAuth2 ID tokens and normalizes their tokeninfo payload. */ export declare class GoogleProvider implements SocialProvider { private readonly clientId; private readonly tokenInfoEndpoint; private readonly fetch; /** * @param options - Google provider verification options. */ constructor(options: GoogleProviderOptions); /** * @param idToken - Google-issued ID token. * @returns Normalized Google social user profile. * @throws UnauthorizedHttpException When the token is missing, rejected, or malformed. */ verify(idToken: string): Promise; private toSocialUser; } //# sourceMappingURL=GoogleProvider.d.ts.map