/** * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. * * This source code is licensed under the license found in the * LICENSE file in the root directory of this source tree. */ import HttpsClient from './httpsClient'; import { HttpMethodsEnum } from './types/enums'; import { RequesterClass, GeneralHeaderInterface } from './types/requester'; export default class Requester implements RequesterClass { client: Readonly; accessToken: Readonly; phoneNumberId: Readonly; businessAcctId: Readonly; apiVersion: Readonly; userAgent: Readonly; host: Readonly; protocol: Readonly; port: Readonly; constructor(host: string, apiVersion: string, phoneNumberId: number, accessToken: string, businessAcctId: string, userAgent: string); buildHeader(contentType: string): GeneralHeaderInterface; buildCAPIPath(endpoint: string): string; sendCAPIRequest(method: HttpMethodsEnum, endpoint: string, timeout: number, body?: any): Promise; }