mcp-think-tank
Version:
Structured thinking and knowledge management tool for Model Context Protocol
38 lines • 1.24 kB
TypeScript
import { KnowledgeGraph } from './knowledgeGraph.js';
/**
* Class responsible for persisting the knowledge graph to disk
*/
export declare class GraphStorage {
private filePath;
private graph;
private isLoading;
private loadPromise;
/**
* Create a new GraphStorage instance
* @param filePath - Path to the storage file
* @param graph - Knowledge graph to persist
*/
constructor(filePath: string, graph: KnowledgeGraph);
/**
* Get the loading promise - useful for waiting until loading is complete
*/
getLoadingPromise(): Promise<void>;
/**
* Load the graph from the file (JSONL only) using streaming for better performance
* @returns Promise that resolves when loading is complete
*/
load(): Promise<void>;
/**
* Save the graph to the file in JSONL format
*/
save(): Promise<void>;
/**
* Log an operation for debugging
* @param operation - The operation being performed
* @param details - Details about the operation
*/
logOperation(_operation: string, _details: unknown): void;
}
export declare const graph: KnowledgeGraph;
export declare const graphStorage: GraphStorage;
//# sourceMappingURL=storage.d.ts.map