export declare const MEMORY_INDEX_FILE = "MEMORY.md"; export declare class MemoryValidationError extends Error { readonly name = "MemoryValidationError"; } export declare const MEMORY_TYPES: readonly ["user", "feedback", "project", "reference"]; export type MemoryType = (typeof MEMORY_TYPES)[number]; export type MemoryIndexEntry = { file: string; description: string; }; export type Memory = { name: string; description: string; type?: MemoryType; body: string; }; export declare function memoryFileStem(name: string): string; export declare function loadMemoryIndex(dir: string): Promise; export declare function readMemory(dir: string, name: string): Promise; export declare function upsertMemory(dir: string, memory: Memory): Promise; export declare function removeMemory(dir: string, name: string): Promise;