import { S as StorageAdapter, A as AgentConfig, a as AgentData, T as ThreadConfig, b as ThreadData, M as MessageRole, c as MessageAttachment, d as MessageData } from '../index-BajTtLGW.js'; interface MongoDBStorageConfig { uri: string; dbName?: string; agentsCollection?: string; threadsCollection?: string; } /** * MongoDB Storage Adapter * Provides persistent storage for agents and threads using MongoDB */ declare class MongoDBStorage implements StorageAdapter { private client; private db; private config; constructor(config: MongoDBStorageConfig | string); private ensureConnection; disconnect(): Promise; createAgent(config: AgentConfig): Promise; getAgent(agentId: string): Promise; updateAgent(agentId: string, updates: Partial): Promise; deleteAgent(agentId: string): Promise; listAgents(userId: string, organizationId?: string): Promise; createThread(config: ThreadConfig): Promise; getThread(threadId: string): Promise; updateThread(threadId: string, updates: Partial): Promise; deleteThread(threadId: string): Promise; listThreads(filters: { userId?: string; agentId?: string; organizationId?: string; }): Promise; addMessage(threadId: string, role: MessageRole, content: string, attachments?: MessageAttachment[], metadata?: Record): Promise; getMessages(threadId: string, limit?: number): Promise; getConversationContext(threadId: string, maxMessages?: number): Promise>; private agentDocToData; private threadDocToData; } export { MongoDBStorage, type MongoDBStorageConfig };