1 |
|
2 | import { BaseFilter, Filter, FilterFactory } from './filter';
|
3 | import { Call, WriteObject } from './call-stream';
|
4 | import { ChannelOptions } from './channel-options';
|
5 | export declare class MaxMessageSizeFilter extends BaseFilter implements Filter {
|
6 | private readonly options;
|
7 | private readonly callStream;
|
8 | private maxSendMessageSize;
|
9 | private maxReceiveMessageSize;
|
10 | constructor(options: ChannelOptions, callStream: Call);
|
11 | sendMessage(message: Promise<WriteObject>): Promise<WriteObject>;
|
12 | receiveMessage(message: Promise<Buffer>): Promise<Buffer>;
|
13 | }
|
14 | export declare class MaxMessageSizeFilterFactory implements FilterFactory<MaxMessageSizeFilter> {
|
15 | private readonly options;
|
16 | constructor(options: ChannelOptions);
|
17 | createFilter(callStream: Call): MaxMessageSizeFilter;
|
18 | }
|