import { MachineConfig } from "xstate"; import { Chat, ChatMessage, User } from "../types"; interface ChatSchema { states: { init: {}; getChatData: {}; getSystemToken: {}; closed: {}; failChat: {}; failToken: {}; start: { states: { websocket: { messageReceived: {}; customerMessage: {}; customerWaiting: {}; staffMessage: {}; staffWaiting: {}; }; ui: { start: {}; idle: {}; sending: {}; deleting: {}; msgPopupClicked: {}; }; }; }; }; } declare type MSG_POPUP_CLICK_EVT = { type: "MESSAGE_POPUP_CLICK"; data: { message: ChatMessage; buttonId: string; event: ChatEvent; }; }; export declare type ChatEvent = { type: "START"; data: Chat; } | { type: "MESSAGE"; data: ChatMessage; } | { type: "ON_MESSAGE"; data: ChatMessage; } | { type: "SEND_MESSAGE"; data: ChatMessage; } | { type: "DELETE_MESSAGE"; data: { eventId: string; }; } | { type: "CLOSE"; data: undefined; } | { type: "MESSAGE_CLICK"; data: ChatMessage; } | MSG_POPUP_CLICK_EVT | { type: "PLUGIN_CLICK"; pluginId: string; }; export interface ChatContext { me: User; msgStream: any; systemToken?: string; apClient: any; chat?: any; webSocketActor: any; } declare const DefaultMachine: MachineConfig; export default DefaultMachine; //# sourceMappingURL=chat.d.ts.map