/** * Version Comparator * * Semantic version comparison for detecting outdated files. * Reuses logic from UpdateChecker for consistency. */ import type { UpdateType } from './types.js'; /** * Compare two version strings * * @param a - First version string * @param b - Second version string * @returns Negative if a < b, positive if a > b, zero if equal */ export declare function compareVersions(a: string, b: string): number; /** * Check if a file version needs updating * * @param fileVersion - Version from the file * @param currentVersion - Current k0ntext version * @returns True if file is outdated */ export declare function needsUpdate(fileVersion: string, currentVersion: string): boolean; /** * Get the type of update needed * * @param fileVersion - Version from the file * @param currentVersion - Current k0ntext version * @returns Type of update: 'major', 'minor', 'patch', or 'none' */ export declare function getUpdateType(fileVersion: string, currentVersion: string): UpdateType; /** * Format update type as a human-readable string * * @param type - Update type * @returns Formatted string (e.g., "Major (3.0.0 → 3.1.0)") */ export declare function formatUpdateType(type: UpdateType, from: string, to: string): string; /** * Validate a version string format * * @param version - Version string to validate * @returns True if valid semver format */ export declare function isValidVersion(version: string): boolean; export declare const version = "3.8.0"; //# sourceMappingURL=comparator.d.ts.map