export interface ExecFileResult { stdout: string; stderr: string; } export declare const executeFile: (command: string, args: string[], options?: { cwd?: string; timeoutMs?: number; }) => Promise; /** * PATH lookup that never shells out: Windows runners reach this code with no * `sh` on PATH, and a login shell may rewrite PATH behind the caller's back. */ export declare const commandAvailable: (command: string, env?: NodeJS.ProcessEnv) => Promise; export declare const processIsAlive: (pid: number) => boolean; export interface ScriptRuntimeOptions { execPath?: string; env?: NodeJS.ProcessEnv; /** Require Node.js specifically; used by the Node-process executor whose * `--eval`/`--input-type=module` flags are Node-only. */ requireNode?: boolean; /** Require Bun specifically; used by the Bun-process executor. */ requireBun?: boolean; } export declare const resolveScriptRuntime: (options?: ScriptRuntimeOptions) => Promise; export declare const resolveScriptRuntimeSync: (options?: ScriptRuntimeOptions) => string; export declare const scriptSpawnArgs: (workerPath: string, workerArguments: readonly string[], options?: ScriptRuntimeOptions) => Promise; export declare const workerCommand: (workerPath: string, workerArguments: string[]) => Promise; export declare const spawnDetached: (workerPath: string, workerArguments: string[], cwd: string, options?: { captureStderr?: boolean; }) => Promise<{ pid: number; stop(): Promise; isAlive(): Promise; readStderr(): string; }>; //# sourceMappingURL=process-utils.d.ts.map