import Lock from './Lock'; /** asynchronous unix-like semaphore */ export declare class Semaphore { lock: Lock; value: number; /** value is the initial number of allowed concurrent tasks */ constructor(value?: bigint | number | string); /** increments semaphore */ post(): Promise; /** decrements semaphore */ wait(): Promise; }