export interface DaemonUpgradeHelperPayload {
    packageName: string;
    targetVersion: string;
    parentPid: number;
    restartArgv: string[];
    cwd?: string;
    sessionHostAppName?: string;
}
export interface CurrentGlobalInstallSurface {
    npmExecutable: string;
    packageRoot: string | null;
    installPrefix: string | null;
}
export interface PinnedGlobalInstallCommand {
    command: string;
    args: string[];
    surface: CurrentGlobalInstallSurface;
}
export declare function resolveCurrentGlobalInstallSurface(options: {
    packageName: string;
    currentCliPath?: string;
    nodeExecutable?: string;
}): CurrentGlobalInstallSurface;
export declare function buildPinnedGlobalInstallCommand(options: {
    packageName: string;
    targetVersion: string;
    currentCliPath?: string;
    nodeExecutable?: string;
}): PinnedGlobalInstallCommand;
export declare function stopSessionHostProcesses(appName: string): void;
export declare function spawnDetachedDaemonUpgradeHelper(payload: DaemonUpgradeHelperPayload): void;
export declare function maybeRunDaemonUpgradeHelperFromEnv(): Promise<boolean>;
