import { type ChildProcessByStdio } from 'node:child_process'; import type { Readable } from 'node:stream'; export type SpawnedCommand = ChildProcessByStdio; export declare function resolveWindowsCommand(command: string, env: NodeJS.ProcessEnv, cwd: string): string; /** 只将完整匹配的 Node 包装器转为字面启动;其他批处理继续使用原执行路径。 */ export declare function resolveWindowsNodeShim(resolved: string, args: readonly string[], environment: NodeJS.ProcessEnv, nodeCommand?: string): { command: string; args: string[]; env?: NodeJS.ProcessEnv; } | null; export declare function assertSafeWindowsBatchArguments(args: readonly string[]): void; export declare function commandInvocation(command: string, args: readonly string[], options: { cwd: string; env?: NodeJS.ProcessEnv; }): { command: string; args: string[]; env: NodeJS.ProcessEnv; }; export declare function spawnCommand(command: string, args: readonly string[], options: { cwd: string; env?: NodeJS.ProcessEnv; }): SpawnedCommand; //# sourceMappingURL=spawn-command.d.ts.map