import express from 'express'; import { IncomingMessage, WebhookRequestPayload } from './types'; declare class WhatsappAPI { private accountPhoneNumberId; private accessToken; private expressApp?; private fbAppSecret?; private webhookRouter?; private webhookPort?; private webhookVerifyToken?; constructor(options: { accountPhoneNumberId: string; accessToken: string; webhook?: { expressApp?: express.Application; port?: number; fbAppSecret: string; verifyToken: string; }; }); initWebhook(callback: Function): void; parseIncomingMessage(payload: WebhookRequestPayload): IncomingMessage[]; private sendRequest; private extractMediaType; private uploadMedia; sendTextMessage(to: string, options: { message: string; preview_url?: boolean; }): Promise; sendMediaMessage(to: string, options: { external_link?: string; local_path?: string; caption?: string; filename?: string; }): Promise; } export default WhatsappAPI;