import { type KeyLookup, type LockInfo, type OwnershipLookup } from "../../common/backend.js"; import type { RedisCapabilities, RedisConfig } from "../types.js"; /** Redis client with eval() and optional function commands */ interface RedisWithCommands { eval(script: string, numKeys: number, ...args: (string | number)[]): Promise; getLockInfoByKey?(lockKey: string, toleranceMs: string): Promise; getLockInfoByLockId?(lockIdKey: string, lockId: string, toleranceMs: string): Promise; } /** * Creates lookup operation for Redis backend. * @returns Async function that retrieves lock info by key or lockId * @see ../scripts.ts for Lua script implementations */ export declare function createLookupOperation(redis: RedisWithCommands, config: RedisConfig): (opts: KeyLookup | OwnershipLookup) => Promise | null>; export {};