sicua
Version:
A tool for analyzing project structure and dependencies
23 lines (22 loc) • 612 B
TypeScript
import ts from "typescript";
/**
* Manages source file loading and caching to improve performance
*/
export declare class SourceFileManager {
private sourceFileCache;
constructor();
/**
* Gets a source file from cache or loads it from disk
* @param filePath Path to the source file
* @returns A Promise resolving to the TypeScript SourceFile
*/
getOrCreateSourceFile(filePath: string): Promise<ts.SourceFile>;
/**
* Clears the source file cache
*/
clearCache(): void;
/**
* Gets the current size of the cache
*/
getCacheSize(): number;
}