/** * WhatsApp Adapter - Hermes-style WhatsApp platform adapter * * Features: * - WhatsApp Web protocol via Baileys * - QR code authentication * - Contact and group management * - Media messaging */ import { BaseAdapter, type PlatformConfig } from "./base.js"; export interface WhatsAppConfig extends PlatformConfig { platform: "whatsapp"; sessionPath?: string; printQr?: boolean; maxMessageLength?: number; } interface WhatsAppContact { id: string; name?: string; isGroup: boolean; } export declare class WhatsAppAdapter extends BaseAdapter { readonly platform: "whatsapp"; config: WhatsAppConfig; private sock; private connected; private qrCode; constructor(config: WhatsAppConfig); initialize(): Promise; private handleMessages; start(callbacks: any): Promise; private sleep; stop(): Promise; sendMessage(channelId: string, content: string): Promise; sendImage(channelId: string, imageUrl: string, caption?: string): Promise; sendReaction(channelId: string, messageId: string, emoji: string): Promise; reply(channelId: string, content: string, messageId: string): Promise; editMessage(channelId: string, messageId: string, content: string): Promise; deleteMessage(channelId: string, messageId: string): Promise; setTyping(channelId: string, isTyping: boolean): Promise; getStatus(): Promise<{ connected: boolean; latency?: number; }>; getContacts(): Promise; getContact(jid: string): Promise; getQrCode(): string | null; } export {};