UNPKG

2.25 kBTypeScriptView Raw
1/**
2 * @license
3 * Copyright 2021 Google LLC
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17import { FirebaseApp } from '@firebase/app';
18import { Auth } from '../model/public_types';
19export declare function getAuth(app?: FirebaseApp): Auth;
20/** Reject with auth/operation-not-supported-in-this-environment */
21declare function fail(): Promise<void>;
22/**
23 * A class which will throw with
24 * auth/operation-not-supported-in-this-environment if instantiated
25 */
26declare class FailClass {
27 constructor();
28}
29export declare const browserLocalPersistence: import("../model/public_types").Persistence;
30export declare const browserSessionPersistence: import("../model/public_types").Persistence;
31export declare const indexedDBLocalPersistence: import("../model/public_types").Persistence;
32export declare const browserPopupRedirectResolver: import("@firebase/app").FirebaseError;
33export declare const PhoneAuthProvider: typeof FailClass;
34export declare const signInWithPhoneNumber: typeof fail;
35export declare const linkWithPhoneNumber: typeof fail;
36export declare const reauthenticateWithPhoneNumber: typeof fail;
37export declare const updatePhoneNumber: typeof fail;
38export declare const signInWithPopup: typeof fail;
39export declare const linkWithPopup: typeof fail;
40export declare const reauthenticateWithPopup: typeof fail;
41export declare const signInWithRedirect: typeof fail;
42export declare const linkWithRedirect: typeof fail;
43export declare const reauthenticateWithRedirect: typeof fail;
44export declare const getRedirectResult: typeof fail;
45export declare const RecaptchaVerifier: typeof FailClass;
46export declare class PhoneMultiFactorGenerator {
47 static assertion(): unknown;
48}
49export {};