import type { FirebaseConfig } from './firebase-types.js'; import { FirebaseEdgeError } from './errors.js'; /** * Firebase Client Authentication handler for edge environments. * Provides client-side authentication operations using Firebase API. */ export declare class FirebaseAuth { private firebase_config; private requestUri; private tenantId?; private fetch?; /** * Creates a new Firebase Auth instance. * * @param firebase_config Firebase client configuration * @param requestUri OAuth callback URI * @param tenantId Optional tenant ID for multi-tenancy * @param fetch Optional custom fetch implementation */ constructor(firebase_config: FirebaseConfig, requestUri: string, tenantId?: string | undefined, fetch?: typeof globalThis.fetch | undefined); /** * Signs in a user with an OAuth provider token. * * @param oauthToken OAuth access token or ID token from the provider * @param providerId OAuth provider ID (defaults to 'google.com') * @returns Promise with object containing sign-in data or null, and error if any */ signInWithProvider(oauthToken: string, providerId?: string): Promise<{ data: null; error: FirebaseEdgeError; } | { data: import("./firebase-types.js").FirebaseIdpSignInResponse; error: null; }>; /** * Signs in a user with a custom Firebase authentication token. * * @param customToken Custom authentication token created by Firebase Admin SDK * @returns Promise with object containing sign-in data (idToken, refreshToken, expiresIn) or null, and error if any */ signInWithCustomToken(customToken: string): Promise<{ data: null; error: FirebaseEdgeError; } | { data: import("./firebase-types.js").FirebaseIdpSignInResponse; error: null; }>; /** * Links an OAuth credential to an existing user account. * * @param idToken Firebase ID token of the user to link * @param providerToken OAuth token from the provider to link * @param providerId OAuth provider ID (defaults to 'google.com') * @returns Promise with object containing linked account data or null, and error if any */ linkWithCredential(idToken: string, providerToken: string, providerId?: string): Promise<{ data: null; error: FirebaseEdgeError; } | { data: import("./firebase-types.js").FirebaseIdpSignInResponse; error: null; }>; } //# sourceMappingURL=firebase-auth.d.ts.map