/** * brain-memory — Community detection (Label Propagation Algorithm) * * Note: Community IDs (c-1, c-2, ...) are assigned by size after each detection. * If nodes are deleted/re-merged, the same thematic group may get a different ID. * This is inherent to LPA + size-based renaming (ISSUE 7.2). * * Authors: adoresever (graph-memory), brain-memory contributors */ import { type DatabaseSyncInstance } from "@photostructure/sqlite"; import type { CompleteFn } from "../engine/llm"; import type { EmbedFn } from "../engine/embed"; export interface CommunityResult { labels: Map; communities: Map; count: number; } export declare function detectCommunities(db: DatabaseSyncInstance, maxIter?: number): CommunityResult; export declare function getCommunityPeers(db: DatabaseSyncInstance, nodeId: string, limit?: number): string[]; export declare function communityRepresentatives(db: DatabaseSyncInstance, perCommunity?: number): any[]; export declare function summarizeCommunities(db: DatabaseSyncInstance, communities: Map, llm: CompleteFn, embedFn?: EmbedFn): Promise; //# sourceMappingURL=community.d.ts.map