import { Dialog } from './dialog'; import { Attachment } from '.'; import { Exportable } from './exportable'; export declare type ParseType = 'full' | 'none'; export declare class Message implements Exportable { text: string; token?: string; channel?: string; ts?: string; asUser?: boolean; iconEmoji?: string; iconUrl?: string; linkNames?: boolean; mrkdwn?: boolean; parse?: ParseType; replyBroadcast?: boolean; threadTs?: string; unfurlLinks?: boolean; unfurlMedia?: boolean; username?: string; triggerId?: string; dialog?: Dialog; attachments?: Attachment[]; constructor(text: string); export: Exportable['export']; updateText: (cb: (text: string) => string) => void; setToken: (value: string) => void; setChannel: (value: string) => void; setTs: (value: string) => void; setAsUser: (value: boolean) => void; setIconEmoji: (value: string) => void; setIconUrl: (value: string) => void; setLinkNames: (value: boolean) => void; setMrkdwn: (value: boolean) => void; setParse: (value: import("./chat").ParseType) => void; setReplyBroadcast: (value: boolean) => void; /** * @param value `'1234567890.123456'` */ setThreadTs: (value: string) => void; setUnfurlLinks: (value: boolean) => void; setUnfurlMedia: (value: boolean) => void; setUsername: (value: string) => void; setTriggerId: (value: string) => void; setDialog: (dialog: Dialog) => void; addAttachment: (attachment: Attachment<"text">) => void; }