import { TSemaphore } from "@effect/core/stm/TSemaphore/definition"; import { Effect } from "@effect/core/io/Effect/definition"; /** * Executes the specified effect, acquiring the specified number of permits * immediately before the effect begins execution and releasing them * immediately after the effect completes execution, whether by success, * failure, or interruption. * @tsplus static effect/core/stm/TSemaphore.Aspects withPermits * @tsplus pipeable effect/core/stm/TSemaphore withPermits * @tsplus location "@effect/core/stm/TSemaphore/operations/withPermits" */ export declare function withPermits(permits: number): (self: TSemaphore) => (effect: import("../../../io/Effect").Effect) => import("../../../io/Effect").Effect; //# sourceMappingURL=withPermits.d.ts.map