import type { IParser } from '@rcs-lang/core'; import { type ExportedSymbol, type ImportResolverConfig, type ImportStatement, type ResolvedImport } from './types.js'; /** * Handles import resolution for RCL files */ export declare class ImportResolver { private parser; private config; private symbolCache; constructor(parser: IParser, config?: Partial); /** * Resolve an import statement to its actual file path and exports * @param importPath - The import path from the RCL file * @param fromFile - The file containing the import statement * @returns Resolved import information */ resolveImport(importPath: string, fromFile: string): Promise; /** * Extract import statements from an RCL file * @param filePath - Path to the RCL file * @returns Array of import statements found in the file */ extractImports(filePath: string): Promise; /** * Get all symbols exported by an RCL file * @param filePath - Path to the RCL file * @returns Array of exported symbols */ getExports(filePath: string): Promise; /** * Clear the symbol cache */ clearCache(): void; /** * Walk the AST and call callback for each node */ private walkAST; /** * Resolve import path to absolute file path */ private resolveImportPath; /** * Add file extension if needed */ private addExtensionIfNeeded; /** * Parse import statement from AST node */ private parseImportStatement; /** * Extract symbol information from AST node */ private extractSymbol; /** * Extract symbol name from AST node */ private extractSymbolName; } //# sourceMappingURL=ImportResolver.d.ts.map