/*! * name: async-primitives * version: 1.7.0 * description: A collection of primitive functions for asynchronous operations * author: Kouji Matsui (@kekyo@mi.kekyo.net) * license: MIT * repository.url: https://github.com/kekyo/async-primitives.git * git.commit.hash: 9472fbd5310b92690d84aaafb897429a04c013c5 */ import { Semaphore } from '../types.js'; /** * Creates a new Semaphore instance for managing limited concurrent access * @param count The maximum number of concurrent acquisitions allowed (must be greater than 0) * @param maxConsecutiveCalls The maximum number of consecutive calls before yielding control * @returns A new Semaphore for managing concurrent resource access */ export declare const createSemaphore: (count: number, maxConsecutiveCalls?: number) => Semaphore; //# sourceMappingURL=semaphore.d.ts.map