import { ControlAction, WebcastChatMessage, WebcastEmoteChatMessage, WebcastEnvelopeMessage, WebcastGiftMessage, WebcastLikeMessage, WebcastLinkMicArmies, WebcastLinkMicBattle, WebcastLiveIntroMessage, WebcastMemberMessage, WebcastQuestionNewMessage, WebcastRoomUserSeqMessage, WebcastSocialMessage, WebcastSubNotifyMessage } from '../types/tiktok-schema'; import { RoomGiftInfo, RoomInfo, WebcastMessage } from '../types/client'; import TikTokWsClient from '../lib/ws/lib/ws-client'; export declare enum ControlEvent { CONNECTED = "connected", DISCONNECTED = "disconnected", ERROR = "error", RAW_DATA = "rawData", DECODED_DATA = "decodedData", WEBSOCKET_CONNECTED = "websocketConnected" } export declare enum WebcastEvent { CHAT = "chat", MEMBER = "member", GIFT = "gift", ROOM_USER = "roomUser", SOCIAL = "social", LIKE = "like", QUESTION_NEW = "questionNew", LINK_MIC_BATTLE = "linkMicBattle", LINK_MIC_ARMIES = "linkMicArmies", LIVE_INTRO = "liveIntro", EMOTE = "emote", ENVELOPE = "envelope", SUBSCRIBE = "subscribe", FOLLOW = "follow", SHARE = "share", STREAM_END = "streamEnd" } export declare enum ConnectState { DISCONNECTED = "DISCONNECTED", CONNECTING = "CONNECTING", CONNECTED = "CONNECTED" } export declare type EventHandler = (event: T) => void | Promise; export declare type EventMap = { [WebcastEvent.CHAT]: EventHandler; [WebcastEvent.MEMBER]: EventHandler; [WebcastEvent.GIFT]: EventHandler; [WebcastEvent.ROOM_USER]: EventHandler; [WebcastEvent.SOCIAL]: EventHandler; [WebcastEvent.LIKE]: EventHandler; [WebcastEvent.QUESTION_NEW]: EventHandler; [WebcastEvent.LINK_MIC_BATTLE]: EventHandler; [WebcastEvent.LINK_MIC_ARMIES]: EventHandler; [WebcastEvent.LIVE_INTRO]: EventHandler; [WebcastEvent.EMOTE]: EventHandler; [WebcastEvent.ENVELOPE]: EventHandler; [WebcastEvent.SUBSCRIBE]: EventHandler; [WebcastEvent.STREAM_END]: (event: { action: ControlAction; }) => void | Promise; [WebcastEvent.FOLLOW]: EventHandler; [WebcastEvent.SHARE]: EventHandler; [ControlEvent.CONNECTED]: EventHandler; [ControlEvent.DISCONNECTED]: EventHandler; [ControlEvent.ERROR]: EventHandler; [ControlEvent.RAW_DATA]: (type: string, data: Uint8Array) => void | Promise; [ControlEvent.DECODED_DATA]: (type: string, event: any, binary: Uint8Array) => void | Promise; [ControlEvent.WEBSOCKET_CONNECTED]: EventHandler; }; export declare const WebcastEventMap: Partial>; export declare type TikTokLiveConnectionState = { isConnected: boolean; roomId: string; roomInfo: RoomInfo | null; availableGifts: RoomGiftInfo | null; }; //# sourceMappingURL=events.d.ts.map