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