import type { ManualUpdateInfo } from '../../shared/protocol.js';
export interface VersionInfo {
    version: string;
    runningVersion: string;
    manualUpdate?: ManualUpdateInfo | null;
}
export interface UpdateCheckResult {
    currentVersion?: string;
    latestVersion?: string | null;
    updateAvailable?: boolean | null;
    error?: string;
}
export interface UpdateResult {
    ok: boolean;
    changed: boolean;
    message: string;
    restarting: boolean;
    manualUpdate?: ManualUpdateInfo | null;
}
export declare function getVersionInfo(cwd?: string, manualUpdate?: ManualUpdateInfo | null): VersionInfo;
export declare function checkPackageUpdate(cwd?: string): UpdateCheckResult;
export declare function runUpdate(cwd?: string): UpdateResult;
