import type { AbstractAgent } from "@ag-ui/client"; import type { AgentSession, ConversationStore } from "@copilotkit/channels-core"; import type { ThreadMessage } from "@copilotkit/channels-ui"; import type { HistoryStore } from "./history-store.js"; import type { ReplyTarget } from "./types.js"; /** * Adapter-owned conversation store. WhatsApp has no readable history, so we * rebuild each turn from a pluggable `HistoryStore` and set the agent's * `messages` from it. A fresh threadId per turn keeps stateless/agent-backend * runs from desyncing on accumulated internal (tool) messages — same approach * as `bot-slack`. */ export declare class WhatsAppConversationStore implements ConversationStore { readonly seedsInboundTurn = true; private readonly historyStore; constructor(args: { historyStore: HistoryStore; }); private newThreadId; getOrCreate(conversationKey: string, _replyTarget: ReplyTarget, makeAgent: (threadId: string) => AbstractAgent): Promise; /** Back `Thread.getMessages()` from stored history. */ getMessages(replyTarget: ReplyTarget): Promise; } //# sourceMappingURL=conversation-store.d.ts.map