UNPKG

684 BTypeScriptView Raw
1import { Call } from './call-stream';
2import { Channel } from './channel';
3import { BaseFilter, Filter, FilterFactory } from './filter';
4import { Metadata } from './metadata';
5export declare class CallCredentialsFilter extends BaseFilter implements Filter {
6 private readonly channel;
7 private readonly stream;
8 private serviceUrl;
9 constructor(channel: Channel, stream: Call);
10 sendMetadata(metadata: Promise<Metadata>): Promise<Metadata>;
11}
12export declare class CallCredentialsFilterFactory implements FilterFactory<CallCredentialsFilter> {
13 private readonly channel;
14 constructor(channel: Channel);
15 createFilter(callStream: Call): CallCredentialsFilter;
16}