import { MongoClient } from "mongodb"; import { ILockCallback, ILockManagerOptions } from "../types"; export declare class LockManager { readonly mongoClient: MongoClient; readonly dbName: string; readonly collectionName: string; readonly expiresIn: number; readonly maxRetry: number; readonly retryDelay: number; constructor(options: ILockManagerOptions); startLock(lockKey: string, callback: ILockCallback): Promise<{ value: T; }>; createCollection(): Promise; dropCollection(): Promise; }