import { ThreadObject, MessageRole, MessagePart, MessageObject } from '../types/memory.js'; import { MemoryModule } from '../modules/memory/memory.module.js'; import '../modules/memory/base.memory.js'; import '../types/document.js'; import '../types/list.js'; import '../types/schedule.js'; declare function createTextMessage(role: MessageRole, content: string, metadata?: Record): MessageObject; declare function persistTextMessage(memoryModule: MemoryModule, userId: string, threadId: string, role: MessageRole, content: string, metadata?: Record): Promise; declare function appendTextMessageToThread(memoryModule: MemoryModule, thread: ThreadObject, role: MessageRole, content: string, metadata?: Record): Promise; /** * Creates a "rich" message mixing text and document-reference parts. * * Parts are rendered in order by the client. Document parts carry only a * `documentId` (and optional label `title`) — the body is resolved on demand. */ declare function createRichMessage(role: MessageRole, parts: MessagePart[], metadata?: Record): MessageObject; declare function appendRichMessageToThread(memoryModule: MemoryModule, thread: ThreadObject, role: MessageRole, parts: MessagePart[], metadata?: Record): Promise; export { appendRichMessageToThread, appendTextMessageToThread, createRichMessage, createTextMessage, persistTextMessage };