/**
 * Community detection via native Rust Louvain or vendored Leiden algorithm.
 * Maintains backward-compatible API: { assignments: Map<string, number>, modularity: number }
 *
 * Native path: classic Louvain (Rust, undirected modularity optimization).
 * JS fallback: Leiden algorithm via `detectClusters` (always undirected, `directed: false`).
 */
import type { CodeGraph } from '../model.js';
export interface LouvainOptions {
    resolution?: number;
    maxLevels?: number;
    maxLocalPasses?: number;
    refinementTheta?: number;
}
export interface LouvainResult {
    assignments: Map<string, number>;
    modularity: number;
}
export declare function louvainCommunities(graph: CodeGraph, opts?: LouvainOptions): LouvainResult;
//# sourceMappingURL=louvain.d.ts.map