UNPKG

447 BTypeScriptView Raw
1import { BaseRpcContext } from './base-rpc.context';
2type MqttContextArgs = [string, Record<string, any>];
3/**
4 * @publicApi
5 */
6export declare class MqttContext extends BaseRpcContext<MqttContextArgs> {
7 constructor(args: MqttContextArgs);
8 /**
9 * Returns the name of the topic.
10 */
11 getTopic(): string;
12 /**
13 * Returns the reference to the original MQTT packet.
14 */
15 getPacket(): Record<string, any>;
16}
17export {};