export declare class Semaphore { private _capacity; private _active; private _waiting; constructor(capacity?: number); lock(thunk: () => T | PromiseLike): Promise; get active(): number; private runNext; private doRunNext; }