import { StreamChat } from './client'; import { DefaultGenerics, ExtendableGenerics, MessageResponse, ThreadResponse, ChannelResponse, FormatMessageResponse, ReactionResponse, UserResponse } from './types'; declare type ThreadReadStatus = Record; }>; export declare class Thread { id: string; latestReplies: FormatMessageResponse[]; participants: ThreadResponse['thread_participants']; message: FormatMessageResponse; channel: ChannelResponse; _channel: ReturnType['channel']>; replyCount: number; _client: StreamChat; read: ThreadReadStatus; constructor(client: StreamChat, t: ThreadResponse); getClient(): StreamChat; /** * addReply - Adds or updates a latestReplies to the thread * * @param {MessageResponse} message reply message to be added. */ addReply(message: MessageResponse): void; updateReply(message: MessageResponse): void; updateMessageOrReplyIfExists(message: MessageResponse): void; addReaction(reaction: ReactionResponse, message?: MessageResponse, enforce_unique?: boolean): void; removeReaction(reaction: ReactionResponse, message?: MessageResponse): void; } export {}; //# sourceMappingURL=thread.d.ts.map