export interface ImportInfo { source: string; specifiers: string[]; isDefault: boolean; isNamespace: boolean; line: number; } export interface ExportInfo { name: string; type: "named" | "default" | "reexport"; line: number; } /** * Extract imports from a TypeScript/JavaScript file * Uses regex for speed - not perfect but handles common cases */ export declare function extractImports(filePath: string): Promise; /** * Parse imports from file content */ export declare function parseImports(content: string): ImportInfo[]; /** * Extract exports from a TypeScript/JavaScript file */ export declare function extractExports(filePath: string): Promise; /** * Parse exports from file content */ export declare function parseExports(content: string): ExportInfo[]; /** * Resolve an import path to a file path * Handles relative imports, not aliases (those need tsconfig) */ export declare function resolveImportPath(importSource: string, fromFile: string, extensions?: string[]): string | null; /** * Build a dependency graph from changed files * Returns map of file -> files it imports (that are also in the changeset) */ export declare function buildDependencyGraph(files: string[], cwd: string): Promise>; //# sourceMappingURL=imports.d.ts.map