@hhgtech/hhg-components
Version:
Hello Health Group common components
9 lines (8 loc) • 601 B
TypeScript
import { SubotBotItem, SubotMessage, SubotNodeItem } from "../../interfaces/types";
export declare const getDynamicScore: (node: SubotBotItem) => Record<string, import("../../interfaces/types").SubotDynamicScoreItem>;
export declare const getCurrentTotalDynamicScore: (listNodes: SubotNodeItem[], activeId?: string, nextActionId?: string, _formSubmitMeta?: SubotMessage['form_submit_meta']) => {
current_total_dynamic_score?: undefined;
} | {
current_total_dynamic_score: number;
};
export declare const replaceTextWithVariables: (label: string, listNodes: SubotNodeItem[]) => string;