/**
 * Auto-Memory System
 *
 * Automatically extracts and stores memories from agent interactions.
 * Supports three scopes: user, project, and local.
 * Memories are stored in MEMORY.md files at scope-appropriate paths.
 */
export type MemoryScope = 'user' | 'project' | 'local';
export interface MemoryEntry {
    key: string;
    value: string;
    scope: MemoryScope;
    timestamp: number;
    source: 'agent' | 'user';
}
export declare class AutoMemoryManager {
    private projectDir;
    private memories;
    constructor(projectDir?: string);
    /**
     * Analyze context and response for potential memories to extract
     */
    analyzeForMemories(context: string, response: string): MemoryEntry[];
    /**
     * Write a memory entry to the appropriate MEMORY.md file
     */
    writeMemory(key: string, value: string, scope?: MemoryScope): void;
    /**
     * Search all scoped memory files for relevant entries
     */
    recallMemories(context: string): MemoryEntry[];
    /**
     * Get the file path for a given memory scope
     */
    getMemoryPath(scope: MemoryScope): string;
    /**
     * List all memories, optionally filtered by scope
     */
    listMemories(scope?: MemoryScope): MemoryEntry[];
    /**
     * Delete a memory entry by key and optional scope
     */
    deleteMemory(key: string, scope?: MemoryScope): boolean;
    /**
     * Get a summary of recalled memories count
     */
    getRecallSummary(): string;
    private loadAllMemories;
    private loadMemoryFile;
    private saveMemoryFile;
}
export declare function getAutoMemoryManager(projectDir?: string): AutoMemoryManager;
export declare function resetAutoMemory(): void;
