/** * Global concurrency gate for external parser processes (Python / Go / cargo). * * Spawning many AST helpers in parallel burns CPU and thrash the OS process * table on Windows. Serializing native toolchains is correctness-preserving: * each file still gets the same parse result, just not all at once. */ /** * Run `fn` exclusively with respect to other {@link withSpawnGate} callers * in this process. Errors propagate to the caller and do not break the queue. */ export declare function withSpawnGate(fn: () => Promise): Promise; /** Test helper — reset queue between cases. */ export declare function resetSpawnGateForTests(): void; //# sourceMappingURL=spawn-gate.d.ts.map