import type { ParsedRegistryUrl } from './types';
export declare function removeBuildMeta(version: string): string;
export declare function massageUrl(url: string): string;
export declare function parseRegistryUrl(registryUrl: string): ParsedRegistryUrl;
/**
 * Compare two versions. Return:
 * - `1` if `a > b` or `b` is invalid
 * - `-1` if `a < b` or `a` is invalid
 * - `0` if `a == b` or both `a` and `b` are invalid
 */
export declare function sortNugetVersions(a: string, b: string): number;
