/** * Minimal WhatsApp Cloud API client (fetch-based, zero deps). The OFFICIAL * Meta business path (not Baileys/QR) — REST out, webhook in — which is the * clean, scalable, fully-testable choice for a business line. */ export interface WhatsAppApiOptions { readonly accessToken: string; /** The WhatsApp Business phone-number id (from Meta), not the display number. */ readonly phoneNumberId: string; readonly fetch?: typeof fetch; readonly baseUrl?: string; readonly apiVersion?: string; } export declare class WhatsAppSendError extends Error { readonly acceptance: 'rejected' | 'unknown'; readonly code: string; constructor(message: string, acceptance: 'rejected' | 'unknown', code: string); } export declare class WhatsAppApi { private readonly base; private readonly token; private readonly doFetch; constructor(opts: WhatsAppApiOptions); sendText(to: string, body: string): Promise<{ id: string; }>; } //# sourceMappingURL=api.d.ts.map