/** * Minimal semver-range satisfaction used by the declaration resolver. * * Supports the subset the RFC validation needs: exact versions, `^`, `~`, * comparators (`>=`, `>`, `<=`, `<`, `=`), `*`, x-ranges (`1.x`, `1.2.x`, * `1`, `1.2`), space-separated AND clauses and `||` OR clauses. Anything * else (workspace:, file:, link:, npm aliases, hyphen ranges) is reported * as unparsable so callers can skip the gate per RFC §11. */ export interface SemverVersion { major: number; minor: number; patch: number; prerelease: string[]; } export declare function parseSemver(input: string): SemverVersion | null; export declare function compareSemver(a: SemverVersion, b: SemverVersion): number; /** * Returns true/false when both version and range are understood, * null when either is unparsable (caller skips the gate, RFC §11). */ export declare function satisfiesRange(version: string, range: string): boolean | null;