/** * File-based memory system for storing project-specific information. * Stores human-readable markdown files in .glancey/memories/ */ /** * Memory entry metadata */ export interface MemoryInfo { name: string; size: number; lastModified: Date; } /** * Memory manager for storing and retrieving project memories. */ export declare class MemoryManager { private projectPath; private memoriesPath; constructor(projectPath: string); /** * Ensure the memories directory exists. */ private ensureDirectory; /** * Normalize a memory file name (ensure .md extension). */ private normalizeFileName; /** * Get the full path to a memory file. */ private getMemoryPath; /** * Write content to a memory file. */ writeMemory(name: string, content: string): Promise; /** * Read content from a memory file. */ readMemory(name: string): Promise; /** * List all memory files. */ listMemories(): Promise; /** * Delete a memory file. */ deleteMemory(name: string): Promise; /** * Edit a memory file using find/replace. */ editMemory(name: string, needle: string, replacement: string, mode: 'literal' | 'regex'): Promise<{ matchCount: number; }>; /** * Check if a memory exists. */ memoryExists(name: string): Promise; } /** * Format memory list for display. */ export declare function formatMemoryList(memories: MemoryInfo[]): string; //# sourceMappingURL=index.d.ts.map