/**
 * Optional npm registry + GitHub release enrichment for npm_check_update.
 * Best-effort only; never throws to callers.
 */
export interface ReleaseEnrichmentResult {
    release_url: string | null;
    release_notes_excerpt: string | null;
    breaking_changes_excerpt: string | null;
    enrichment_error: string | null;
}
export declare function npmPackageVersionUrl(packageName: string, version: string): string;
/** Parse owner/repo from npm repository field (string URL or {url}). */
export declare function parseGithubRepoFromNpmMetadata(repository: unknown): {
    owner: string;
    repo: string;
} | null;
export declare function extractBreakingExcerpt(body: string): string | null;
/**
 * Fetch registry document for a single version (npm `GET /{pkg}/{version}`).
 */
export declare function fetchNpmVersionDocument(packageName: string, version: string): Promise<Record<string, unknown> | null>;
export declare function fetchGithubReleaseBody(params: {
    owner: string;
    repo: string;
    version: string;
}): Promise<{
    body: string | null;
    html_url: string | null;
    error: string | null;
}>;
export declare function enrichNpmReleaseMetadata(params: {
    packageName: string;
    latestVersion: string;
    includeReleaseNotes: boolean;
}): Promise<ReleaseEnrichmentResult>;
//# sourceMappingURL=release_notes_enrichment.d.ts.map