/** * Tiny semver comparator. We refuse to pull in `semver` for a single * compareVersions() call; the surface here is intentionally narrow. * * Supports `MAJOR.MINOR.PATCH` and `MAJOR.MINOR.PATCH-PRERELEASE` (semver §11). * Build metadata (`+...`) is rejected — releases shouldn't ship with it and * it'd only confuse equality. */ export interface ParsedVersion { major: number; minor: number; patch: number; /** Empty string when there is no prerelease (= a higher precedence release). */ prerelease: string; } export declare function parseVersion(input: string): ParsedVersion; /** -1 if a < b, 0 if equal, +1 if a > b. */ export declare function compareVersions(a: string, b: string): number;