knip
Version:
Find and fix unused dependencies, exports and files in your TypeScript and JavaScript projects
7 lines (6 loc) • 626 B
TypeScript
import type { GraphExplorer } from '../graph-explorer/explorer.js';
import type { FileNode, ModuleGraph } from '../types/module-graph.js';
import type { Export, ImportLookup, InternalImport } from './types.js';
export declare const buildImportLookup: (fileNode: FileNode) => ImportLookup;
export declare const buildExportsMap: (fileNode: FileNode, filePath: string, graph: ModuleGraph, entryPaths: Set<string>, explorer: GraphExplorer, importLookup: ImportLookup) => Map<string, Export>;
export declare const buildInternalImports: (fileNode: FileNode, explorer: GraphExplorer, importLookup: ImportLookup) => InternalImport[];