/** * WhatsApp Adapter — Uses @whiskeysockets/baileys for WhatsApp Web. * * Auth: QR Code scan (generates auth state files on disk) * Mode: WebSocket (persistent connection to WhatsApp servers) * Note: This uses the unofficial WhatsApp Web API — use responsibly. */ import { MessageBuffer } from '../buffer.js'; import type { ChannelAdapter, ChannelInfo, ChannelMessage, ChannelState, HistoryOptions, Platform, SendOptions, SendResult } from '../adapter.js'; export declare class WhatsAppAdapter implements ChannelAdapter { readonly platform: Platform; state: ChannelState; readonly buffer: MessageBuffer; private sock; private authDir; private knownChats; private reconnectAttempts; private static readonly MAX_RECONNECT; /** Last raw QR code string from Baileys (WhatsApp pairing URI, not an image) */ lastQrCode: string | null; /** Whether this adapter needs QR scanning (no saved auth state) */ needsQrScan: boolean; constructor(authDir: string, bufferSize?: number); connect(): Promise; disconnect(): Promise; send(options: SendOptions): Promise; getHistory(options: HistoryOptions): Promise; listChannels(): Promise; isHealthy(): Promise; } //# sourceMappingURL=whatsapp.d.ts.map