import { RedisClient } from './connection'; import { QueueBaseOptions } from './queue-options'; import { KeysMap } from '../classes/queue-keys'; import { DatabaseType } from '../types/database-type'; export interface ScriptQueueContext { opts: QueueBaseOptions; toKey: (type: string) => string; keys: KeysMap; closing: Promise | undefined; /** * Returns a promise that resolves to a redis client. Normally used only by subclasses. */ get client(): Promise; /** * Optional dedicated blocking connection used by the backend's * `waitForJob` primitive. Only workers provide it; other contexts (e.g. a * plain Queue) leave it undefined since they never block waiting for jobs. */ blockingClient?: Promise; /** * Returns the database type of the Redis instance the client is connected to, */ get databaseType(): DatabaseType; /** * Returns the version of the Redis instance the client is connected to, */ get redisVersion(): string; }