/** * Resolving an esm.sh specifier through an import map. * * This lived in two places, `import-rewriter/strategies/import-map-strategy.ts` * and `modules/import-map/resolver.ts`, as byte-identical copies that both * dropped every scoped subpath. Duplication is what let them drift from the * canonical parser in the first place, so the resolution lives here once and * both call sites delegate to it. * * @module transforms/shared/esm-sh-import-map */ export declare function parseEsmShSpecifier(url: string): { packageName: string; subpath: string; version: string | null; } | null; /** * Resolves an esm.sh specifier against an import map, or reports null when the * map has nothing for it. * * Scoped entries are consulted completely before either global entry. The * import map specification gives a matching scope precedence over the global * imports, so a scoped package mapping must win against a global * package-plus-subpath key rather than losing to it. */ export declare function resolveEsmShThroughImportMap(specifier: string, scopedImports: Record | undefined, globalImports: Record | undefined): string | null; //# sourceMappingURL=esm-sh-import-map.d.ts.map