import type { DojoLoaderConfig, DojoLoaderScope, DojoPluginOptions, DojoRequire, ReferenceModule } from "./types.ts"; /** Either an absMid of the requesting module or a directory reference (trailing separator). */ export type Reference = string | ReferenceModule; /** * Wraps the vm-hosted Dojo loader with the id/url conversions the Vite plugin needs. */ export declare class DojoResolver { readonly options: DojoPluginOptions; readonly context: string; readonly config: DojoLoaderConfig; readonly scope: DojoLoaderScope; readonly require: DojoRequire; readonly dojoPath: string; constructor(options: DojoPluginOptions, context: string); /** Features known at build time, used to evaluate `dojo/has!` conditionals. */ get features(): Record; /** * Turns a (possibly relative) mid into an absolute mid. * `from` is either an absMid of the requesting module or a directory reference. */ toAbsMid(mid: string, from?: Reference): string; /** Maps an absMid to an on-disk path (without extension resolution). */ toUrl(mid: string, from?: Reference): string | undefined; }