import { MemoryConfig, MemoryItem, Message, SearchFilters, SearchResult, ChatResult } from "../types"; import { AddMemoryOptions, SearchMemoryOptions, ChatMemoryOptions, DeleteAllMemoryOptions, GetAllMemoryOptions } from "./memory.types"; export declare class Memory { private config; private customPrompt; private embedder; private vectorStore; private llm; private db; constructor(config?: Partial); static fromConfig(configDict: Record): Memory; add(messages: string | Message[], config: AddMemoryOptions): Promise; private addInBatches; private addToVectorStore; get(memoryId: string): Promise; search(query: string, config: SearchMemoryOptions): Promise; chat(query: string, config: ChatMemoryOptions): Promise; private prepareChatContext; private buildChatPrompt; update(memoryId: string, data: string): Promise<{ message: string; }>; delete(memoryId: string): Promise<{ message: string; }>; deleteAll(config: DeleteAllMemoryOptions): Promise<{ message: string; }>; history(memoryId: string, options?: { userId?: string; runId?: string; }): Promise; getAllMessages(options?: { userId?: string; runId?: string; limit?: number; }): Promise; reset(): Promise; getAll(config: GetAllMemoryOptions): Promise; private createMemory; private updateMemory; private deleteMemory; addEntity(entityId: string, label: string, type: string, userId?: string, runId?: string): Promise; updateEntity(entityId: string, label: string, type: string, userId?: string, runId?: string): Promise; deleteEntity(entityId: string): Promise; getEntity(entityId: string): Promise; getAllEntities(options?: { userId?: string; runId?: string; }): Promise; associateMemoryWithEntities(memoryId: string, entityIds: string[]): Promise; getMemoryEntities(memoryId: string): Promise; private extractSearchOptionsFromChatOptions; private filterRelevantContext; naiveSearch(query: string, config: { userId?: string; agentId?: string; runId?: string; limit?: number; filters?: SearchFilters; }): Promise; naiveChat(query: string, config: { userId?: string; agentId?: string; runId?: string; limit?: number; filters?: SearchFilters; temperature?: number; maxTokens?: number; }): Promise; private prepareNaiveChatContext; private buildNaiveChatPrompt; }