import type { Tariff } from '@smartdcc/duis-templates'; import type { Node as RedNode, NodeMessage } from 'node-red'; export interface Properties { tariffBody?: string; input?: string; input_type: 'msg' | 'example'; output?: string; originatorEUI?: string; originatorEUI_type: 'msg' | 'eui' | 'flow' | 'global'; targetEUI?: string; targetEUI_type: 'msg' | 'eui' | 'flow' | 'global'; deafultName?: string; } export interface Node extends RedNode { tariffBody?: Tariff; input: (msg: NodeMessage) => string | object | undefined; output: (msg: NodeMessage, value: unknown) => void; originatorEUI: (msg: NodeMessage) => Promise; targetEUI: (msg: NodeMessage) => Promise; }