/** Reserve all currently available slots atomically, never hold a partial group while waiting. */ export declare class RenderCapacity { #private; readonly capacity: number; constructor(capacity: number); acquire(requested: number, signal?: AbortSignal): Promise<{ count: number; release: (count?: number) => void; }>; close(): void; } /** Keep each sampler on an absolute range so independent encoders can run together. */ export declare function runFrameShards(frameCount: number, parallelism: number, samplers: number, sample: (frame: number, worker: number, signal: AbortSignal) => Promise, signal?: AbortSignal): Promise; /** Stop assigning work on failure, cancel peers, and drain before releasing resources. */ export declare function runRenderPool(count: number, concurrency: number, task: (index: number, worker: number, signal: AbortSignal) => Promise, signal?: AbortSignal): Promise; //# sourceMappingURL=render-pool.d.ts.map