import { Expression } from "../../../../../../MagicConditionEdit/types/expression"; import { WidgetValue } from "../../../common/Output"; export declare enum BranchType { If = "if", Else = "else" } export interface IfBranch { branch_id: string; next_nodes: string[]; parameters: { id: string; version: string; type: string; structure: Expression.Condition | undefined; }; } export type Branch = { branch_id: string; next_nodes: string[]; config?: Record; input?: WidgetValue["value"]; output?: WidgetValue["value"]; branch_type?: BranchType; }; export default function addBranchTypeIfWithout(branches: Branch[]): Branch[];