export interface CodeNode {
    /** Relative path from project root. */
    filePath: string;
    /** Exported symbol names. */
    exports: string[];
    /** Relative paths this file imports from. */
    imports: string[];
    /** Size in bytes. */
    size: number;
    /** Last modified ISO timestamp. */
    lastModified: string;
    /** Is this a test file? */
    isTest: boolean;
}
export interface CodeEdge {
    from: string;
    to: string;
    type: 'imports' | 'tests' | 're_exports';
}
export interface RepoGraph {
    nodes: Map<string, CodeNode>;
    edges: CodeEdge[];
    built_at: string;
    root: string;
}
export interface ImpactAnalysis {
    /** Files directly affected. */
    direct: string[];
    /** Files transitively affected (importers of importers). */
    transitive: string[];
    /** Test files that should run. */
    affected_tests: string[];
    /** Risk score: 0-1 (based on how many files are affected). */
    risk_score: number;
}
export interface RepoSummary {
    total_files: number;
    total_edges: number;
    total_exports: number;
    test_files: number;
    most_imported: Array<{
        file: string;
        count: number;
    }>;
    most_complex: Array<{
        file: string;
        imports: number;
        exports: number;
    }>;
}
export declare function buildRepoGraph(projectDir: string, options?: {
    maxFiles?: number;
    ignoreDirs?: string[];
}): Promise<RepoGraph>;
/** Analyze which files are affected when the given files change. */
export declare function analyzeImpact(graph: RepoGraph, changedFiles: string[]): ImpactAnalysis;
export declare function summarizeRepo(graph: RepoGraph): RepoSummary;
export declare function saveRepoGraph(projectDir: string, graph: RepoGraph): Promise<void>;
export declare function loadRepoGraph(projectDir: string): Promise<RepoGraph | null>;
/** Generate a mermaid graph diagram showing top-level module clusters and key dependencies. */
export declare function generateArchitectureDiagram(graph: RepoGraph, maxNodes?: number): string;
//# sourceMappingURL=codeIntelligence.d.ts.map