/**
 * Import Resolver — Shared module for parsing imports/exports and resolving paths.
 *
 * Extracted from imported-auth-detector.ts and middleware-detector.ts to provide
 * a single source of truth for import resolution used by the module graph,
 * cross-file taint analysis, and existing auth detection.
 */
import type { ScanFile } from '../shared/types';
export interface ParsedImport {
    importPath: string;
    importedNames: string[];
    isReExport: boolean;
    isNamespace: boolean;
    line: number;
    isLocal: boolean;
}
export interface ParsedExport {
    name: string;
    kind: 'function' | 'class' | 'variable' | 'reexport';
    line: number;
    sourceModule?: string;
    isDefault: boolean;
}
/**
 * Build an O(1) lookup map for resolving import paths to ScanFiles.
 * Keys include the raw path and normalized variants for fast lookup.
 */
export declare function buildFileIndex(files: ScanFile[]): Map<string, ScanFile>;
/**
 * Extract all imports from a file's content.
 * Supports ES6 named/default/namespace, CommonJS destructured/default,
 * re-exports, and Python imports.
 */
export declare function extractAllImports(content: string, _filePath: string): ParsedImport[];
/**
 * Extract exported symbols from a file's content.
 * Supports ES6 exports, CommonJS module.exports, and Python top-level defs.
 */
export declare function extractExports(content: string, filePath: string): ParsedExport[];
/**
 * Resolve an import path to a ScanFile using the file index.
 * Handles @/, ~/, relative paths, extension resolution, and index file fallback.
 */
export declare function resolveImportPath(importPath: string, fromFilePath: string, fileIndex: Map<string, ScanFile>): ScanFile | null;
//# sourceMappingURL=import-resolver.d.ts.map