import { default as Condition } from '../components/Models/Condition'; /** * Flattens unnecessary nested Groups. If a Group contains only one child which is also a Group, * and that child Group contains only ExpressionConditions, flatten it by replacing the parent Group's * single child with the child Group's children directly. */ export default function flattenNestedGroups(conditions: Condition[]): Condition[];