/** * Resolve the ESM entry point for a package installed in `dir/node_modules/`. * * Reads the package's `package.json` and inspects the `exports` and `module` * fields to find a usable ESM entry point. Handles: * - `exports` as a bare string * - `exports["."].import` as a string or `{ default: "..." }` object * - `exports.import` as a string or `{ default: "..." }` object * - `module` field fallback * * @returns Absolute path to the ESM entry file, or `null` if not resolvable. */ export declare function resolveEsmEntry(packageName: string, dir: string): string | null; //# sourceMappingURL=esm-resolve.d.ts.map