export interface ParsedWhatsAppMessage { messageType: 'text' | 'media' | 'reaction' | 'ephemeral' | 'unknown'; originalType: string; content: string; caption?: string; sender: { phone: string; name: string; isMe: boolean; jid: string; }; metadata: { timestamp: number; messageId: string; instanceKey: string; isGroup: boolean; groupId?: string; }; media?: { url: string; mimetype: string; mediaKey: string; directPath: string; type: 'image' | 'audio' | 'video' | 'document' | 'sticker'; fileName?: string; caption?: string; fileLength?: string; }; reaction?: { emoji: string; messageId: string; }; rawPayload?: any; } export declare function detectMessageType(payload: any): string; export declare function extractTextContent(payload: any): string; export declare function extractMediaContent(payload: any): ParsedWhatsAppMessage['media'] | undefined; export declare function extractMetadata(payload: any): ParsedWhatsAppMessage['metadata']; export declare function extractSender(payload: any): ParsedWhatsAppMessage['sender']; export declare function extractReaction(payload: any): ParsedWhatsAppMessage['reaction'] | undefined; export declare function parseWhatsAppMessage(payload: any, options?: any): ParsedWhatsAppMessage; export declare function isValidWhatsAppPayload(payload: any): boolean; export declare function mapMessageTypeToSimple(messageType: string): string;