namespace NT { /** A message callback function pointer type. */ export type MessageCallback = ( message : Message ) => void ; /**
     * Represents a subscription to a message and holds a handler pointer.
     */ export class MessageSubscriptionNode { /**
         * The message code being subscribed to.
         */ public code : string ; /**
         * The message handler.
         */ public handler : IMessageHandler ; /**
         * A callback to be made for handlers which do not use the interface.
         */ public callback : MessageCallback ; param code param handler param callback public constructor ( code , handler , callback ) { this . code = code ; this . handler = handler ; this . callback = callback ; } } /**
     * Represents a queued message with a handler pointer and/or callback.
     */ export class MessageQueueNode { /**
         * The message code being subscribed to.
         */ public message : Message ; /**
         * The message handler.
         */ public handler : IMessageHandler ; /**
         * A callback to be made for handlers which do not use the interface.
         */ public callback : MessageCallback ; param message param handler param callback public constructor ( message , handler , callback ) { this . message = message ; this . handler = handler ; this . callback = callback ; } } }