import type { FirebaseCreateAuthUriResponse, FirebaseIdpSignInResponse, FirebaseRefreshTokenResponse, FirebaseUpdateAccountResponse, UserInfo } from './firebase-types.js'; import type { JsonWebKey } from 'crypto'; import type { FirebaseEdgeError } from './errors.js'; export declare function refreshFirebaseIdToken(refreshToken: string, key: string, fetchFn?: typeof globalThis.fetch): Promise<{ data: FirebaseRefreshTokenResponse | null; error: FirebaseEdgeError | null; }>; export declare function createAuthUri(redirect_uri: string, key: string, tenantId?: string, fetchFn?: typeof globalThis.fetch): Promise<{ data: FirebaseCreateAuthUriResponse | null; error: FirebaseEdgeError | null; }>; export declare function signInWithIdp(providerIdToken: string, requestUri: string, providerId: string | undefined, key: string, tenantId?: string, fetchFn?: typeof globalThis.fetch): Promise<{ data: FirebaseIdpSignInResponse | null; error: FirebaseEdgeError | null; }>; export declare function signInWithCustomToken(jwtToken: string, key: string, tenantId?: string, fetchFn?: typeof globalThis.fetch): Promise<{ data: FirebaseIdpSignInResponse | null; error: FirebaseEdgeError | null; }>; export declare function getAccountInfo(identifier: { uid: string; } | { email: string; } | { phoneNumber: string; }, token: string, project_id: string, tenantId?: string, fetchFn?: typeof globalThis.fetch): Promise<{ data: UserInfo | null | undefined; error: FirebaseEdgeError | null; }>; export declare function createSessionCookie(idToken: string, token: string, project_id: string, expiresIn_ms?: number, tenantId?: string, fetchFn?: typeof globalThis.fetch): Promise<{ data: string | null; error: FirebaseEdgeError | null; }>; export declare function getJWKs(fetchFn?: typeof globalThis.fetch): Promise<{ data: (JsonWebKey & { kid: string; })[] | null; error: FirebaseEdgeError | null; }>; export declare function getPublicKeys(fetchFn?: typeof globalThis.fetch): Promise<{ data: Record | null; error: FirebaseEdgeError | null; }>; export declare function sendOobCode(requestType: 'PASSWORD_RESET', key: string, options: { email: string; locale?: string; continueUrl?: string; }, tenantId?: string, fetchFn?: typeof globalThis.fetch): Promise<{ data: { email: string; } | null; error: FirebaseEdgeError | null; }>; export declare function sendOobCode(requestType: 'VERIFY_EMAIL', key: string, options: { idToken: string; locale?: string; continueUrl?: string; }, tenantId?: string, fetchFn?: typeof globalThis.fetch): Promise<{ data: { email: string; } | null; error: FirebaseEdgeError | null; }>; export declare function signInWithEmailLink(oobCode: string, email: string, key: string, idToken?: string, tenantId?: string, fetchFn?: typeof globalThis.fetch): Promise<{ data: FirebaseIdpSignInResponse | null; error: FirebaseEdgeError | null; }>; export declare function linkWithOAuthCredential(idToken: string, providerIdToken: string, requestUri: string, providerId: string, key: string, tenantId?: string, fetchFn?: typeof globalThis.fetch): Promise<{ data: FirebaseIdpSignInResponse | null; error: FirebaseEdgeError | null; }>; export declare function unlinkProvider(idToken: string, providerId: string, key: string, tenantId?: string, fetchFn?: typeof globalThis.fetch): Promise<{ data: FirebaseUpdateAccountResponse | null; error: FirebaseEdgeError | null; }>; //# sourceMappingURL=firebase-auth-endpoints.d.ts.map