import * as grpc from '@grpc/grpc-js'; import { handleClientStreamingCall } from '@grpc/grpc-js/build/src/server-call'; import { ReactiveServerUnaryMethod, ReactiveServerRequestStreamMethod, ReactiveServerResponseStreamMethod, ReactiveServerBidirectionalStreamMethod } from './server_methods'; /** * Wraps a single reactive unary method with its non-reactive counterpart. * @param method The reactive method to be wrapped. * @returns A standard gRPC method. */ export declare function defineUnaryMethod(method: ReactiveServerUnaryMethod): grpc.handleUnaryCall; /** * Wraps a single reactive method with a stream request and unary response * with its non-reactive counterpart. * @param method The reactive method to be wrapped. * @returns A standard gRPC method. */ export declare function defineRequestStreamMethod(method: ReactiveServerRequestStreamMethod): handleClientStreamingCall; /** * Wraps a single reactive method with a unary request and stream response * with its non-reactive counterpart. * @param method The reactive method to be wrapped. * @returns A standard gRPC method. */ export declare function defineResponseStreamMethod(method: ReactiveServerResponseStreamMethod): grpc.handleServerStreamingCall; /** * Wraps a single reactive method with a stream request and response * with its non-reactive counterpart. * @param method The reactive method to be wrapped. * @returns A standard gRPC method. */ export declare function defineBidirectionalStreamMethod(method: ReactiveServerBidirectionalStreamMethod): grpc.handleBidiStreamingCall;