import { type FetchOptions, type PackageSize } from '../api/bundlephobia.js'; export interface LoadOptions extends FetchOptions { /** When true, ignore any cached value and always hit the network. */ noCache?: boolean; /** Cache time-to-live in ms. */ ttlMs?: number; /** * Skip the npm-registry fallback and only accept Bundlephobia sizes. * Useful when you specifically want browser-bundle cost. */ bundleOnly?: boolean; } /** * Packages Bundlephobia essentially never builds — skip straight to npm * install size so Expo/RN scans don't sit on 12s timeouts per package. */ export declare function likelyUnbundlable(spec: string): boolean; /** * Resolve a package spec: Bundlephobia first (true browser cost), then fall * back to npm install size for packages BP can't build (RN, Expo, native…). */ export declare function loadPackageSize(spec: string, options?: LoadOptions): Promise; export interface SettledResult { spec: string; value?: PackageSize; error?: Error; } /** * Resolve many specs with bounded concurrency, never rejecting — failures are * captured per-spec so a single bad package doesn't sink the whole batch. */ export declare function loadMany(specs: string[], options?: LoadOptions, concurrency?: number, onSettled?: (result: SettledResult) => void): Promise; //# sourceMappingURL=loader.d.ts.map