import { Socket } from 'socket.io-client'; /** * Custom hook to handle chat socket connection. * @param isAdmin - Whether the user is an admin. * @param preview - Whether the chat is in preview mode. * @param postLocalStorage - Whether the chat is in an iframe. * @param dispatch - The dispatch function to update the chat state. * @param functions - Additional functions to emit events. */ declare const useChatSocket: ({ domain, isAdmin, preview, postLocalStorage, dispatch, setHasUnreadMessages, functions, setBotUser }: { domain?: string | undefined; isAdmin: boolean; preview: boolean; postLocalStorage: boolean | null; dispatch: any; setHasUnreadMessages: any; functions: any; setBotUser: any; }) => { chatSocket: Socket | null; isSocketConnected: boolean; emitTyping: () => void; emitMessage: (sentMessage: any, updateBotUserId: Function, updateChatId: Function, callback: Function) => void; emitBotUserData: (botUserData: any) => void; emitMessageBotUser: ({ message, prompt }: { message: any; prompt: any; }) => void; emitEditMessage: (message: any) => void; }; export default useChatSocket;