import * as tsplus_module_1 from "@effect/core/stm/TRef/operations/get";
import { concreteTSemaphore } from "@effect/core/stm/TSemaphore/operations/_internal/TSemaphoreInternal";
/**
 * Returns the number of available permits in a transactional context.
 *
 * @tsplus getter ets/TSemaphore available
 */

export function available(self) {
  void 0;
  return tsplus_module_1.get(self.permits);
}
//# sourceMappingURL=available.mjs.map