mirror of
https://github.com/musix-org/musix-oss
synced 2025-07-02 05:43:37 +00:00
20 lines
913 B
TypeScript
20 lines
913 B
TypeScript
import { APICaller, ApiCallerSettings } from '../apiCaller';
|
|
import { APICallback, CancellableStream, GRPCCall, SimpleCallbackFunction } from '../apitypes';
|
|
import { StreamDescriptor } from './streamDescriptor';
|
|
import { StreamProxy } from './streaming';
|
|
export declare class StreamingApiCaller implements APICaller {
|
|
descriptor: StreamDescriptor;
|
|
/**
|
|
* An API caller for methods of gRPC streaming.
|
|
* @private
|
|
* @constructor
|
|
* @param {StreamDescriptor} descriptor - the descriptor of the method structure.
|
|
*/
|
|
constructor(descriptor: StreamDescriptor);
|
|
init(settings: ApiCallerSettings, callback: APICallback): StreamProxy;
|
|
wrap(func: GRPCCall): GRPCCall;
|
|
call(apiCall: SimpleCallbackFunction, argument: {}, settings: {}, stream: StreamProxy): void;
|
|
fail(stream: CancellableStream, err: Error): void;
|
|
result(stream: CancellableStream): CancellableStream;
|
|
}
|