UNPKG

nxkit

Version:

This is a collection of tools, independent of any other libraries

23 lines (22 loc) 792 B
import { MqttClient, CreateOptions } from './mqtt'; import { Notification, Event } from './event'; /** * @class NotificationCenter */ export declare class NotificationCenter extends Notification { private m_topic; private m_mqtt; get topic(): string; get mqtt(): MqttClient; constructor(url?: string, topic?: string, options?: CreateOptions); afterNotificationHandle(event: string, data: any): number; subscribeAll(): void; getNoticer(name: string): import("./event").EventNoticer<Event<any, object>>; trigger(event: string, data: any): number; publish(event: string, data: any): MqttClient; } declare const _default: { NotificationCenter: typeof NotificationCenter; defaultNotificationCenter: NotificationCenter; }; export default _default;