// composables/chat-api.ts import { useChatbotStore } from "src/stores/chatbot-store"; import type { Message } from "src/modules/chatbot/models/dialogue-message.model"; export const useChatbotApi = () => { const chatStore = useChatbotStore(); const sendMessage = async (text: string): Promise => { return await chatStore.sendMessage(text); }; return { sendMessage }; };