summaryrefslogtreecommitdiff
path: root/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user
diff options
context:
space:
mode:
Diffstat (limited to 'frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user')
-rw-r--r--frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/account_info.d.ts68
-rw-r--r--frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/additional_user_info.d.ts31
-rw-r--r--frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/id_token_result.d.ts48
-rw-r--r--frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/invalidation.d.ts18
-rw-r--r--frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/link_unlink.d.ts30
-rw-r--r--frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/proactive_refresh.d.ts34
-rw-r--r--frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/reauthenticate.d.ts20
-rw-r--r--frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/reload.d.ts29
-rw-r--r--frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/token_manager.d.ts50
-rw-r--r--frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/user_credential_impl.d.ts37
-rw-r--r--frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/user_impl.d.ts74
-rw-r--r--frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/user_metadata.d.ts27
12 files changed, 466 insertions, 0 deletions
diff --git a/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/account_info.d.ts b/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/account_info.d.ts
new file mode 100644
index 0000000..312e23c
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/account_info.d.ts
@@ -0,0 +1,68 @@
+/**
+ * @license
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { User } from '../../model/public_types';
+/**
+ * Updates a user's profile data.
+ *
+ * @param user - The user.
+ * @param profile - The profile's `displayName` and `photoURL` to update.
+ *
+ * @public
+ */
+export declare function updateProfile(user: User, { displayName, photoURL: photoUrl }: {
+ displayName?: string | null;
+ photoURL?: string | null;
+}): Promise<void>;
+/**
+ * Updates the user's email address.
+ *
+ * @remarks
+ * An email will be sent to the original email address (if it was set) that allows to revoke the
+ * email address change, in order to protect them from account hijacking.
+ *
+ * This method is not supported on any {@link User} signed in by {@link Auth} instances
+ * created with a {@link @firebase/app#FirebaseServerApp}.
+ *
+ * Important: this is a security sensitive operation that requires the user to have recently signed
+ * in. If this requirement isn't met, ask the user to authenticate again and then call
+ * {@link reauthenticateWithCredential}.
+ *
+ * @param user - The user.
+ * @param newEmail - The new email address.
+ *
+ * Throws "auth/operation-not-allowed" error when
+ * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection}
+ * is enabled.
+ * Deprecated - Use {@link verifyBeforeUpdateEmail} instead.
+ *
+ * @public
+ */
+export declare function updateEmail(user: User, newEmail: string): Promise<void>;
+/**
+ * Updates the user's password.
+ *
+ * @remarks
+ * Important: this is a security sensitive operation that requires the user to have recently signed
+ * in. If this requirement isn't met, ask the user to authenticate again and then call
+ * {@link reauthenticateWithCredential}.
+ *
+ * @param user - The user.
+ * @param newPassword - The new password.
+ *
+ * @public
+ */
+export declare function updatePassword(user: User, newPassword: string): Promise<void>;
diff --git a/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/additional_user_info.d.ts b/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/additional_user_info.d.ts
new file mode 100644
index 0000000..d5fd65b
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/additional_user_info.d.ts
@@ -0,0 +1,31 @@
+/**
+ * @license
+ * Copyright 2019 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { AdditionalUserInfo, UserCredential } from '../../model/public_types';
+import { IdTokenResponse } from '../../model/id_token';
+/**
+ * Parse the `AdditionalUserInfo` from the ID token response.
+ *
+ */
+export declare function _fromIdTokenResponse(idTokenResponse?: IdTokenResponse): AdditionalUserInfo | null;
+/**
+ * Extracts provider specific {@link AdditionalUserInfo} for the given credential.
+ *
+ * @param userCredential - The user credential.
+ *
+ * @public
+ */
+export declare function getAdditionalUserInfo(userCredential: UserCredential): AdditionalUserInfo | null;
diff --git a/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/id_token_result.d.ts b/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/id_token_result.d.ts
new file mode 100644
index 0000000..c1b2032
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/id_token_result.d.ts
@@ -0,0 +1,48 @@
+/**
+ * @license
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { IdTokenResult, ParsedToken, User } from '../../model/public_types';
+/**
+ * Returns a JSON Web Token (JWT) used to identify the user to a Firebase service.
+ *
+ * @remarks
+ * Returns the current token if it has not expired or if it will not expire in the next five
+ * minutes. Otherwise, this will refresh the token and return a new one.
+ *
+ * @param user - The user.
+ * @param forceRefresh - Force refresh regardless of token expiration.
+ *
+ * @public
+ */
+export declare function getIdToken(user: User, forceRefresh?: boolean): Promise<string>;
+/**
+ * Returns a deserialized JSON Web Token (JWT) used to identify the user to a Firebase service.
+ *
+ * @remarks
+ * Returns the current token if it has not expired or if it will not expire in the next five
+ * minutes. Otherwise, this will refresh the token and return a new one.
+ *
+ * @param user - The user.
+ * @param forceRefresh - Force refresh regardless of token expiration.
+ *
+ * @public
+ */
+export declare function getIdTokenResult(user: User, forceRefresh?: boolean): Promise<IdTokenResult>;
+export declare function _parseToken(token: string): ParsedToken | null;
+/**
+ * Extract expiresIn TTL from a token by subtracting the expiration from the issuance.
+ */
+export declare function _tokenExpiresIn(token: string): number;
diff --git a/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/invalidation.d.ts b/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/invalidation.d.ts
new file mode 100644
index 0000000..81446ea
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/invalidation.d.ts
@@ -0,0 +1,18 @@
+/**
+ * @license
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { UserInternal } from '../../model/user';
+export declare function _logoutIfInvalidated<T>(user: UserInternal, promise: Promise<T>, bypassAuthState?: boolean): Promise<T>;
diff --git a/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/link_unlink.d.ts b/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/link_unlink.d.ts
new file mode 100644
index 0000000..9408524
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/link_unlink.d.ts
@@ -0,0 +1,30 @@
+/**
+ * @license
+ * Copyright 2019 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { User } from '../../model/public_types';
+import { UserInternal, UserCredentialInternal } from '../../model/user';
+import { AuthCredential } from '../credentials';
+/**
+ * Unlinks a provider from a user account.
+ *
+ * @param user - The user.
+ * @param providerId - The provider to unlink.
+ *
+ * @public
+ */
+export declare function unlink(user: User, providerId: string): Promise<User>;
+export declare function _link(user: UserInternal, credential: AuthCredential, bypassAuthState?: boolean): Promise<UserCredentialInternal>;
+export declare function _assertLinkedStatus(expected: boolean, user: UserInternal, provider: string): Promise<void>;
diff --git a/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/proactive_refresh.d.ts b/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/proactive_refresh.d.ts
new file mode 100644
index 0000000..ff52286
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/proactive_refresh.d.ts
@@ -0,0 +1,34 @@
+/**
+ * @license
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { UserInternal } from '../../model/user';
+export declare const enum Duration {
+ OFFSET = 300000,
+ RETRY_BACKOFF_MIN = 30000,
+ RETRY_BACKOFF_MAX = 960000
+}
+export declare class ProactiveRefresh {
+ private readonly user;
+ private isRunning;
+ private timerId;
+ private errorBackoff;
+ constructor(user: UserInternal);
+ _start(): void;
+ _stop(): void;
+ private getInterval;
+ private schedule;
+ private iteration;
+}
diff --git a/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/reauthenticate.d.ts b/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/reauthenticate.d.ts
new file mode 100644
index 0000000..1855132
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/reauthenticate.d.ts
@@ -0,0 +1,20 @@
+/**
+ * @license
+ * Copyright 2019 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { UserInternal } from '../../model/user';
+import { AuthCredential } from '../credentials';
+import { UserCredentialImpl } from './user_credential_impl';
+export declare function _reauthenticate(user: UserInternal, credential: AuthCredential, bypassAuthState?: boolean): Promise<UserCredentialImpl>;
diff --git a/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/reload.d.ts b/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/reload.d.ts
new file mode 100644
index 0000000..f2690fa
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/reload.d.ts
@@ -0,0 +1,29 @@
+/**
+ * @license
+ * Copyright 2019 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { User, UserInfo } from '../../model/public_types';
+import { ProviderUserInfo } from '../../api/account_management/account';
+import { UserInternal } from '../../model/user';
+export declare function _reloadWithoutSaving(user: UserInternal): Promise<void>;
+/**
+ * Reloads user account data, if signed in.
+ *
+ * @param user - The user.
+ *
+ * @public
+ */
+export declare function reload(user: User): Promise<void>;
+export declare function extractProviderData(providers: ProviderUserInfo[]): UserInfo[];
diff --git a/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/token_manager.d.ts b/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/token_manager.d.ts
new file mode 100644
index 0000000..790e283
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/token_manager.d.ts
@@ -0,0 +1,50 @@
+/**
+ * @license
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { FinalizeMfaResponse } from '../../api/authentication/mfa';
+import { AuthInternal } from '../../model/auth';
+import { IdTokenResponse } from '../../model/id_token';
+import { PersistedBlob } from '../persistence';
+/**
+ * The number of milliseconds before the official expiration time of a token
+ * to refresh that token, to provide a buffer for RPCs to complete.
+ */
+export declare const enum Buffer {
+ TOKEN_REFRESH = 30000
+}
+/**
+ * We need to mark this class as internal explicitly to exclude it in the public typings, because
+ * it references AuthInternal which has a circular dependency with UserInternal.
+ *
+ * @internal
+ */
+export declare class StsTokenManager {
+ refreshToken: string | null;
+ accessToken: string | null;
+ expirationTime: number | null;
+ get isExpired(): boolean;
+ updateFromServerResponse(response: IdTokenResponse | FinalizeMfaResponse): void;
+ updateFromIdToken(idToken: string): void;
+ getToken(auth: AuthInternal, forceRefresh?: boolean): Promise<string | null>;
+ clearRefreshToken(): void;
+ private refresh;
+ private updateTokensAndExpiration;
+ static fromJSON(appName: string, object: PersistedBlob): StsTokenManager;
+ toJSON(): object;
+ _assign(stsTokenManager: StsTokenManager): void;
+ _clone(): StsTokenManager;
+ _performRefresh(): never;
+}
diff --git a/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/user_credential_impl.d.ts b/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/user_credential_impl.d.ts
new file mode 100644
index 0000000..44ece34
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/user_credential_impl.d.ts
@@ -0,0 +1,37 @@
+/**
+ * @license
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { PhoneOrOauthTokenResponse } from '../../api/authentication/mfa';
+import { IdTokenResponse } from '../../model/id_token';
+import { UserInternal, UserCredentialInternal } from '../../model/user';
+import { AuthInternal } from '../../model/auth';
+import { OperationType, ProviderId } from '../../model/enums';
+interface UserCredentialParams {
+ readonly user: UserInternal;
+ readonly providerId: ProviderId | string | null;
+ readonly _tokenResponse?: PhoneOrOauthTokenResponse;
+ readonly operationType: OperationType;
+}
+export declare class UserCredentialImpl implements UserCredentialInternal, UserCredentialParams {
+ readonly user: UserInternal;
+ readonly providerId: ProviderId | string | null;
+ readonly _tokenResponse: PhoneOrOauthTokenResponse | undefined;
+ readonly operationType: OperationType;
+ constructor(params: UserCredentialParams);
+ static _fromIdTokenResponse(auth: AuthInternal, operationType: OperationType, idTokenResponse: IdTokenResponse, isAnonymous?: boolean): Promise<UserCredentialInternal>;
+ static _forOperation(user: UserInternal, operationType: OperationType, response: PhoneOrOauthTokenResponse): Promise<UserCredentialImpl>;
+}
+export {};
diff --git a/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/user_impl.d.ts b/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/user_impl.d.ts
new file mode 100644
index 0000000..f795111
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/user_impl.d.ts
@@ -0,0 +1,74 @@
+/**
+ * @license
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { IdTokenResult } from '../../model/public_types';
+import { NextFn } from '@firebase/util';
+import { APIUserInfo, GetAccountInfoResponse } from '../../api/account_management/account';
+import { FinalizeMfaResponse } from '../../api/authentication/mfa';
+import { AuthInternal } from '../../model/auth';
+import { IdTokenResponse } from '../../model/id_token';
+import { MutableUserInfo, UserInternal, UserParameters } from '../../model/user';
+import { PersistedBlob } from '../persistence';
+import { StsTokenManager } from './token_manager';
+import { UserMetadata } from './user_metadata';
+import { ProviderId } from '../../model/enums';
+export declare class UserImpl implements UserInternal {
+ readonly providerId = ProviderId.FIREBASE;
+ stsTokenManager: StsTokenManager;
+ private accessToken;
+ uid: string;
+ auth: AuthInternal;
+ emailVerified: boolean;
+ isAnonymous: boolean;
+ tenantId: string | null;
+ readonly metadata: UserMetadata;
+ providerData: MutableUserInfo[];
+ displayName: string | null;
+ email: string | null;
+ phoneNumber: string | null;
+ photoURL: string | null;
+ _redirectEventId?: string;
+ private readonly proactiveRefresh;
+ constructor({ uid, auth, stsTokenManager, ...opt }: UserParameters);
+ getIdToken(forceRefresh?: boolean): Promise<string>;
+ getIdTokenResult(forceRefresh?: boolean): Promise<IdTokenResult>;
+ reload(): Promise<void>;
+ private reloadUserInfo;
+ private reloadListener;
+ _assign(user: UserInternal): void;
+ _clone(auth: AuthInternal): UserInternal;
+ _onReload(callback: NextFn<APIUserInfo>): void;
+ _notifyReloadListener(userInfo: APIUserInfo): void;
+ _startProactiveRefresh(): void;
+ _stopProactiveRefresh(): void;
+ _updateTokensIfNecessary(response: IdTokenResponse | FinalizeMfaResponse, reload?: boolean): Promise<void>;
+ delete(): Promise<void>;
+ toJSON(): PersistedBlob;
+ get refreshToken(): string;
+ static _fromJSON(auth: AuthInternal, object: PersistedBlob): UserInternal;
+ /**
+ * Initialize a User from an idToken server response
+ * @param auth
+ * @param idTokenResponse
+ */
+ static _fromIdTokenResponse(auth: AuthInternal, idTokenResponse: IdTokenResponse, isAnonymous?: boolean): Promise<UserInternal>;
+ /**
+ * Initialize a User from an idToken server response
+ * @param auth
+ * @param idTokenResponse
+ */
+ static _fromGetAccountInfoResponse(auth: AuthInternal, response: GetAccountInfoResponse, idToken: string): Promise<UserInternal>;
+}
diff --git a/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/user_metadata.d.ts b/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/user_metadata.d.ts
new file mode 100644
index 0000000..c732ce3
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/auth/dist/rn/src/core/user/user_metadata.d.ts
@@ -0,0 +1,27 @@
+/**
+ * @license
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { UserMetadata as UserMetadataType } from '../../model/public_types';
+export declare class UserMetadata implements UserMetadataType {
+ private createdAt?;
+ private lastLoginAt?;
+ creationTime?: string;
+ lastSignInTime?: string;
+ constructor(createdAt?: (string | number) | undefined, lastLoginAt?: (string | number) | undefined);
+ private _initializeTime;
+ _copy(metadata: UserMetadata): void;
+ toJSON(): object;
+}