"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "QRCodeToFileAsync", {
    enumerable: true,
    get: function() {
        return QRCodeToFileAsync;
    }
});
const _qrcode = /*#__PURE__*/ _interop_require_default(require("qrcode"));
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
async function QRCodeToFileAsync(path, text, options) {
    const promise = await new Promise((resolve)=>{
        _qrcode.default.toFile(path, text, options, ()=>{
            resolve();
        });
    }).catch((err)=>{
        throw err;
    });
    return promise;
}

//# sourceMappingURL=helpers.js.map