Version: 1.0.01.0.11.0.41.0.51.0.61.0.71.0.81.0.91.1.01.2.02.0.02.0.12.1.02.1.12.2.03.0.04.0.04.0.14.0.24.0.34.0.44.0.54.0.64.1.04.1.14.1.24.1.34.1.44.2.04.2.15.0.05.0.15.1.05.2.05.2.15.3.05.4.05.4.15.4.25.4.35.5.05.5.15.6.05.7.05.8.05.8.15.8.25.9.05.9.15.10.05.11.05.12.05.12.15.13.05.13.16.0.06.1.06.2.06.3.06.4.06.5.06.5.17.0.07.1.07.1.17.2.07.3.07.4.08.0.08.1.08.2.08.3.08.4.08.5.08.6.08.6.18.7.08.8.08.9.08.9.18.9.28.10.08.11.08.12.08.12.18.13.09.0.09.1.09.1.19.2.09.3.09.4.09.4.19.4.29.5.09.6.09.7.09.8.09.9.09.10.09.11.09.11.19.12.09.100.0-alpha.09.100.0-alpha.110.0.010.0.110.0.210.1.010.2.010.3.011.0.011.0.111.1.011.2.011.2.111.3.011.4.011.4.111.5.011.6.011.7.011.8.011.9.011.10.011.10.111.11.011.11.112.0.012.1.012.1.112.2.012.3.012.3.112.4.012.5.012.6.012.7.013.0.013.0.1
/*! firebase-admin v10.0.0 */
/*!
* Copyright 2019 Google Inc.
*
* 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 { HttpError } from '../utils/api-request';
import { FirebaseMessagingError } from '../utils/error';
/**
* Creates a new FirebaseMessagingError by extracting the error code, message and other relevant
* details from an HTTP error response.
* @param err - The HttpError to convert into a Firebase error
* @returns A Firebase error that can be returned to the user.
export declare function createFirebaseError(err: HttpError): FirebaseMessagingError;
* @param response - The response to check for errors.
* @returns The error code if present; null otherwise.
export declare function getErrorCode(response: any): string | null;