UNPKG

1.5 kBTypeScriptView Raw
1/**
2 * @license
3 * Copyright 2020 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 { FactorId, MultiFactorInfo, PhoneMultiFactorInfo } from '../model/public_types';
18import { MfaEnrollment } from '../api/account_management/mfa';
19import { AuthInternal } from '../model/auth';
20export declare abstract class MultiFactorInfoImpl implements MultiFactorInfo {
21 readonly factorId: FactorId;
22 readonly uid: string;
23 readonly displayName?: string | null;
24 readonly enrollmentTime: string;
25 protected constructor(factorId: FactorId, response: MfaEnrollment);
26 static _fromServerResponse(auth: AuthInternal, enrollment: MfaEnrollment): MultiFactorInfoImpl;
27}
28export declare class PhoneMultiFactorInfoImpl extends MultiFactorInfoImpl implements PhoneMultiFactorInfo {
29 readonly phoneNumber: string;
30 private constructor();
31 static _fromServerResponse(_auth: AuthInternal, enrollment: MfaEnrollment): PhoneMultiFactorInfoImpl;
32}