import esm from "esm-sync";

//#region src/options.d.ts
type ESMOptions = Parameters<typeof esm>[1];
interface Options {
  basePath?: string;
  esmOptions?: ESMOptions;
}
//#endregion
//#region src/import.d.ts
/**
 * Imports ES6 modules synchronously similar to require in CommonJS
 * Can be used in both ES6 and CommonJS projects
 *
 * @param relativePath - the name or relative path of the module, e.g. ./arrays
 * @param {Options} [options] - options as defined in types.ts
 * @returns the imported module
 */
declare const importSync: (id: string, options?: Options) => any;
//#endregion
export { type ESMOptions, type Options, importSync as default };
//# sourceMappingURL=index.d.cts.map