/** * SemaphoreStrategy - Implements distributed semaphore with consensus. */ import { ILockToolkit, SemaphoreOptions, SemaphoreStatus } from "../core/types"; import { SemaphorePermit } from "../primitives/semaphore"; export declare class SemaphoreStrategy { private readonly toolkit; constructor(toolkit: ILockToolkit); acquire(resource: string, options: SemaphoreOptions): Promise; extend(permit: SemaphorePermit, ttl: number): Promise<{ success: boolean; expiration: number; }>; release(permit: SemaphorePermit): Promise<{ success: boolean; remainingCount: number; }>; getStatus(resource: string, maxPermits: number): Promise; } //# sourceMappingURL=semaphore-strategy.d.ts.map