import { OnModuleInit, OnModuleDestroy } from '@nestjs/common'; import { Observable } from 'rxjs'; import { GrpcOptions, GrpcClientOptions } from '../interfaces'; import { GrpcProtoService } from './grpc-proto.service'; export declare class GrpcClientService implements OnModuleInit, OnModuleDestroy { private readonly options; private readonly protoService; private readonly logger; private readonly clients; private readonly activeStreams; private cleanupInterval?; constructor(options: GrpcOptions, protoService: GrpcProtoService); onModuleInit(): void; onModuleDestroy(): void; create(serviceName: string, options?: Partial): Promise; call(serviceName: string, methodName: string, request: TRequest, options?: Partial): Promise; serverStream(serviceName: string, methodName: string, request: TRequest, options?: Partial): Observable; clientStream(serviceName: string, methodName: string, request: Observable, options?: Partial): Promise; bidiStream(serviceName: string, methodName: string, request: Observable, options?: Partial): Observable; private cleanupStaleClients; private executeWithRetry; private getClientKey; private getConfigHash; private mergeClientOptions; private getServiceConstructor; private getAvailableServiceNames; private findServicePath; private createClient; private callUnaryMethod; private validateMethod; }