/**
 * Spawn npm in a way that works on Windows without shell: true.
 * Node's spawn/spawnSync cannot reliably run .cmd/.bat files; using the same
 * Node that runs 4r to execute npm-cli.js matches `npm.cmd` behavior.
 * Avoiding shell: true prevents a flashing cmd.exe window for background tasks.
 */
import { spawn, type SpawnOptions } from 'child_process';
/** Path to npm-cli.js next to the running Node (Windows); used for detached updates without npm.cmd. */
export declare function getNpmCliJsPath(): string | null;
export declare function spawnNpmSync(args: string[]): import("child_process").SpawnSyncReturns<string>;
/**
 * Async spawn for long-running / detached processes (e.g. Gateway). Prefer this over
 * `spawn('npm run start', { shell: true })` on Windows to avoid a console flash.
 */
export declare function spawnNpm(args: string[], options: SpawnOptions): ReturnType<typeof spawn>;
//# sourceMappingURL=npm-spawn.d.ts.map