AbstractOptionalclearClear any caches (optional)
AbstractexistsCheck if a module exists
The module path to check
OptionalfromPath: stringThe path of the importing module (for relative resolution)
Promise resolving to true if module exists
OptionalgetGet module metadata (optional)
The module path
Promise resolving to module metadata
AbstractlistList available modules (for autocomplete/suggestions)
Optionalprefix: stringOptional prefix to filter modules
Promise resolving to array of available module paths
AbstractresolveResolve a module path to its source code
The module path to resolve (e.g., "./utils", "@wang/core", "https://...")
OptionalfromPath: 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