export async function registerRedisQueueDriver(queue) {
    const mod = await import('./BullMQRedisQueue.js');
    queue.register('redis', mod.default);
}
const importCore = async () => {
    try {
        return await import('../../../src/index.js');
    }
    catch {
        try {
            return await import('../../../src/index.js');
        }
        catch {
            return {};
        }
    }
};
const core = (await importCore());
if (core.Queue !== undefined) {
    await registerRedisQueueDriver(core.Queue);
}
