"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseHCL = parseHCL;
exports.parseJSON = parseJSON;
const hcl2json_1 = require("@cdktf/hcl2json");
async function parseHCL(content, fileName) {
    try {
        return await (0, hcl2json_1.parse)(fileName, content);
    }
    catch (err) /* istanbul ignore next */ {
        return null;
    }
}
function parseJSON(content) {
    return JSON.parse(content);
}
//# sourceMappingURL=index.js.map