export interface KeyDefinition { type: 'certificate' | 'privateKey'; usage: 'DS' | 'KA'; name: string; eui: string; content: string; prePayment: boolean; } export interface Properties { server?: string; keys: KeyDefinition[]; } import type { KeyStore } from '@smartdcc/gbcs-parser'; import type { Node } from 'node-red'; import type { ConfigNode } from './dccboxed-config.properties'; import type { KeyObject } from 'node:crypto'; export interface LocalKeyEntry { eui: string; type: 'DS' | 'KA'; privateKey: boolean; key: KeyObject; prePayment: boolean; } export interface GbcsNode extends Node { server?: ConfigNode; keyStore: KeyStore; localKeys: LocalKeyEntry[]; }