import { VariableCondition } from '@easy-coder/sdk/variable';
import { default as Base } from '../base';
import { FlowNodeOptions } from '../../type';

export interface ConditionBranch {
    id: string;
    condition: VariableCondition.Desc;
    order: number;
    isDefault?: false;
    nextNodeName?: string;
}
export interface DefaultConditionBranch {
    id: string;
    isDefault: true;
    nextNodeName?: string;
}
export type ConditionParams = (ConditionBranch | DefaultConditionBranch)[];
export default class ConditionNode extends Base<ConditionParams> {
    static Type: string;
    constructor(option: FlowNodeOptions);
    protected _execute(): Promise<void>;
}
