export declare const ACQUIRE_SCRIPT = "\n-- KEYS[1]: lockKey\n-- ARGV[1]: lockValue\n-- ARGV[2]: lockTimeout\n\n-- Try to acquire the lock\nlocal acquired = redis.call('SET', KEYS[1], ARGV[1], 'NX', 'PX', ARGV[2])\nif acquired then\n return 1\nelse\n return 0\nend\n"; export declare const RELEASE_SCRIPT = "\n-- KEYS[1]: lockKey\n-- ARGV[1]: lockValue\n\n-- Check if the lock still belongs to us before releasing it\nlocal value = redis.call('GET', KEYS[1])\nif value == ARGV[1] then\n return redis.call('DEL', KEYS[1])\nelse\n return 0\nend\n"; export declare const EXTEND_SCRIPT = "\n-- KEYS[1]: lockKey\n-- ARGV[1]: lockValue\n-- ARGV[2]: lockTimeout\n\n-- Check if the lock still belongs to us before extending it\nlocal value = redis.call('GET', KEYS[1])\nif value == ARGV[1] then\n return redis.call('PEXPIRE', KEYS[1], ARGV[2])\nelse\n return 0\nend\n"; export declare const REFRESH_SCRIPT = "\n-- KEYS[1]: lockKey\n-- ARGV[1]: lockValue\n-- ARGV[2]: lockTimeout\n\n-- Check if the lock still belongs to us before refreshing it\nlocal value = redis.call('GET', KEYS[1])\nif value == ARGV[1] then\n return redis.call('PEXPIRE', KEYS[1], ARGV[2])\nelse\n return 0\nend\n";