export interface MemoryEntry { id: number; agentId: string; content: string; source: 'feedback' | 'auto' | 'manual'; importance: number; tags: string[] | null; active: boolean; createdAt: Date; } /** * Search memories using FTS5 full-text search. */ export declare function searchMemories(query: string, agentId?: string, limit?: number): MemoryEntry[]; /** * Get top memories for an agent, ranked by importance and recency. */ export declare function getAgentMemories(agentId: string, limit?: number, tags?: string[]): MemoryEntry[]; /** * Build a ZOOGENT_MEMORIES JSON string to inject into agent env. * Uses composite scoring: 0.4*recency + 0.3*frequency + 0.3*importance * Applies Ebbinghaus decay: memories lose relevance over time. */ export declare function buildMemoryInjection(agentId: string, maxItems?: number): string;