import { AttachmentType } from "../Attachments"; import { Index } from "../Types"; import { IndexCounts } from "../process/IndexCounts"; import { Message, MessageComplete } from "../process/Types"; import { BitStream } from "../serialization/BitStream"; import { MessageBitConfig } from "../serialization/MessageSerialization"; /** * This is an alternative to the `readMessage` function. It deserializes parts of a Message on demand, * being faster when only a few fields are needed. Perfect for computing aggregate blocks, where * each block may need only a few and different fields. */ export declare class MessageView implements Message { private readonly stream; private readonly bitConfig; guildIndex: Index; channelIndex: Index; readonly dayIndex: Index; readonly secondOfDay: number; readonly editedAfter?: number; readonly authorIndex: Index; readonly replyOffset?: number; readonly langIndex?: Index; readonly sentiment?: number; private readonly flags; private readonly wordsOffset; private readonly emojisOffset; private readonly attachmentsOffset; private readonly reactionsOffset; private readonly mentionsOffset; private readonly domainsOffset; get hasText(): boolean; get hasReply(): boolean; get hasEdits(): boolean; get hasWords(): boolean; get hasEmojis(): boolean; get hasAttachments(): boolean; get hasReactions(): boolean; get hasMentions(): boolean; get hasDomains(): boolean; constructor(stream: BitStream, bitConfig: MessageBitConfig); get words(): IndexCounts | undefined; get emojis(): IndexCounts | undefined; get attachments(): IndexCounts | undefined; get reactions(): IndexCounts | undefined; get mentions(): IndexCounts | undefined; get domains(): IndexCounts | undefined; get reply(): MessageView | undefined; getFullMessage(): MessageComplete; }