Abstract
Optional
clearClear any caches (optional)
Abstract
existsCheck if a module exists
The module path to check
Optional
fromPath: stringThe path of the importing module (for relative resolution)
Promise resolving to true if module exists
Optional
getGet module metadata (optional)
The module path
Promise resolving to module metadata
Abstract
listList available modules (for autocomplete/suggestions)
Optional
prefix: stringOptional prefix to filter modules
Promise resolving to array of available module paths
Abstract
resolveResolve a module path to its source code
The module path to resolve (e.g., "./utils", "@wang/core", "https://...")
Optional
fromPath: stringThe path of the importing module (for relative resolution)
Promise resolving to module code and resolved path
Base interface for module resolvers Implement this interface to provide custom module resolution