import { BaseMessageOptions } from './base.js'; interface ContactMessageResponse { key: { remoteJid: string; fromMe?: boolean; id: string; }; message: { contactMessage?: { displayName: string; vcard: string; contextInfo?: Record; }; contactsArrayMessage?: { contacts: { displayName: string; vcard: string; }[]; }; }; messageTimestamp: string | number | Date; status?: string; } interface Contact { /** * Contact display name */ fullName?: string; /** * Contact phone number */ phoneNumber: string; /** * Contact organization */ organization?: string; /** * Contact email */ email?: string; /** * Contact website url */ url?: string; } type ContactMessageContact = Omit & { /** * Contact display name */ fullName?: string; /** * WhatsApp user id (JID or WUID) */ wuid: string; }; interface ContactMessageOptions extends BaseMessageOptions { /** * Contact list */ contact: [ContactMessageContact, ...ContactMessageContact[]]; } export type { Contact, ContactMessageContact, ContactMessageOptions, ContactMessageResponse };