/**
 * Version Management Module
 *
 * Handles version checking, updates, and server restart functionality.
 */
export interface VersionInfo {
    currentVersion: string;
    runningVersion: string;
    latestVersion: string | null;
    updateAvailable: boolean;
    stale: boolean;
    checkedAt: string;
    cacheHit: boolean;
}
export interface UpdateResult {
    success: boolean;
    previousVersion: string;
    newVersion: string | null;
    error?: string;
    requiresRestart: boolean;
    mcpRestarted?: number;
}
/**
 * Get current installed version from package.json
 */
export declare function getCurrentVersion(): string;
/**
 * Get the version that was running when this process started.
 * Unlike getCurrentVersion(), this does NOT re-read from disk,
 * so it remains accurate even after an external upgrade.
 */
export declare function getRunningVersion(): string;
/**
 * Check npm registry for latest version (with caching)
 */
export declare function checkForUpdates(forceRefresh?: boolean): Promise<VersionInfo>;
/**
 * Perform npm update (runs in background)
 */
export declare function performUpdate(): Promise<UpdateResult>;
/**
 * Kill running MCP server processes so Claude Code respawns them with updated code.
 * Finds shieldcortex node processes (excluding the current visualization server).
 * Returns the number of processes signalled.
 */
export declare function restartMcpServers(): number;
/**
 * Schedule server restart (with delay for client notification)
 */
export declare function scheduleRestart(delayMs?: number): void;
