/** * Generates a URL like this from the provided package json: * `https://js.arcgis.com///` * * If package version number includes "next", `jsdev.arcgis.com` CDN is used * instead of `js.arcgis.com`. * * @param packageJson * @param preferNext * @example `https://js.arcgis.com/map-components/4.30/` */ export function inferCdnUrl(packageJson?: { name: string; version: string; }, preferNext?: boolean): string;