/** * Copyright 2017-2020 Plexus Interop Deutsche Bank AG * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { GenericClientApi, Feature } from './GenericClientApi'; import { UniqueId, InvocationRequestInfo, Completion } from '@plexus-interop/protocol'; import { GenericRequest, ServiceDiscoveryRequest, MethodDiscoveryRequest, MethodDiscoveryResponse, ServiceDiscoveryResponse } from '@plexus-interop/client-api'; import { ValueHandler, InvocationClient } from '../'; import { StreamingInvocationClient } from './handlers/streaming/StreamingInvocationClient'; import { InvocationObserver } from '../../generic'; /** * Base class for all generated clients * */ export declare abstract class GenericClientApiBase implements GenericClientApi { protected readonly client: GenericClientApi; constructor(client: GenericClientApi); getApplicationId(): string; getApplicationInstanceId(): UniqueId; supported(apiFeature: Feature): boolean; getConnectionId(): UniqueId; sendUnaryRequest(invocationInfo: GenericRequest, request: any, responseHandler: ValueHandler, requestType: any, responseType: any): Promise; sendRawUnaryRequest(invocationInfo: GenericRequest, request: ArrayBuffer, responseHandler: ValueHandler): Promise; sendBidirectionalStreamingRequest(invocationInfo: GenericRequest, responseObserver: InvocationObserver, requestType: any, responseType: any): Promise>; sendRawBidirectionalStreamingRequest(invocationInfo: GenericRequest, responseObserver: InvocationObserver): Promise>; sendServerStreamingRequest(invocationInfo: GenericRequest, request: any, responseObserver: InvocationObserver, requestType: any, responseType: any): Promise; sendRawServerStreamingRequest(invocationInfo: InvocationRequestInfo, request: ArrayBuffer, responseObserver: InvocationObserver): Promise; discoverService(discoveryRequest: ServiceDiscoveryRequest): Promise; discoverMethod(discoveryRequest: MethodDiscoveryRequest): Promise; disconnect(completion?: Completion | undefined): Promise; }