/** * Chat Entrypoint * * This file is built as a separate bundle (chat.js) that can be * lazy-loaded when chat is enabled. * * Uses Ably for real-time messaging (imported directly in chat.ts). * * It exports: * - initChat: Factory function to create LazyLoadedChat */ import "@preact/signals"; import { type ChatConfig, type LazyLoadedChatInterface } from "../utils/globals"; import { LazyLoadedChat } from "../extensions/chat/chat"; import type { VTilt } from "../vtilt"; /** * Factory function to create a LazyLoadedChat instance * * Called by ChatWrapper after the chat script is loaded */ declare function initChat(instance: VTilt, config?: ChatConfig): LazyLoadedChatInterface; export { initChat, LazyLoadedChat }; export default initChat;