/**
 * @file Private internals for `spawn/*` modules — the `@npmcli/promise-spawn`
 *   lazy loader, the per-spawn ANSI-stripping helper, the WeakMap stack cache,
 *   and the binary-path cache shared between `spawn` and `spawnSync`.
 *   Underscore prefix excludes this file from the public exports map.
 */
export declare const stackCache: WeakMap<Error, string>;
export declare const spawnBinPathCache: Map<string, string>;
export declare const windowsScriptExtRegExp: RegExp;
/**
 * Lazily load the `@npmcli/promise-spawn` module to avoid Webpack bundling
 * issues. Required because the upstream module uses CJS dynamic-require
 * patterns that Webpack flags.
 */
export declare function getNpmCliPromiseSpawn(): any;
/**
 * Strip ANSI escape codes from spawn result stdout and stderr. Modifies the
 * result object in place to remove color codes and formatting.
 *
 * @param {unknown} result - Spawn result object with stdout/stderr properties.
 *
 * @returns {unknown} The modified result object
 */
export declare function stripAnsiFromSpawnResult(result: unknown): unknown;
