export declare const DEFAULT_IDLE_TIMEOUT_SECS = 90; export declare const DEFAULT_MIN_PAGES_PER_WORKER = 25; /** Default BullMQ job-lock duration (ms) — 5 min. */ export declare const DEFAULT_BULLMQ_LOCK_DURATION_MS = 300000; /** Default BullMQ stalled-check interval (ms) — 30 s. */ export declare const DEFAULT_BULLMQ_STALLED_INTERVAL_MS = 30000; /** * Clamp a BullMQ lock duration to a safe minimum (5s). A crashed coordinator's * run becomes eligible for stalled-recovery (re-delivery to another worker, * which resumes the crawl) once this elapses without renewal. Long enough by * default that a live coordinator's periodic extendLock keeps it held. Read * from WorkerConfig.bullmqLockDurationMs, which the API serves (env fallback) — * shared by worker.ts (Worker construction) and processor.ts (extendLock) so * they never disagree. */ export declare function bullmqLockMs(config: WorkerConfig): number; /** Clamp the BullMQ stalled-check interval to a safe minimum (2s). */ export declare function bullmqStalledIntervalMs(config: WorkerConfig): number; export interface WorkerConfig { redisUrl?: string; apiBaseUrl: string; dockerImage?: string; crawlerRedisUrl?: string; containerCount: number; idleTimeoutSecs: number; minPagesPerWorker: number; bullmqLockDurationMs: number; bullmqStalledIntervalMs: number; workerId: string; logLevel: string; runExecutionQueue: string; apiKey?: string; } export declare function loadConfig(): WorkerConfig; //# sourceMappingURL=config.d.ts.map