import { type MemoryType } from "./frontmatter.js"; import { type MemoryEntry, type MemoryHeader } from "./scan.js"; export type SaveMemoryInput = { fileName: string; name: string; description: string; type: MemoryType; content: string; }; export type SaveMemoryResult = { filePath: string; fileName: string; unchanged: boolean; }; export type ListOptions = { sort?: "name" | "mtime"; }; export type MemoryStoreOptions = { claudeConfigDir: string; }; export declare class MemoryStore { readonly memoryRoot: string; readonly gitRoot: string | null; readonly canonicalRoot: string; readonly claudeConfigDir: string; readonly projectDir: string; readonly memoryDir: string; readonly entrypoint: string; readonly stateDir: string; constructor(memoryRoot: string, options: MemoryStoreOptions); scan(): MemoryHeader[]; manifest(): string; list(options?: ListOptions): MemoryEntry[]; read(fileName: string): MemoryEntry | null; save(input: SaveMemoryInput): SaveMemoryResult; delete(fileName: string): boolean; search(query: string): MemoryEntry[]; readIndex(): string; private writeIndex; private isUnchanged; }