@botonic/plugin-flow-builder
Version:
Botonic plugin for **Hubtype Flow Builder**: run and bridge flow-driven logic from bots on the **current** line.
10 lines (9 loc) • 709 B
TypeScript
import { type HtCondition, type HtNodeLink, VariableFormat } from '../hubtype-fields';
export type ConditionMatch = {
customResult: string;
target: HtNodeLink;
operator: string;
};
export declare function getConditionCustomResult(condition: HtCondition, variableFormat: VariableFormat): string;
export declare function findLastMatchingCondition<T extends HtCondition>(conditions: T[], variable: unknown, variableFormat: VariableFormat, evaluate: (variable: unknown, condition: T) => boolean): ConditionMatch | undefined;
export declare function resolveWithDefaultTarget(match: ConditionMatch | undefined, defaultTarget: HtNodeLink, nodeCode: string, defaultCustomResult?: string): ConditionMatch;