import * as grpcWeb from 'grpc-web'; import * as echo_pb from './echo_pb'; // proto import: "echo.proto" export class EchoServiceClient { constructor (hostname: string, credentials?: null | { [index: string]: string; }, options?: null | { [index: string]: any; }); stop( request: echo_pb.StopRequest, metadata: grpcWeb.Metadata | undefined, callback: (err: grpcWeb.RpcError, response: echo_pb.StopResponse) => void ): grpcWeb.ClientReadableStream; echo( request: echo_pb.EchoRequest, metadata: grpcWeb.Metadata | undefined, callback: (err: grpcWeb.RpcError, response: echo_pb.EchoResponse) => void ): grpcWeb.ClientReadableStream; } export class EchoServicePromiseClient { constructor (hostname: string, credentials?: null | { [index: string]: string; }, options?: null | { [index: string]: any; }); stop( request: echo_pb.StopRequest, metadata?: grpcWeb.Metadata ): Promise; echo( request: echo_pb.EchoRequest, metadata?: grpcWeb.Metadata ): Promise; }