UNPKG

@chatscope/use-chat

Version:

React hook for state management in chat applications

15 lines (14 loc) 560 B
import { ChatEventType } from "../enums"; import { ChatEvent } from "./ChatEvent"; import { UserId } from "../Types"; import { Presence } from "../Presence"; export interface UserPresenceChangedEventParams { readonly userId: UserId; readonly presence: Presence; } export declare class UserPresenceChangedEvent implements ChatEvent<ChatEventType.UserPresenceChanged> { readonly type = ChatEventType.UserPresenceChanged; readonly userId: UserId; readonly presence: Presence; constructor({ userId, presence }: UserPresenceChangedEvent); }