/**
 * Queue Extensions - Backward Compatible Extensions
 * Extends existing Queue functionality without breaking changes
 */
import type { AdvancedJobOptions, QueueConfig } from '../../types/Queue';
import { createDeduplicationBuilder } from './DeduplicationBuilder';
import type { BullMQPayload } from './Queue';
/**
 * Extend existing Queue with advanced capabilities
 * This provides a migration path for existing code
 */
export declare function extendQueue(config: QueueConfig): void;
/**
 * Enhanced enqueue method that supports advanced options
 * This can be used as a drop-in replacement for Queue.enqueue
 */
export declare function enqueueAdvanced(name: string, payload: BullMQPayload, options?: AdvancedJobOptions): Promise<string>;
/**
 * Initialize default lock providers
 */
export declare function initializeDefaultLockProviders(): void;
/**
 * Get deduplication builder instance
 */
export declare function getDeduplicationBuilder(): ReturnType<typeof createDeduplicationBuilder>;
/**
 * Queue utilities for lock management
 */
export declare const QueueLocks: {
    release: (key: string) => Promise<void>;
    extend: (key: string, ttl: number) => Promise<boolean>;
    status: (key: string) => Promise<boolean>;
};
/**
 * Migration helpers for existing queue code
 */
export declare const MigrationHelpers: {
    /**
     * Convert existing job options to advanced options
     */
    toAdvancedOptions(existingOptions: Record<string, unknown>, uniqueId?: string): AdvancedJobOptions;
    /**
     * Add deduplication to existing job patterns
     */
    withDeduplication(existingOptions: Record<string, unknown>, deduplicationId: string, ttl?: number): AdvancedJobOptions;
};
//# sourceMappingURL=QueueExtensions.d.ts.map