import { CompareResult, IdentifierBase, ParsedOptions, RangeOptionsOrLoose, ReleaseType, SemVerLike } from "../types.mjs"; //#region src/classes/semver.d.ts declare class SemVer { raw: string; loose: boolean; options: ParsedOptions; includePrerelease: boolean; major: number; minor: number; patch: number; version: string; build: string[]; prerelease: Array; constructor(version: SemVerLike, optionsOrLoose?: RangeOptionsOrLoose); format(): string; toString(): string; inspect(): string; private asSemVer; /** * Compares two versions excluding build identifiers (the bit after `+` in the semantic version string). * * @return * - `0` if `this` == `other` * - `1` if `this` is greater * - `-1` if `other` is greater. */ compare(other: SemVerLike): CompareResult; /** * Compares the release portion of two versions. * * @return * - `0` if `this` == `other` * - `1` if `this` is greater * - `-1` if `other` is greater. */ compareMain(other: SemVerLike): CompareResult; /** * Compares the prerelease portion of two versions. * * @return * - `0` if `this` == `other` * - `1` if `this` is greater * - `-1` if `other` is greater. */ comparePre(other: SemVerLike): CompareResult; /** * Compares the build identifier of two versions. * * @return * - `0` if `this` == `other` * - `1` if `this` is greater * - `-1` if `other` is greater. */ compareBuild(other: SemVerLike): CompareResult; inc(release: ReleaseType, identifier?: string, identifierBase?: IdentifierBase): SemVer; } //#endregion export { SemVer };