import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"; import * as core from "../../../../core/index.js"; import * as Brevo from "../../../index.js"; export declare namespace TransactionalWhatsAppClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class TransactionalWhatsAppClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: TransactionalWhatsAppClient.Options); /** * You can use this API for WhatsApp only if you have setup your WhatsApp account on Brevo platform. To setup your WhatsApp account, follow the steps in the guide below. * [Activating Whatsapp](https://developers.brevo.com/docs/whatsapp-campaigns-1) in your account * This endpoint is used to send a WhatsApp message.
(**The first message you send using the API must contain a Template ID. You must create a template on WhatsApp on the Brevo platform to fetch the Template ID.**) * * @param {Brevo.SendWhatsappMessageRequest} request * @param {TransactionalWhatsAppClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Brevo.BadRequestError} * @throws {@link errors.BrevoError} * @throws {@link errors.BrevoTimeoutError} * * @example * await client.transactionalWhatsApp.sendWhatsappMessage({ * contactNumbers: ["contactNumbers"], * senderNumber: "senderNumber", * templateId: 123 * }) */ sendWhatsappMessage(request: Brevo.SendWhatsappMessageRequest, requestOptions?: TransactionalWhatsAppClient.RequestOptions): core.HttpResponsePromise; private __sendWhatsappMessage; /** * This endpoint will show the unaggregated statistics for WhatsApp activity (30 days by default if `startDate` and `endDate` or `days` is not passed. The date range can not exceed 90 days) * * @param {Brevo.GetWhatsappEventReportRequest} request * @param {TransactionalWhatsAppClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Brevo.BadRequestError} * @throws {@link errors.BrevoError} * @throws {@link errors.BrevoTimeoutError} * * @example * await client.transactionalWhatsApp.getWhatsappEventReport() */ getWhatsappEventReport(request?: Brevo.GetWhatsappEventReportRequest, requestOptions?: TransactionalWhatsAppClient.RequestOptions): core.HttpResponsePromise; private __getWhatsappEventReport; }