import { IndexData, IndexEntry } from "./types.js"; /** * Load the memory index from .index.yaml. * Returns an empty IndexData if the file doesn't exist or is invalid. */ export declare function loadIndex(wsRoot: string): Promise; /** * Save the memory index to .index.yaml. */ export declare function saveIndex(wsRoot: string, data: IndexData): Promise; /** * Update or insert a single entry in the index. */ export declare function updateIndex(wsRoot: string, uri: string, entry: IndexEntry): Promise; /** * Remove an entry from the index. */ export declare function removeFromIndex(wsRoot: string, uri: string): Promise; /** * Rebuild the entire index by scanning all MD files in memory-bank/. * For existing files without frontmatter, it auto-generates metadata * and writes updated frontmatter back with the 'updated' timestamp. */ export declare function rebuildIndex(wsRoot: string): Promise;