1 | /**
|
2 | * @publicApi
|
3 | */
|
4 | export declare class NatsRecord<TData = any, THeaders = any> {
|
5 | readonly data: TData;
|
6 | readonly headers?: THeaders;
|
7 | constructor(data: TData, headers?: THeaders);
|
8 | }
|
9 | /**
|
10 | * @publicApi
|
11 | */
|
12 | export declare class NatsRecordBuilder<TData> {
|
13 | private data?;
|
14 | private headers?;
|
15 | constructor(data?: TData);
|
16 | setHeaders<THeaders = any>(headers: THeaders): this;
|
17 | setData(data: TData): this;
|
18 | build(): NatsRecord;
|
19 | }
|