'use strict';

var pngSync = require('../../../../../../_virtual/png-sync.js');
var parserSync = require('./parser-sync.js');
var packerSync = require('./packer-sync.js');

let parse = parserSync.parserSync;
let pack = packerSync.packerSync;

pngSync.__exports.read = function (buffer, options) {
  return parse(buffer, options || {});
};

pngSync.__exports.write = function (png, options) {
  return pack(png, options);
};

module.exports = pngSync.__exports;
