export type MemoryGraphNodeType = 'memory' | 'project' | 'agent' | 'tag'; export type MemoryGraphEdgeType = 'belongs' | 'wrote' | 'tagged' | 'related'; export interface MemoryGraphNode { id: string; label: string; type: MemoryGraphNodeType; group: string; score: number; size: number; pagerank: number; degree: number; meta?: Record; } export interface MemoryGraphEdge { source: string; target: string; weight: number; type: MemoryGraphEdgeType; } export interface MemoryGraphStats { memories: number; projects: number; agents: number; tags: number; edges: number; totalConsidered: number; droppedNodes: number; } export interface MemoryGraphSnapshot { nodes: MemoryGraphNode[]; edges: MemoryGraphEdge[]; stats: MemoryGraphStats; projectScoped: boolean; generatedAt: Date; } export interface MemoryGraphBuildOptions { projectId?: string; limit?: number; minImportance?: number; maxNodes?: number; maxRelatedPerNode?: number; } export declare class MemoryGraph { /** Build a constellation snapshot from the current global brain. */ build(opts?: MemoryGraphBuildOptions): Promise; /** Standard PageRank with dangling-node handling. damping 0.85, eps 1e-4. */ private pageRank; } export declare function getMemoryGraph(): MemoryGraph; export declare function resetMemoryGraphForTests(): void; //# sourceMappingURL=memory-graph.d.ts.map