export declare class ModulePath { path: string; main: string; /** * Create a new ModulePath instance. * @param path - The module path. * @param main - The main entry file path of the module. */ constructor(path: string, main: string); } export declare class ModuleUtils { private static readonly FILE_EXT; private static readonly OH_PACKAGE_DEPENDENCY_KEYS; static MODULES: Map; static dispose(): void; /** * Get the real file path for a given source path, resolving file extensions and checking existence. * Results are cached via LRU for performance. * @param srcPath - The source path to resolve, e.g.: /projectA/src/foo * @returns The resolved real file path, or empty string if not found. */ static getFileRealPath(srcPath: string): string; /** * Generate a module map from oh-package.json5 content. * @param ohPkgContentMap - A map of oh-package.json5 file paths to their parsed content. * @returns A map of module names to their module paths. */ static generateModuleMap(ohPkgContentMap: Map): Map; private static addDependModule; private static processDependency; /** * Handle "foo_test": "@module:Foo" dependency. */ private static handleModuleRefDependency; private static findModulePathInOHPM; } //# sourceMappingURL=ModuleUtils.d.ts.map