/** * Tiny semaphore for bounded parallelism — avoids a p-limit dependency. * Limits concurrent async tasks to `concurrency` at a time. */ declare function makeSemaphore(concurrency: number): () => Promise<() => void>; /** * Default concurrency for git-history tasks: CPU count clamped to [2, 8]. * Each getDocHistoryAsync call issues one git process, so this saturates git * without spawning excessively on many-core machines. Load-bearing for the CLI * / postBuild per-file fan-out; the preBuild meta pass no longer uses it — it * walks history once via getAllFilesFirstLastMetaAsync (#2517). */ declare function defaultGitConcurrency(): number; export { defaultGitConcurrency, makeSemaphore };