/**
 * Resolve the package root directory.
 *
 * - Unbundled (dist/utils/version-check.js): __dirname is `<root>/dist/utils/`
 *   → two levels up = `<root>/`
 * - Bundled (dist-agent/bundle.cjs): __dirname is `<root>/dist-agent/`
 *   → one level up = `<root>/`
 */
export declare function getPackageRoot(): string;
export interface VersionCheckResult {
    currentVersion: string;
    latestVersion: string;
    hasUpdate: boolean;
    changelog?: string;
}
export interface InstallationInfo {
    packageRoot: string;
    isLocalCheckout: boolean;
}
export declare function isLocalCheckoutPackageRoot(packageRoot: string): boolean;
export declare function getInstallationInfo(): InstallationInfo;
export declare function getCurrentVersion(): string;
export declare function compareSemver(a: string, b: string): number;
export declare function getLatestNpmVersion(): Promise<string>;
export declare function getNpmVersionByTag(tag: string): Promise<string>;
/**
 * Whether enough time has passed since the last notification for a given version.
 * Returns true at most once per 24 hours per new version.
 */
export declare function shouldNotifyUpdate(): boolean;
export declare function recordUpdateNotification(version: string): void;
/**
 * Fetch the CHANGELOG.md section for a specific version from unpkg CDN.
 * Returns the changelog text for entries newer than `fromVersion`, or undefined on failure.
 */
export declare function fetchChangelogFromNpm(latestVersion: string, fromVersion: string): Promise<string | undefined>;
/**
 * Full version check: queries npm, compares versions, fetches changelog.
 */
export declare function checkForUpdate(): Promise<VersionCheckResult>;
//# sourceMappingURL=version-check.d.ts.map