import { type ChildProcess } from 'child_process'; export interface SpawnResult { stdout: string; stderr: string; output: string; exitCode: number | null; timedOut: boolean; } /** * 通用 Godot headless spawn:带超时、输出收集、settled 防重入。 * * - `killFn` 默认使用 `forceKillTree`(杀整个进程树),可覆盖为 `proc.kill()` 等。 * - spawn() 同步异常被捕获并返回 `{ exitCode: -1 }`。 */ export declare function spawnGodot(godot: string, args: string[], opts?: { timeoutMs?: number; maxOutput?: number; killFn?: (proc: ChildProcess) => void; }): Promise;