import { AcquireParams, DistributedMutexConstructorProps, DistributedMutexFactory, IDistributedMutex, IReleaser } from "./types";
export declare class DistributedMutex implements IDistributedMutex {
    static factory: DistributedMutexFactory;
    private readonly _implementation;
    constructor(props: DistributedMutexConstructorProps);
    get isDestroyed(): boolean;
    runExclusive<T>(fn: () => Promise<T> | T): Promise<T>;
    runExclusive<T>(params: AcquireParams, fn: () => Promise<T> | T): Promise<T>;
    destroy(): Promise<void>;
    get name(): string;
    get implementation(): string;
    acquire(params?: {
        timeoutMs?: number;
    }): Promise<IReleaser>;
    cancel(errMessage?: string): Promise<void>;
    isLocked(): Promise<boolean>;
}
//# sourceMappingURL=distributed-mutex.d.ts.map