import type { GitSemverTagsOptions, SemanticVersion, SemanticVersionTag, SemVerOptions } from "../types"; import cmp from 'semver/functions/cmp'; import coerce from 'semver/functions/coerce'; import compare from 'semver/functions/compare'; import rcompare from 'semver/functions/rcompare'; import satisfies from 'semver/functions/satisfies'; import valid from 'semver/functions/valid'; declare const _default: { /** * Cleans and parses `version`. * * Removes tag prefixes, as well as leading and trailing whitespaces. If the * version is invalid, `null` will be returned instead. * * @param {any} version - Value to clean * @param {string} [tagPrefix] - Tag prefix to ignore. Defaults to `v` * @param {SemVerOptions} [options] - semver options * @return {SemanticVersion | null} Semantic version or `null` */ clean(version: any, tagPrefix?: string, options?: SemVerOptions | undefined): SemanticVersion | null; cmp: typeof cmp; coerce: typeof coerce; compare: typeof compare; rcompare: typeof rcompare; satisfies: typeof satisfies; /** * Returns an array of Git semver tags in reverse chronological order. * * @param {GitSemverTagsOptions} [options] - Options * @param {boolean} [options.lernaTags] - Extract Lerna style tags (e.g: * `foo-package@2.0.0`) from the Git history, rather than `v1.0.0` format * @param {string} [options.package] - Name of package using lerna style tags * @param {string} [options.tagPrefix] - Specify version tag prefix to ignore * @param {boolean} [options.skipUnstable] - Skip unstable tags (e.g: * `x.x.x-alpha.1`, `x.x.x-rc.2`) * @param {boolean} [reverse] - If `false`, return tags in ascending order * @return {Promise} - Promise containing tags * @throws {Exception} */ tags(options?: GitSemverTagsOptions, reverse?: boolean): Promise; valid: typeof valid; }; /** * @file Utilities - semver * @module grease/utils/semver * @see https://github.com/npm/node-semver#usage * @see https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/git-semver-tags */ export default _default;