import { AbstractImageMessage } from '../AbstractImageMessage.js'; import { Channels } from '../../enums/Channels.js'; import { WhatsAppContext } from '../../types/Channels/WhatsApp/WhatsAppParams.js'; import { WhatsAppImageParams } from '../../types/Channels/WhatsApp/WhatsAppImageParams.js'; import '../AbstractMessage.js'; import '../../enums/MessageTypes.js'; import '../../types/MessageParams.js'; import '../../types/MessageParamsImage.js'; import '../../types/MessageImageType.js'; /** * Represents an image message for WhatsApp. * * @group WhatsApp */ declare class WhatsAppImage extends AbstractImageMessage implements WhatsAppImageParams { /** * The channel for this message (always 'whatsapp'). */ channel: Channels.WHATSAPP; context?: WhatsAppContext; /** * Send via MM Lite API only this is valid for marketing template messages * only, and for Alpha release only * * @deprecated */ category?: string; /** * Sends an image message to a WhatsApp user. * * @param {WhatsAppImageParams} params - The parameters for creating a WhatsApp image message. * @example * ```ts * import { WhatsAppImage } from '@vonage/messages'; * * const { messageUUID } = await messagesClient.send(new WhatsAppImage({ * to: TO_NUMBER, * from: FROM_NUMBER, * image: { * url: 'https://example.com/image.jpg', * caption: 'This is an image message', * }, * clientRef: 'my-personal-reference', * })); * * console.log(`Message sent successfully with UUID ${messageUUID}`); * ``` */ constructor(params: Omit); } export { WhatsAppImage };