/** * ES Module (ESM) loader for the Faraday Cage sandbox environment. * * This module enables dynamic loading of ES modules from URLs within the * QuickJS sandbox. It provides: * - HTTP/HTTPS module fetching capabilities * - Proper URL resolution for relative and absolute module paths * - Integration with the QuickJS module system * * The loader handles module resolution similar to browser ES modules, * supporting relative paths (./module.js), absolute paths (/module.js), * and full URLs (https://example.com/module.js). * * @example * ```typescript * const cage = await FaradayCage.create({ * modules: [esmModuleLoaderModule] * }); * * const result = await cage.runCode(` * import { utils } from 'https://example.com/utils.js'; * import { helper } from './helper.js'; * * utils.doSomething(); * `); * ``` * * @throws {Error} When a module fails to fetch (network error or non-OK response) * @throws {TypeError} When the module path cannot be resolved to a valid URL */ declare const _default: import("./_mod_authoring").CageModule; export default _default;