/**
 * CLI Version Check Utilities
 *
 * Standalone functions for checking whether a newer version of Crewly is
 * available on npm. Designed for short-lived CLI processes — no singleton
 * service pattern needed.
 *
 * Results are cached in ~/.crewly/.update-check (shared with the backend
 * VersionCheckService) so that repeated CLI invocations do not repeatedly
 * hit the network.
 *
 * @module cli/utils/version-check
 */
/**
 * Cached version check result persisted to disk
 */
export interface CachedResult {
    /** The latest version found on npm */
    latestVersion: string;
    /** ISO timestamp of when the check was performed */
    checkedAt: string;
}
/**
 * Result of a version comparison
 */
export interface VersionCheckResult {
    /** Currently installed version */
    currentVersion: string;
    /** Latest version on npm, or null if check failed */
    latestVersion: string | null;
    /** Whether a newer version is available */
    updateAvailable: boolean;
}
/**
 * Reads the current Crewly version from the root package.json.
 *
 * @returns The version string from package.json
 */
export declare function getLocalVersion(): string;
/**
 * Reads the disk-cached version check result.
 *
 * @returns The cached result, or null if the file does not exist or is malformed
 */
export declare function readCache(): CachedResult | null;
/**
 * Writes a version check result to the disk cache.
 *
 * @param version - The latest version string to cache
 */
export declare function writeCache(version: string): void;
/**
 * Checks whether a newer version of Crewly is available on npm.
 * Uses the disk cache if it is still fresh (within CACHE_TTL_MS).
 *
 * @returns An object with currentVersion, latestVersion, and updateAvailable
 */
export declare function checkForUpdate(): Promise<VersionCheckResult>;
/**
 * Prints a styled update notification to the terminal.
 *
 * @param current - The currently installed version
 * @param latest - The latest available version
 */
export declare function printUpdateNotification(current: string, latest: string): void;
//# sourceMappingURL=version-check.d.ts.map