/** * Semantic versioning utility functions */ type RangeEvaluation = boolean | null; /** * Validate if a string is a valid semantic version * * @param version Version string to validate (can have optional 'v' prefix) * @returns true if valid semver, false otherwise */ export declare function isValidSemver(version: string): boolean; /** * Validate and normalize a semantic version string * * @param version Version string to validate * @throws Error if version is not valid semver * @returns Normalized version without 'v' prefix */ export declare function validateAndNormalizeSemver(version: string): string; /** * Check whether a dependency range includes a concrete workspace package version. * * This intentionally supports only the small zero-dependency subset doctor needs: * workspace: protocol ranges, exact versions, ^, ~, >=, and OR-joined (`||`) * combinations of those forms. Unknown syntax returns null so advisory checks can * skip it without producing false warnings. * * @param range Dependency range string from package.json * @param version Concrete workspace package version * @returns true/false when evaluated, null when the syntax is outside the supported subset */ export declare function rangeIncludesVersion(range: string, version: string): RangeEvaluation; export {};