import type { MemoryGraphData, ConversationSummary, EmbeddingIndex, MemoryStore } from "./types.js"; import type { HostFiles } from "../../host/host.js"; import { type LogLevel } from "../../logger.js"; /** Where the files of a memory store live: the files part of the host * that enabled memory, and the memory directory as a root in it. */ export declare class FileMemoryStore implements MemoryStore { private files; private baseDir; /** Built once in the constructor from `logLevel`. Each line emitted * is `[memory]`-prefixed so it groups with the manager's output * when grepping. */ private logger; /** The memory directory as a root, resolved on first use. The * directory exists by then: `MemoryFrame` created it. */ private baseRoot; constructor(files: HostFiles, baseDir: string, logLevel?: LogLevel); private root; /** The path of a memory's file, relative to the memory directory. */ private file; /** The whole path of a memory's file, for a message. */ private describe; private ensureDir; private validate; private readJSON; private writeJSON; loadGraph(memoryId: string): Promise; saveGraph(memoryId: string, graph: MemoryGraphData): Promise; loadEmbeddings(memoryId: string): Promise; saveEmbeddings(memoryId: string, index: EmbeddingIndex): Promise; loadSummary(memoryId: string): Promise; saveSummary(memoryId: string, summary: ConversationSummary): Promise; }