/** * Parses semantic versioning strings. * Expected format: "major.minor.patch" or "major.minor.patch-tag" (e.g., "1.25.0" or "2.0.1-beta"). * @template {string} VersionString */ declare class TinyVersion { #private; /** * Creates a new TinyVersion instance. * * @param {VersionString} versionString - The version string to parse. * @throws {TypeError} If the provided versionString is not a string. * @throws {Error} If the version string does not match the expected format. */ constructor(versionString: VersionString); /** * Retrieves the major version number (incompatible API changes). * @returns {number} */ get major(): number; /** * Retrieves the minor version number (added functionality in a backwards-compatible manner). * @returns {number} */ get minor(): number; /** * Retrieves the patch version number (backwards-compatible bug fixes). * @returns {number} */ get patch(): number; /** * Retrieves the release tag, or null if it does not exist (e.g., "alpha", "rc.1"). * @returns {string | null} */ get tag(): string | null; /** * Compares this version with another version to see if it is greater. * * @template {TinyVersion} VersionInstance * @param {VersionInstance} version - The version to compare against. * @returns {boolean} True if this version is greater than the provided version. * @throws {TypeError} If the provided version is not an instance of TinyVersion. */ isGreaterThan>(version: VersionInstance): boolean; /** * Compares this version with another version to see if they are equal. * * @template {TinyVersion} VersionInstance * @param {VersionInstance} version - The version to compare against. * @returns {boolean} True if both versions are identical. * @throws {TypeError} If the provided version is not an instance of TinyVersion. */ isEqualTo>(version: VersionInstance): boolean; /** * Compares this version with another version to see if it is less. * * @template {TinyVersion} VersionInstance * @param {VersionInstance} version - The version to compare against. * @returns {boolean} True if this version is less than the provided version. * @throws {TypeError} If the provided version is not an instance of TinyVersion. */ isLessThan>(version: VersionInstance): boolean; /** * Returns the string representation of the version. * @returns {VersionString} The reconstructed version string. */ toString(): VersionString; } export default TinyVersion; //# sourceMappingURL=TinyVersion.d.mts.map