import { AbstractTextMessage } from '../AbstractTextMessage.js'; import { Channels } from '../../enums/Channels.js'; import { RCSSettings } from '../../types/Channels/RCS/RCSParams.js'; import { RCSTextParams } from '../../types/Channels/RCS/RCSTextParams.js'; import { AnyRCSSuggestion } from '../../types/Channels/RCS/Suggestions/index.js'; import '../AbstractMessage.js'; import '../../enums/MessageTypes.js'; import '../../types/MessageParams.js'; import '../../types/MessageParamsText.js'; import '../../enums/RCS/RCSCategory.js'; import '../../types/Channels/RCS/Suggestions/RCSCreateCalendarEventSuggestionParams.js'; import '../../enums/RCS/RCSSuggestionType.js'; import '../../types/Channels/RCS/Suggestions/RCSSuggestionParams.js'; import '../../types/Channels/RCS/Suggestions/RCSDialActionSuggestionParams.js'; import '../../types/Channels/RCS/Suggestions/RCSOpenURLSuggestionParams.js'; import '../../types/Channels/RCS/Suggestions/RCSOpenURLWebviewSuggestionParams.js'; import '../../types/Channels/RCS/Suggestions/RCSReplySuggestionParams.js'; import '../../types/Channels/RCS/Suggestions/RCSShareLocationSuggestionParams.js'; import '../../types/Channels/RCS/Suggestions/RCSViewLocationSuggestionParams.js'; /** * Represents a text message for the RCS channel. * * @group RCS */ declare class RCSText extends AbstractTextMessage implements RCSTextParams { /** * The channel for this message (always 'rcs'). */ channel: Channels.RCS; /** * The duration in seconds the delivery of a message will be attempted. By * default Vonage attempts delivery for 72 hours, however the maximum effective * value depends on the operator and is typically 24 - 48 hours. We recommend * this value should be kept at its default or at least 30 minutes. */ ttl?: number; /** * An array of suggestion objects to include with the message. You can * include up to 11 suggestions per message. */ suggestions?: Array; /** * An object of optional settings for the RCS message. */ rcs?: RCSSettings; /** * Sends a text message through the RCS channel. * * @param {RCSTextParams} params - The parameters for creating a RCS text message. * * @example * ```ts * import { RCSText } from '@vonage/messages'; * * const { messageUUID } = await messagesClient.send(new RCSText({ * to: TO_NUMBER, * from: FROM_NUMBER, * text: 'Hello world', * clientRef: 'my-personal-reference', * })); * * console.log(`Message sent successfully with UUID ${messageUUID}`); * ``` */ constructor(params: Omit); } export { RCSText };