import type { ModuleCacheKeyObject } from '../module.mts'; import { AbstractModuleRecord, JSStringValue, ManagedRealm, ModuleCache, NormalCompletion, Realm, ThrowCompletion, type ModuleLoader } from '#self'; export type BuiltinModuleSource = string | ((realm: Realm) => AbstractModuleRecord) | Uint8Array; export interface BuiltinModuleLoaderOptions { getModuleCache?: (realm: ManagedRealm) => ModuleCache; /** preloaded builtin module */ builtinModules?: Map; /** dynamically loaded builtin module */ loadBuiltinModule?: (moduleRequest: ModuleCacheKeyObject, realm: Realm, callback: (result: BuiltinModuleSource | NormalCompletion | ThrowCompletion) => void) => void; isBuiltinModule?: (specifier: string) => boolean; } export declare function createBuiltinModuleLoader(options?: BuiltinModuleLoaderOptions): ModuleLoader; //# sourceMappingURL=builtin-loader.d.mts.map