1 | /*! firebase-admin v12.0.0 */
|
2 | /*!
|
3 | * @license
|
4 | * Copyright 2021 Google Inc.
|
5 | *
|
6 | * Licensed under the Apache License, Version 2.0 (the "License");
|
7 | * you may not use this file except in compliance with the License.
|
8 | * You may obtain a copy of the License at
|
9 | *
|
10 | * http://www.apache.org/licenses/LICENSE-2.0
|
11 | *
|
12 | * Unless required by applicable law or agreed to in writing, software
|
13 | * distributed under the License is distributed on an "AS IS" BASIS,
|
14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15 | * See the License for the specific language governing permissions and
|
16 | * limitations under the License.
|
17 | */
|
18 | import { App } from '../app/index';
|
19 | /**
|
20 | * Class that provides mechanism to send requests to the FIS backend endpoints.
|
21 | */
|
22 | export declare class FirebaseInstallationsRequestHandler {
|
23 | private readonly app;
|
24 | private readonly host;
|
25 | private readonly timeout;
|
26 | private readonly httpClient;
|
27 | private path;
|
28 | /**
|
29 | * @param app - The app used to fetch access tokens to sign API requests.
|
30 | *
|
31 | * @constructor
|
32 | */
|
33 | constructor(app: App);
|
34 | deleteInstallation(fid: string): Promise<void>;
|
35 | /**
|
36 | * Invokes the request handler based on the API settings object passed.
|
37 | *
|
38 | * @param apiSettings - The API endpoint settings to apply to request and response.
|
39 | * @returns A promise that resolves when the request is complete.
|
40 | */
|
41 | private invokeRequestHandler;
|
42 | private getPathPrefix;
|
43 | }
|