import { type MessageContent } from "@relaymessenger/sdk"; import { type Command } from "commander"; /** * The message flags every send command shares: each part the contract lets a * sender write (MessageContent in contracts/relay-v1-openapi.yaml), from flags * for the small ones and from JSON for the ones with structure. */ export interface MessagePartOptions { text?: string; ratingRequest?: boolean; mention?: string; media?: string[]; link?: string; button?: string[]; selection?: string; form?: string; richCard?: string; carousel?: string; place?: string; placeName?: string; placeAddress?: string; payment?: string; parts?: string; replyTo?: string; replyPartIndex?: number; } /** Adds the shared message flags to a send command. `--text` stays the first. */ export declare const messagePartOptions: (command: Command) => Command; /** * Builds the message a send command carries. The order is the order a person * reads: text first, then media, then the one interactive or rich part. The * server keeps the combination rules (a link or a payment is the only part; at * most one card or carousel); this only refuses what cannot be a message. */ export declare const messageContent: (options: MessagePartOptions, idempotencyKey?: string, silent?: boolean) => MessageContent; //# sourceMappingURL=message-parts.d.ts.map