/**
 * Minimal semver comparison. Returns -1, 0, or 1.
 * Strips pre-release suffixes (e.g. "3.9.3-dev.6" → "3.9.3") before comparing.
 */
export declare function semverCompare(a: string, b: string): -1 | 0 | 1;
interface UpdateResult {
    current: string;
    latest: string;
}
interface CheckForUpdatesOptions {
    cachePath?: string;
    _fetchLatest?: () => Promise<string | null>;
}
/**
 * Check whether a newer version of codegraph is available.
 *
 * Returns `{ current, latest }` if an update is available, `null` otherwise.
 * Silently returns null on any error — never affects CLI operation.
 */
export declare function checkForUpdates(currentVersion: string, options?: CheckForUpdatesOptions): Promise<UpdateResult | null>;
/**
 * Print a visible update notification box to stderr.
 */
export declare function printUpdateNotification(current: string, latest: string): void;
export {};
//# sourceMappingURL=update-check.d.ts.map