"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.readBinary = void 0;

var _session = _interopRequireDefault(require("../helpers/session"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

const readBinary = path => () => {
  const config = {
    responseType: 'blob'
  };
  return (0, _session.default)().read(path, config);
};

exports.readBinary = readBinary;
var _default = {};
exports.default = _default;