import { Client } from "nats"; import { IConfigReader, ILogger } from "merapi"; import { ITransport, IServiceModule } from "merapi-plugin-svx-rc"; export interface ISvxNats extends IServiceModule, ITransport { initialize() : Promise; start() : Promise; getConnection() : Client; constructSubject(type : string, name : string, subjectType : string, topic : string, version? : number) : string; } export type SvxSource = { eventId : string, serviceName : string, instanceId : string, serviceVersion : string, timestamp : number }