/**
 * Parse installed version from `npm list -g <pkg> --depth=0 --json` output.
 * npm may return the queried package as the JSON root (name + version) or nested under dependencies.
 */
export declare function parseNpmListGlobalVersion(stdout: string | Buffer, packageName: string): string | null;
/** Looks like a normal x.y.z (or x.y) semver string from npm. */
export declare function looksLikeNpmVersion(v: string): boolean;
/**
 * Read globally installed version from `npm list -g` JSON.
 * Important: `npm list` often exits with code 1 (extraneous/missing peers) even when JSON is valid —
 * do not treat non-zero status as "no install".
 */
export declare function getInstalledGlobalPackageVersion(packageName: string): string | null;
//# sourceMappingURL=npm-list-version.d.ts.map