@legalplace/tagextractor 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintrc ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "env": {
3
+ "browser": true,
4
+ "commonjs": true,
5
+ "es6": true,
6
+ "jest": true,
7
+ "node": true
8
+ },
9
+
10
+ "extends": [
11
+ "airbnb-base",
12
+ "plugin:prettier/recommended"
13
+ ],
14
+
15
+ "parser": "@typescript-eslint/parser",
16
+ "parserOptions": {
17
+ "project": "./tsconfig.eslint.json"
18
+ },
19
+
20
+ "plugins": [
21
+ "prettier", "@typescript-eslint"
22
+ ],
23
+
24
+ "rules": {
25
+ "prettier/prettier": ["error"],
26
+ "no-unused-vars": "off",
27
+ "@typescript-eslint/no-unused-vars": ["error", {
28
+ "vars": "all",
29
+ "args": "after-used",
30
+ "ignoreRestSiblings": false
31
+ }],
32
+ "import/no-extraneous-dependencies": ["error", {
33
+ "devDependencies": true
34
+ }],
35
+ "no-continue": 0,
36
+ "class-methods-use-this": 0,
37
+ "no-underscore-dangle": 0,
38
+ "import/prefer-default-export": "warn",
39
+ "camelcase": "error",
40
+ "no-undef": 0,
41
+ "no-dupe-class-members": "off"
42
+ },
43
+
44
+
45
+ "settings": {
46
+ "import/resolver": {
47
+ "node": {
48
+ "extensions": [".js", ".jsx", ".ts", ".tsx"]
49
+ }
50
+ }
51
+ }
52
+ }
package/.gitlab-ci.yml ADDED
@@ -0,0 +1,43 @@
1
+ image: 148253454541.dkr.ecr.eu-west-1.amazonaws.com/legalplace:latest
2
+
3
+
4
+ stages:
5
+ - setup
6
+ - publish
7
+
8
+ before_script:
9
+ - export PATH=$PATH:./node_modules/.bin/
10
+
11
+ variables:
12
+ DOCKER_DRIVER: overlay2
13
+
14
+ setup:
15
+ stage: setup
16
+ artifacts:
17
+ paths:
18
+ - dist/
19
+ only:
20
+ changes:
21
+ - yarn.lock
22
+ - package.json
23
+ - .gitlab-ci.yml
24
+ script:
25
+ - yarn -v
26
+ - node -v
27
+ - yarn install --frozen-lockfile --check-files --silent
28
+ - yarn build
29
+
30
+ publish:
31
+ stage: publish
32
+ except:
33
+ variables:
34
+ - $CI_COMMIT_MESSAGE =~ /skip-publish/
35
+ script:
36
+ - npm publish
37
+ environment:
38
+ name: development
39
+ only:
40
+ refs:
41
+ - master
42
+ changes:
43
+ - package.json
package/.prettierrc.js ADDED
@@ -0,0 +1,10 @@
1
+ module.exports = {
2
+ printWidth: 180,
3
+ useTabs: false,
4
+ tabWidth: 2,
5
+ semi: false,
6
+ singleQuote: true,
7
+ trailingComma: 'none',
8
+ parser: 'typescript',
9
+ endOfLine: 'lf'
10
+ }
@@ -0,0 +1,2 @@
1
+ import TagsExtractor from './libs/Extractor';
2
+ export default TagsExtractor;
package/dist/index.js ADDED
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var Extractor_1 = __importDefault(require("./libs/Extractor"));
7
+ exports.default = Extractor_1.default;
@@ -0,0 +1,17 @@
1
+ import { Types } from '@legalplace/referencesparser';
2
+ import { ConditionV3 } from '@legalplace/models-v3-types';
3
+ import { ConditionDataMap } from './DataPopulator';
4
+ import InputsType from '../types/inputs.type';
5
+ declare class ConditionsRunner {
6
+ private references;
7
+ private ovc;
8
+ constructor(references: Types.ReferencesType, ovc: InputsType);
9
+ isOptionRelatedToOption(optionA: number, optionB: number): boolean;
10
+ isVariableRelatedToOption(variableId: number, optionId: number): boolean;
11
+ isVariableRelatedToVariable(variableA: number, variableB: number): boolean;
12
+ executeCondition(condition: {
13
+ dataMap: ConditionDataMap;
14
+ conditions: ConditionV3;
15
+ }, id: number, index: number, conditionType: 'options' | 'optionValidator' | 'variables' | 'prefillers' | 'variableValidator' | 'sections' | 'documents'): any;
16
+ }
17
+ export default ConditionsRunner;
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var lplogic_1 = __importDefault(require("@legalplace/lplogic"));
7
+ var DataPopulator_1 = __importDefault(require("./DataPopulator"));
8
+ var ConditionsRunner = (function () {
9
+ function ConditionsRunner(references, ovc) {
10
+ this.references = references;
11
+ this.ovc = ovc;
12
+ }
13
+ ConditionsRunner.prototype.isOptionRelatedToOption = function (optionA, optionB) {
14
+ var OptionBParents = this.references.relations.options[optionB].parents;
15
+ var OptionBRoot = OptionBParents[OptionBParents.length - 1];
16
+ var OptionBRootRelations = OptionBRoot ? this.references.relations.options[OptionBRoot] : undefined;
17
+ if (OptionBRootRelations) {
18
+ if (optionA === optionB || OptionBRootRelations.children.options.includes(optionA) || OptionBRootRelations.dependants.includes(optionA)) {
19
+ return true;
20
+ }
21
+ }
22
+ return false;
23
+ };
24
+ ConditionsRunner.prototype.isVariableRelatedToOption = function (variableId, optionId) {
25
+ var variableParentId = this.references.relations.variables[variableId].parents[0];
26
+ var optionParents = this.references.relations.options[variableParentId].parents;
27
+ var optionRoot = optionParents[optionParents.length - 1];
28
+ var optionRootRelations = optionRoot ? this.references.relations.options[optionRoot] : undefined;
29
+ if (optionRootRelations) {
30
+ if (optionRootRelations.children.options.includes(optionId) || optionRootRelations.dependants.includes(optionId)) {
31
+ return true;
32
+ }
33
+ }
34
+ return false;
35
+ };
36
+ ConditionsRunner.prototype.isVariableRelatedToVariable = function (variableA, variableB) {
37
+ var optionA = this.references.relations.variables[variableA].parents[0];
38
+ var optionB = this.references.relations.variables[variableB].parents[0];
39
+ var OptionBParents = this.references.relations.options[optionB].parents;
40
+ var OptionBRoot = OptionBParents[OptionBParents.length - 1];
41
+ var OptionBRootRelations = OptionBRoot ? this.references.relations.options[OptionBRoot] : undefined;
42
+ if (OptionBRootRelations) {
43
+ if (optionA === optionB || OptionBRootRelations.children.options.includes(optionA) || OptionBRootRelations.dependants.includes(optionA)) {
44
+ return true;
45
+ }
46
+ }
47
+ return false;
48
+ };
49
+ ConditionsRunner.prototype.executeCondition = function (condition, id, index, conditionType) {
50
+ var _this = this;
51
+ if (Array.isArray(condition))
52
+ return condition.map(function (_condition) { return _this.executeCondition(_condition, id, index, conditionType); });
53
+ var currentData;
54
+ if (conditionType === 'options' || conditionType === 'optionValidator') {
55
+ currentData = new DataPopulator_1.default(this, this.references, this.ovc, condition.dataMap, id, index).getData();
56
+ }
57
+ else if (conditionType === 'variables' || conditionType === 'prefillers' || conditionType === 'variableValidator') {
58
+ var dataId = this.references.relations.variables[id].parents[0];
59
+ currentData = new DataPopulator_1.default(this, this.references, this.ovc, condition.dataMap, dataId, index).getData();
60
+ }
61
+ else if (conditionType === 'sections' || conditionType === 'documents') {
62
+ currentData = new DataPopulator_1.default(this, this.references, this.ovc, condition.dataMap, id, index).getData();
63
+ }
64
+ return lplogic_1.default(condition.conditions, currentData);
65
+ };
66
+ return ConditionsRunner;
67
+ }());
68
+ exports.default = ConditionsRunner;
@@ -0,0 +1,53 @@
1
+ import { Types } from '@legalplace/referencesparser';
2
+ import ConditionsRunner from './ConditionsRunner';
3
+ declare type OVC_TYPE = {
4
+ options: {
5
+ [key: string]: boolean[];
6
+ };
7
+ variables: {
8
+ [key: string]: (number | string)[];
9
+ };
10
+ };
11
+ declare class DataPopulator {
12
+ private references;
13
+ private ovc;
14
+ private conditionsRunner;
15
+ private id?;
16
+ private index?;
17
+ private dataMap;
18
+ private data;
19
+ constructor(conditionsRunner: ConditionsRunner, references: Types.ReferencesType, ovc: OVC_TYPE, dataMap: ConditionDataMap, id?: number, index?: number);
20
+ getData(): Readonly<ConditionData>;
21
+ private populateConditions;
22
+ private getOptionConditions;
23
+ private getVariablesConditions;
24
+ private populateVariables;
25
+ private getVariableValues;
26
+ private getVariableRootParent;
27
+ private cleanArrayFromNullValues;
28
+ populateOptions(): void;
29
+ private getOptionInputs;
30
+ private getOptionRootParent;
31
+ private optionConditionValue;
32
+ private variableConditionValue;
33
+ private sectionConditionValue;
34
+ }
35
+ export interface ConditionDataMap {
36
+ o: number[];
37
+ v: number[];
38
+ c: {
39
+ o: number[];
40
+ s: number[];
41
+ v: number[];
42
+ };
43
+ }
44
+ export interface ConditionData {
45
+ o: Record<string, boolean[]>;
46
+ v: Record<string, (string | number)[]>;
47
+ c: {
48
+ o: Record<string, boolean[]>;
49
+ s: Record<string, boolean[]>;
50
+ v: Record<string, boolean[]>;
51
+ };
52
+ }
53
+ export default DataPopulator;
@@ -0,0 +1,194 @@
1
+ "use strict";
2
+ var __spreadArrays = (this && this.__spreadArrays) || function () {
3
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
4
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
5
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
6
+ r[k] = a[j];
7
+ return r;
8
+ };
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ var DataPopulator = (function () {
11
+ function DataPopulator(conditionsRunner, references, ovc, dataMap, id, index) {
12
+ this.data = {
13
+ o: {},
14
+ v: {},
15
+ c: {
16
+ o: {},
17
+ s: {},
18
+ v: {}
19
+ }
20
+ };
21
+ this.id = id;
22
+ this.ovc = ovc;
23
+ this.index = index;
24
+ this.dataMap = dataMap;
25
+ this.references = references;
26
+ this.conditionsRunner = conditionsRunner;
27
+ this.populateVariables();
28
+ this.populateOptions();
29
+ this.populateConditions();
30
+ }
31
+ DataPopulator.prototype.getData = function () {
32
+ return this.data;
33
+ };
34
+ DataPopulator.prototype.populateConditions = function () {
35
+ for (var i = 0; i < this.dataMap.c.s.length; i += 1) {
36
+ var sectionId = this.dataMap.c.s[i];
37
+ var sectionCondition = this.sectionConditionValue(sectionId);
38
+ this.data.c.s[sectionId] = [sectionCondition !== false];
39
+ }
40
+ for (var i = 0; i < this.dataMap.c.o.length; i += 1) {
41
+ var optionId = this.dataMap.c.o[i];
42
+ var optionCondition = __spreadArrays(this.getOptionConditions(optionId));
43
+ this.data.c.o[optionId] = optionCondition === undefined ? [false] : optionCondition;
44
+ }
45
+ for (var i = 0; i < this.dataMap.c.v.length; i += 1) {
46
+ var variableId = this.dataMap.c.v[i];
47
+ var variableCondition = __spreadArrays(this.getVariablesConditions(variableId));
48
+ this.data.c.v[variableId] = variableCondition === undefined ? [false] : variableCondition;
49
+ }
50
+ };
51
+ DataPopulator.prototype.getOptionConditions = function (optionId) {
52
+ var conditions = this.optionConditionValue(optionId);
53
+ if (conditions === undefined)
54
+ return [true];
55
+ if (this.id === undefined || this.index === undefined) {
56
+ return conditions;
57
+ }
58
+ var optionRootParent = this.getOptionRootParent(optionId);
59
+ var optionRootRelations = this.references.relations.options[optionRootParent];
60
+ if (optionRootRelations.children.options.includes(this.id) ||
61
+ optionRootRelations.dependants.includes(this.id) ||
62
+ this.id === optionRootParent) {
63
+ if (conditions !== undefined && conditions[this.index] === false)
64
+ return [false];
65
+ return [conditions[this.index]];
66
+ }
67
+ return conditions;
68
+ };
69
+ DataPopulator.prototype.getVariablesConditions = function (variableId) {
70
+ var conditions = this.variableConditionValue(variableId);
71
+ if (conditions === undefined)
72
+ return [true];
73
+ if (this.id === undefined || this.index === undefined) {
74
+ return conditions;
75
+ }
76
+ var variableRootParent = this.getVariableRootParent(variableId);
77
+ var variableRootRelations = this.references.relations.options[variableRootParent];
78
+ if (variableRootRelations.children.options.includes(this.id) ||
79
+ variableRootRelations.dependants.includes(this.id) ||
80
+ this.id === variableRootParent) {
81
+ return [conditions[this.index]];
82
+ }
83
+ return conditions;
84
+ };
85
+ DataPopulator.prototype.populateVariables = function () {
86
+ var _loop_1 = function (i) {
87
+ var variableId = this_1.dataMap.v[i];
88
+ var variableReference = this_1.references.variables[variableId];
89
+ var values = this_1.getVariableValues(variableId);
90
+ var parseNumber = function (v) {
91
+ var result = parseFloat(v);
92
+ return Number.isNaN(result) ? '' : result;
93
+ };
94
+ if (variableReference.type === 'number') {
95
+ values = values.map(function (v) { return (typeof v === 'number' ? v : parseNumber(v)); });
96
+ }
97
+ this_1.data.v[variableId] = __spreadArrays(values);
98
+ };
99
+ var this_1 = this;
100
+ for (var i = 0; i < this.dataMap.v.length; i += 1) {
101
+ _loop_1(i);
102
+ }
103
+ };
104
+ DataPopulator.prototype.getVariableValues = function (variableId) {
105
+ var conditions = this.variableConditionValue(variableId);
106
+ var value = this.ovc.variables[variableId];
107
+ if (this.id === undefined || this.index === undefined) {
108
+ return value;
109
+ }
110
+ var variableRootParent = this.getVariableRootParent(variableId);
111
+ var variableRootRelations = this.references.relations.options[variableRootParent];
112
+ if (variableRootRelations.children.options.includes(this.id) || variableRootRelations.dependants.includes(this.id) || this.id === variableRootParent) {
113
+ if (conditions !== undefined && conditions[this.index] === false)
114
+ return ['fAl$e'];
115
+ return [value[this.index]];
116
+ }
117
+ var cleanValues = this.cleanArrayFromNullValues(__spreadArrays(value));
118
+ if (conditions === undefined)
119
+ return cleanValues;
120
+ return cleanValues.map(function (currentValue, index) {
121
+ if (conditions[index] === false)
122
+ return 'fAl$e';
123
+ return currentValue;
124
+ });
125
+ };
126
+ DataPopulator.prototype.getVariableRootParent = function (variableId) {
127
+ var variableParents = this.references.relations.variables[variableId].parents;
128
+ return variableParents[variableParents.length - 1];
129
+ };
130
+ DataPopulator.prototype.cleanArrayFromNullValues = function (arr) {
131
+ return arr.map(function (v) { return (v === null ? '' : v); });
132
+ };
133
+ DataPopulator.prototype.populateOptions = function () {
134
+ for (var i = 0; i < this.dataMap.o.length; i += 1) {
135
+ var optionId = this.dataMap.o[i];
136
+ var inputs = this.getOptionInputs(optionId);
137
+ this.data.o[optionId] = __spreadArrays(inputs);
138
+ }
139
+ };
140
+ DataPopulator.prototype.getOptionInputs = function (optionId) {
141
+ var conditions = this.optionConditionValue(optionId);
142
+ var inputs = this.ovc.options[optionId];
143
+ if (this.id === undefined || this.index === undefined) {
144
+ return inputs;
145
+ }
146
+ var optionRootParent = this.getOptionRootParent(optionId);
147
+ var optionRootRelations = this.references.relations.options[optionRootParent];
148
+ if (optionRootRelations.children.options.includes(this.id) || optionRootRelations.dependants.includes(this.id) || this.id === optionRootParent) {
149
+ if (conditions !== undefined && conditions[this.index] === false)
150
+ return [false];
151
+ return [inputs[this.index]];
152
+ }
153
+ if (conditions === undefined)
154
+ return inputs;
155
+ return inputs.map(function (value, index) {
156
+ if (conditions[index] === false)
157
+ return false;
158
+ return value;
159
+ });
160
+ };
161
+ DataPopulator.prototype.getOptionRootParent = function (optionId) {
162
+ var optionParents = this.references.relations.options[optionId].parents;
163
+ return optionParents.length > 0 ? optionParents[optionParents.length - 1] : optionId;
164
+ };
165
+ DataPopulator.prototype.optionConditionValue = function (optionId) {
166
+ var _this = this;
167
+ var conditions = this.references.conditions.options[optionId];
168
+ if (conditions === undefined)
169
+ return undefined;
170
+ var inputs = this.ovc.options[optionId];
171
+ return inputs.map(function (input, index) {
172
+ return _this.conditionsRunner.executeCondition(conditions, optionId, index, 'options');
173
+ });
174
+ };
175
+ DataPopulator.prototype.variableConditionValue = function (variableId) {
176
+ var _this = this;
177
+ var conditions = this.references.conditions.variables[variableId];
178
+ if (conditions === undefined)
179
+ return undefined;
180
+ var inputs = this.ovc.variables[variableId];
181
+ var result = inputs.map(function (input, index) {
182
+ return _this.conditionsRunner.executeCondition(conditions, variableId, index, 'variables');
183
+ });
184
+ return result;
185
+ };
186
+ DataPopulator.prototype.sectionConditionValue = function (sectionId) {
187
+ var conditions = this.references.conditions.sections.main[sectionId];
188
+ if (conditions === undefined)
189
+ return undefined;
190
+ return this.conditionsRunner.executeCondition(conditions, 0, 0, 'sections');
191
+ };
192
+ return DataPopulator;
193
+ }());
194
+ exports.default = DataPopulator;
@@ -0,0 +1,17 @@
1
+ import { ModelV3 } from "@legalplace/models-v3-types";
2
+ import InputsType from "../types/inputs.type";
3
+ import OvcType from "../types/ovc.type";
4
+ import TagsType from "../types/tags.type";
5
+ declare class TagsExtractor {
6
+ private references;
7
+ private inputs;
8
+ private conditionsRunner;
9
+ private tags;
10
+ constructor(model: ModelV3, ovc: OvcType | InputsType);
11
+ get getTags(): TagsType;
12
+ private extractFromOptions;
13
+ private extractFromVariables;
14
+ private optionConditionValue;
15
+ private variableConditionValue;
16
+ }
17
+ export default TagsExtractor;
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var referencesparser_1 = require("@legalplace/referencesparser");
7
+ var ConditionsRunner_1 = __importDefault(require("./ConditionsRunner"));
8
+ var OvcConverter_1 = __importDefault(require("./OvcConverter"));
9
+ var TagsExtractor = (function () {
10
+ function TagsExtractor(model, ovc) {
11
+ this.tags = {
12
+ options: {},
13
+ variables: {}
14
+ };
15
+ this.references = new referencesparser_1.ReferencesParser(model).references;
16
+ this.inputs = OvcConverter_1.default.isOptionsVariables(ovc) ? ovc : OvcConverter_1.default.convertToOptionsVariables(ovc, this.references);
17
+ this.conditionsRunner = new ConditionsRunner_1.default(this.references, this.inputs);
18
+ this.extractFromOptions();
19
+ this.extractFromVariables();
20
+ }
21
+ Object.defineProperty(TagsExtractor.prototype, "getTags", {
22
+ get: function () {
23
+ return this.tags;
24
+ },
25
+ enumerable: false,
26
+ configurable: true
27
+ });
28
+ TagsExtractor.prototype.extractFromOptions = function () {
29
+ var _this = this;
30
+ Object.keys(this.references.options).forEach(function (id) {
31
+ var _a = _this.references.options[id].meta, tags = _a.tags, label = _a.label;
32
+ if (Array.isArray(tags) && tags.length > 0) {
33
+ var conditions_1 = _this.optionConditionValue(parseInt(id, 10));
34
+ _this.inputs.options[id].forEach(function (v, index) {
35
+ tags.forEach(function (tag) {
36
+ if (_this.tags.options[tag] === undefined)
37
+ _this.tags.options[tag] = [];
38
+ console.log(conditions_1[index], conditions_1);
39
+ _this.tags.options[tag].push({
40
+ id: parseInt(id, 10),
41
+ index: index,
42
+ label: label,
43
+ condition: conditions_1[index],
44
+ value: _this.inputs.options[id][index]
45
+ });
46
+ });
47
+ });
48
+ }
49
+ });
50
+ };
51
+ TagsExtractor.prototype.extractFromVariables = function () {
52
+ var _this = this;
53
+ Object.keys(this.references.variables).forEach(function (id) {
54
+ var _a = _this.references.variables[id], tags = _a.tags, label = _a.label;
55
+ if (Array.isArray(tags) && tags.length > 0) {
56
+ var conditions_2 = _this.variableConditionValue(parseInt(id, 10));
57
+ _this.inputs.variables[id].forEach(function (v, index) {
58
+ tags.forEach(function (tag) {
59
+ if (_this.tags.variables[tag] === undefined)
60
+ _this.tags.variables[tag] = [];
61
+ _this.tags.variables[tag].push({
62
+ id: parseInt(id, 10),
63
+ index: index,
64
+ label: label,
65
+ condition: conditions_2[index],
66
+ value: _this.inputs.variables[id][index]
67
+ });
68
+ });
69
+ });
70
+ }
71
+ });
72
+ };
73
+ TagsExtractor.prototype.optionConditionValue = function (optionId) {
74
+ var _this = this;
75
+ var conditions = this.references.conditions.options[optionId];
76
+ var inputs = this.inputs.options[optionId];
77
+ if (conditions === undefined)
78
+ return inputs.map(function () { return true; });
79
+ return inputs.map(function (input, index) {
80
+ return _this.conditionsRunner.executeCondition(conditions, optionId, index, 'options');
81
+ });
82
+ };
83
+ TagsExtractor.prototype.variableConditionValue = function (variableId) {
84
+ var _this = this;
85
+ var conditions = this.references.conditions.variables[variableId];
86
+ var inputs = this.inputs.variables[variableId];
87
+ if (conditions === undefined)
88
+ return inputs.map(function () { return true; });
89
+ var result = inputs.map(function (input, index) {
90
+ return _this.conditionsRunner.executeCondition(conditions, variableId, index, 'variables');
91
+ });
92
+ return result;
93
+ };
94
+ return TagsExtractor;
95
+ }());
96
+ exports.default = TagsExtractor;
@@ -0,0 +1,11 @@
1
+ import { Types } from '@legalplace/referencesparser';
2
+ import InputsType from '../types/inputs.type';
3
+ import OvcType from '../types/ovc.type';
4
+ declare class OvcConverter {
5
+ convertToOptionsVariables(ovc: OvcType, references: Types.ReferencesType): InputsType;
6
+ isOvc(_obj: InputsType | OvcType): _obj is OvcType;
7
+ isOptionsVariables(_obj: InputsType | OvcType): _obj is InputsType;
8
+ private pushStaticChildren;
9
+ }
10
+ declare const _default: OvcConverter;
11
+ export default _default;