import type { AutoUpdateKind } from "./types.js"; /** Parsed major.minor.patch triple from a semver string. */ export interface SemverTriple { major: number; minor: number; patch: number; } /** * Extract the major, minor, and patch numbers from a semver string. * * Accepts optional `v` prefix and pre-release / build-metadata suffixes * (e.g. `"v1.2.3-beta.1+build.42"`). Returns `null` when the input * does not match the `MAJOR.MINOR.PATCH` pattern. */ export declare function parseSemver(input: string): SemverTriple | null; /** * Compare two semver strings and return the kind of update (or `"none"`). * * Returns `"major"`, `"minor"`, or `"patch"` when `latest` is ahead of * `current` in the respective component. Returns `"none"` when the * versions are equal, `latest` is older, or either string is unparseable. */ export declare function classifyUpdate(current: string, latest: string): AutoUpdateKind; //# sourceMappingURL=policy.d.ts.map