UNPKG

405 BTypeScriptView Raw
1import { BaseRpcContext } from './base-rpc.context';
2type NatsContextArgs = [string, any];
3/**
4 * @publicApi
5 */
6export declare class NatsContext extends BaseRpcContext<NatsContextArgs> {
7 constructor(args: NatsContextArgs);
8 /**
9 * Returns the name of the subject.
10 */
11 getSubject(): string;
12 /**
13 * Returns message headers (if exist).
14 */
15 getHeaders(): any;
16}
17export {};