"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.AmqpConnectionManagerClass = exports.connect = void 0;
/* eslint-disable @typescript-eslint/no-namespace */
const AmqpConnectionManager_js_1 = __importDefault(require("./AmqpConnectionManager.js"));
exports.AmqpConnectionManagerClass = AmqpConnectionManager_js_1.default;
function connect(urls, options) {
    const conn = new AmqpConnectionManager_js_1.default(urls, options);
    conn.connect().catch(() => {
        /* noop */
    });
    return conn;
}
exports.connect = connect;
const amqp = { connect };
exports.default = amqp;
