export interface Community {
    id: number;
    name: string;
    files: string[];
    symbol_count: number;
    internal_edges: number;
    external_edges: number;
    cohesion: number;
}
export interface CommunityResult {
    communities: Community[];
    modularity: number;
    total_files: number;
    algorithm: "louvain";
    resolution: number;
}
/**
 * Detect code communities using Louvain algorithm on the import graph.
 */
export declare function detectCommunities(repo: string, focus?: string, resolution?: number, outputFormat?: "json" | "mermaid"): Promise<CommunityResult | {
    mermaid: string;
}>;
//# sourceMappingURL=community-tools.d.ts.map