import { XboxMessage } from '..'; import { TextPart } from './Parts/TextPart'; import { VoicePart } from './Parts/VoicePart'; import { ImagePart } from './Parts/ImagePart'; import { UnknownPart } from './Parts/UnknownPart'; import { WeblinkPart } from './Parts/WeblinkPart'; import { FeedItemPart } from './Parts/FeedItemPart'; import { DirectMentionPart } from './Parts/DirectMentionPart'; import { WeblinkMediaPart } from './Parts/WeblinkMediaPart'; import { User } from './User'; import { APIMessage } from '../rest'; import { GatewayXboxMessageContentMessage } from '../ws'; type Part = TextPart | VoicePart | ImagePart | WeblinkPart | WeblinkMediaPart | FeedItemPart | DirectMentionPart | UnknownPart; /** * Represents a message in the XboxMessage system. */ export declare class Message { /** * The XboxMessage client. */ client: XboxMessage; /** * The unique identifier for the message. */ id: string; /** * The timestamp when the message was created. */ timestampCreated?: string; /** * The updated timestamp of the message. */ timestampUpdated?: string; /** * Indicates whether the message is deleted or not. */ isDeleted?: boolean; /** * An array of Part objects representing the different parts of a message. */ parts?: Part[]; /** * The content of the message. * It may be empty if no text parts was in the message * * @remarks * The `content` property represents the main text content of the message. * It can be a single string or multiple strings concatenated together. * If the message has no content, this property will be an empty string. */ content?: string; /** * The array of feed items in the message. * */ feedItems?: FeedItemPart[]; /** * Represents an attachment within a message, a message can only contain a single attachment with no other parts. */ attachment?: ImagePart; /** * Represents the voice part of a message. */ voice?: VoicePart; /** * The conversation ID of the message. */ conversationId: string; /** * The author ID of the message. */ userId: string; /** * The author of the message. */ user: User; constructor(client: XboxMessage, data: APIMessage); get conversation(): import("..").Conversation | undefined; _clone(): Message; _patch(data: APIMessage): void; static fromWebsocket(client: XboxMessage, data: GatewayXboxMessageContentMessage): Message; } export {};