export declare enum BroadcastAction { NEW_MESSAGE = "message:new", NEW_REACTION = "reaction:new" } export declare type ChannelId = string; export interface ChatpiPresence { isTyping: boolean; } export interface onPresenceChangeCb { (channelId: ChannelId, presences: ChatpiPresence): void; } export interface onMessageReceive { (channelId: ChannelId, messages: ChatpiPresence): void; } export interface MessageQuery { before: string; after: string; } export interface ConnectionConfig { url: string; apiKey: string; channelIds: Array; userToken: string; authorizationToken: string; onPresenceChange: onPresenceChangeCb; onMessageReceive: onMessageReceive; typingTimeout: number; messageQuery: MessageQuery; } export interface Reaction { userAuthkey: string; classifier: ReactionClassifier; } export interface Message { text: string; files: Array; replyTargetId: string; customDetails: any; reactions: Array; } export interface SendOptions { channelId: ChannelId; message: Message; } export declare enum ReactionClassifier { LAUGH = "LAUGH", CRY = "CRY", SMILE = "SMILE", LOVE = "LOVE", UNHAPPY = "UNHAPPY" } export interface SendReactionOptions { channelId: ChannelId; reactionTargetId: string; classifier: ReactionClassifier; }