export interface VersionParts { major: number; minor: number; patch: number; prerelease: number | null; } export interface ChangelogEntry extends VersionParts { version: string; content: string; } export declare function normalizeChangelogLinks(markdown: string, version: string | ChangelogEntry): string; /** * The human-readable summary a release section opens with: the prose between the * `## [x.y.z]` heading and its first `###` section. Undefined when there is none, * so callers fall back to the full entry. */ export declare function getChangelogHighlights(entry: ChangelogEntry): string | undefined; /** * Parse changelog entries from CHANGELOG.md * Scans for ## lines and collects content until next ## or EOF */ export declare function parseChangelog(changelogPath: string): ChangelogEntry[]; /** * Compare versions. Returns: -1 if v1 < v2, 0 if v1 === v2, 1 if v1 > v2 */ export declare function compareVersions(v1: VersionParts, v2: VersionParts): number; export declare function getNewEntries(entries: ChangelogEntry[], lastVersion: string, currentVersion?: string): ChangelogEntry[]; export declare function getEntriesForVersion(entries: ChangelogEntry[], version: string): ChangelogEntry[]; export { getChangelogPath } from "../config.js"; //# sourceMappingURL=changelog.d.ts.map