import { L as LockManager } from '../LockManager-BeW6JDFT.js'; import { b as MeshLockLease, a as MeshLockBackend, M as MeshLockAcquireOptions, c as MeshLockRecord } from '../types-BZGet48R.js'; export { d as MeshLockRunOptions } from '../types-BZGet48R.js'; import { P as NormalizedMeshConfig } from '../types-C9VYURdP.js'; import { a as SimpleRedisClientOptions } from '../SimpleRedisClient-155MXK60.js'; declare class LockLease implements MeshLockLease { private readonly backend; readonly key: string; readonly ownerId: string; readonly acquiredAt: string; readonly expiresAt: string; constructor(backend: MeshLockBackend, key: string, ownerId: string, acquiredAt: string, expiresAt: string); renew(ttlMs?: number): Promise; release(): Promise; } declare class MemoryLockBackend implements MeshLockBackend { readonly kind = "memory"; private readonly locks; acquire(key: string, ownerId: string, options?: MeshLockAcquireOptions): Promise; renew(key: string, ownerId: string, ttlMs: number): Promise; release(key: string, ownerId: string): Promise; list(): Promise; private pruneExpired; } declare class LockFactory { createBackend(config: NormalizedMeshConfig): MeshLockBackend; createManager(config: NormalizedMeshConfig, ownerId?: string): LockManager; } declare class MeshLockError extends Error { constructor(message: string); } declare class MeshLockTimeoutError extends MeshLockError { constructor(key: string); } interface RedisLockBackendOptions extends SimpleRedisClientOptions { readonly app: string; readonly keyPrefix?: string; } declare class RedisLockBackend implements MeshLockBackend { readonly kind = "redis"; private readonly client; private readonly prefix; constructor(options: RedisLockBackendOptions); acquire(key: string, ownerId: string, options?: MeshLockAcquireOptions): Promise; renew(key: string, ownerId: string, ttlMs: number): Promise; release(key: string, ownerId: string): Promise; list(): Promise; private keys; private lockKey; private indexKey; } export { LockFactory, LockLease, LockManager, MemoryLockBackend, MeshLockAcquireOptions, MeshLockBackend, MeshLockError, MeshLockLease, MeshLockRecord, MeshLockTimeoutError, RedisLockBackend };