import { EventEmitter } from 'events'; import { BrainInsight, MeshNode, MeshKnowledge, MeshState, CrossSessionInsight, NeuralMeshConfig, BrainPersonality } from '../types.js'; export declare class NeuralMesh extends EventEmitter { private config; private nodeId; private sessionId; private projectDir; private projectName; private personality; private heartbeatTimer; private discoveryTimer; private cleanupTimer; private running; private insightsGenerated; private healthScore; private currentTask; private turboMemory; private ssspRouter; constructor(projectDir: string, personality?: BrainPersonality, config?: Partial); /** Connect this node to the neural mesh */ connect(): Promise; /** Disconnect from the mesh */ disconnect(): Promise; /** Broadcast an insight to all connected nodes */ broadcastInsight(insight: BrainInsight): void; /** Broadcast a health score update */ broadcastHealth(score: number): void; /** Broadcast current task description */ broadcastTask(task: string): void; /** Broadcast a learned pattern */ broadcastPattern(pattern: string, category: string): void; /** Get insights from other nodes that are relevant to this project */ getCrossSessionInsights(limit?: number): CrossSessionInsight[]; /** Get the current mesh state */ getMeshState(): MeshState; /** Get shared knowledge base */ getSharedKnowledge(limit?: number): MeshKnowledge[]; /** Get all connected nodes */ getConnectedNodes(): MeshNode[]; /** Get aggregated cross-project insights */ getAggregatedInsights(): { totalProjects: number; totalInsights: number; topCategories: Array<{ category: string; count: number; }>; crossProjectPatterns: Array<{ pattern: string; projects: number; }>; }; /** Add knowledge to the shared knowledge base */ addKnowledge(insight: BrainInsight): void; private broadcast; private sendHeartbeat; private discoverNodes; private discoverNodesSync; private writeNodeManifest; private loadRecentMessages; private loadAllKnowledge; private saveKnowledge; private classifyInsight; private getProjectContextTags; /** Cleanup stale messages and knowledge — v4.0.0: archive to TurboMemory */ private cleanup; /** v4.0.0: Rebuild SSSP routing graph from current mesh nodes */ private rebuildRoutingGraph; /** v4.0.0: Get optimal route to a target node via SSSP */ getRouteToNode(targetNodeId: string): string[]; /** v4.0.0: Get TurboMemory stats */ getTurboMemoryStats(): import("../types.js").InfiniteMemoryStats; getNodeId(): string; getSessionId(): string; isRunning(): boolean; } //# sourceMappingURL=neural-mesh.d.ts.map