export interface PackageRef { type?: string; id: string; version?: string; } /** Parse `type/id@version`, `id@version`, or `id`. */ export declare function parsePackageRef(input: string): PackageRef; export declare function formatPackageRef(ref: PackageRef): string; /** Loose compare: equal major.minor.patch strings, or prefix match for ranges like 2.3. */ export declare function versionMatches(installed: string, requested?: string): boolean; //# sourceMappingURL=semver.d.ts.map