sicua
Version:
A tool for analyzing project structure and dependencies
16 lines (15 loc) • 796 B
TypeScript
import ts from "typescript";
import { ComponentRelation, ScanResult } from "../../../types";
import { EnhancedComponentRelation } from "../types/deduplication.types";
/**
* Enhances component information with detailed AST analysis
* @param component Original component relation
* @param sourceFile TypeScript source file
* @param scanResult Scan result with file metadata (optional)
* @returns Component with additional information
*/
export declare function enhanceComponentInfo(component: ComponentRelation, sourceFile: ts.SourceFile, scanResult?: ScanResult): EnhancedComponentRelation;
/**
* Creates source files from components using scan result data
*/
export declare function createSourceFiles(components: ComponentRelation[], scanResult?: ScanResult): Map<string, ts.SourceFile>;