/** * npm registry client — used as a fallback when Bundlephobia can't build a * package (React Native, Expo, native modules, type-only packages, etc.). * * Sizes here are install weight (tarball / unpacked on disk), not browser * bundle size. They still answer "how heavy is this dependency?" for any package. */ import type { PackageSize } from './bundlephobia.js'; export interface NpmFetchOptions { timeoutMs?: number; } /** Split `lodash@4.17.21` / `@scope/pkg@1.2.3` into name + optional version. */ export declare function parseSpec(spec: string): { name: string; version?: string; }; /** * Fetch install-size metadata from the npm registry and map it into our * PackageSize shape. `size` ≈ unpacked on disk; `gzip` ≈ published tarball. */ export declare function fetchNpmInstallSize(spec: string, options?: NpmFetchOptions): Promise; //# sourceMappingURL=npm.d.ts.map