import { MemoryEntry, WriteOptions } from "./types.js"; /** * Return the absolute path to the memory-bank directory. */ export declare function getMemoryBankDir(wsRoot: string): string; /** * Extract a title from a memory file path or body. */ export declare function generateSummary(body: string): string; /** * Read a memory entry from disk. * Supports both new files with YAML frontmatter and legacy plain MD files. * Tries the standard path (domain/path.md) first, then falls back to flat path (path.md) * for backward compatibility with existing memory-bank files at the root level. */ export declare function readMemory(wsRoot: string, uri: string): Promise; /** * Write a memory entry to disk with YAML frontmatter. */ export declare function writeMemory(wsRoot: string, uri: string, body: string, options?: WriteOptions): Promise; /** * Delete a memory file from disk. */ export declare function deleteMemory(wsRoot: string, uri: string): Promise; /** * Collect all .md files under memory-bank/, returning relative paths from memory-bank/. */ export declare function collectMemoryFiles(wsRoot: string): Promise;