"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.forIOObjVK = exports.forIOObjKV = exports.forIO = exports.io = void 0;
const object_1 = require("../util/object");
function io(callback) {
    callback('input');
    callback('output');
}
exports.io = io;
function forIO(data, callback) {
    if (data.input !== undefined) {
        callback('input', data.input);
    }
    if (data.output !== undefined) {
        callback('output', data.output);
    }
}
exports.forIO = forIO;
function forIOObjKV(data, callback) {
    forIO(data, (type, data) => {
        (0, object_1.forEachObjKV)(data, (key, value) => {
            callback(type, key, value);
        });
    });
}
exports.forIOObjKV = forIOObjKV;
function forIOObjVK(data, callback) {
    forIO(data, (type, data) => {
        (0, object_1.forEachObjVK)(data, (value, key) => {
            callback(type, value, key);
        });
    });
}
exports.forIOObjVK = forIOObjVK;
//# sourceMappingURL=IOOf.js.map