/**
 * @file Execute npm commands with optimized flags and security defaults.
 *   SECURITY: Array-based arguments prevent command injection. All elements in
 *   the args array are properly escaped by Node.js when passed to spawn().
 *   NOTE: We don't apply hardening flags to npm because:
 *
 *   1. npm is a trusted system tool installed with Node.js.
 *   2. npm requires full system access (filesystem, network, child processes).
 *   3. Hardening flags would prevent npm from functioning even with --allow-*
 *      grants.
 *   4. The permission model is intended for untrusted user code, not package
 *      managers.
 */
import type { SpawnOptions } from '../../../spawn/types';
/**
 * Execute npm commands with optimized flags and settings.
 *
 * @example
 *   ;```typescript
 *   await execNpm(['install', '--save', 'lodash'])
 *   await execNpm(['run', 'build'], { cwd: '/tmp/project' })
 *   ```
 */
export declare function execNpm(args: string[], options?: SpawnOptions | undefined): import("../../../spawn/types").SpawnResult;
