import { EventTypes, LiveStudioParticipRole } from "@jealous-robot-dev/drophr-common"; import { MessengerMedia } from "../messenger"; export declare enum LiveStudioResponses { OK = "ok", JOIN_LATER = "join later", INVALID_URL = "invalid url", SESSION_ENDED = "session ended", NOT_ALLOWED = "User not allowed", ALREADY_JOINED = "User already joined" } export interface LiveStudioMessage { ts: number; key: string; text?: string; author: string; receiver: string; isUnread?: boolean; file?: MessengerMedia; } export interface LiveStudioConversation { unreads: number; thread: string; index: number; messages: LiveStudioMessage[]; } export interface LiveStudioParticipant { UID: string; ppu: string; username: string; lastname: string; firstname: string; role: LiveStudioParticipRole; } export interface LiveStudioClientData { listing: { id: string; pic: string; name: string; host: string; langs: string[]; type: EventTypes; session: { sid: string; end: number; start: number; duration: number; particips: LiveStudioParticipant[]; }; }; sdk: { signature: string; }; client: { UID: string; ppu: string; is_new: boolean; username: string; lastname: string; firstname: string; role: LiveStudioParticipRole; }; messenger: { unreads: number; conversations: LiveStudioConversation[]; }; }