/** * Dependency graph for import tracking and cache invalidation. * Computes depsHash for transform cache keys. */ export declare class DependencyGraph { private dependencies; private dependents; addModule(filePath: string, dependencies: string[]): void; getDirectDependencies(filePath: string): string[]; getTransitiveDependencies(filePath: string): string[]; getDependents(filePath: string): string[]; removeModule(filePath: string): void; wouldCreateCycle(from: string, to: string): boolean; clear(): void; getAllModules(): string[]; private collectDeps; private hasTransitiveDependency; private collectDependents; } export interface DependencyHashCache { graph: DependencyGraph; contentHashes: Map; completedModules: Set; inProgressModules: Map>; buildQueue: Promise; } export declare function createDependencyHashCache(): DependencyHashCache; export declare function invalidateDependencyHashCache(cache: DependencyHashCache, changedPaths: Iterable): number; export declare function extractImports(code: string): Promise; /** * Filter imports to only local/relative paths (excludes npm, URLs, and framework imports). */ export declare function filterLocalImports(specifiers: string[]): string[]; export declare function normalizeSpecifierToPath(specifier: string, fromFile: string, projectDir: string): string; export declare function computeDepsHash(filePath: string, getContent: (path: string) => Promise, projectDir: string, cache?: DependencyHashCache): Promise; //# sourceMappingURL=dependency-graph.d.ts.map