UNPKG

786 BTypeScriptView Raw
1import { Transport } from '../enums/transport.enum';
2import { ClientOptions, CustomClientOptions } from '../interfaces/client-metadata.interface';
3import { Closeable } from '../interfaces/closeable.interface';
4import { ClientGrpcProxy } from './client-grpc';
5import { ClientProxy } from './client-proxy';
6export interface IClientProxyFactory {
7 create(clientOptions: ClientOptions): ClientProxy & Closeable;
8}
9/**
10 * @publicApi
11 */
12export declare class ClientProxyFactory {
13 static create(clientOptions: {
14 transport: Transport.GRPC;
15 } & ClientOptions): ClientGrpcProxy;
16 static create(clientOptions: ClientOptions): ClientProxy & Closeable;
17 static create(clientOptions: CustomClientOptions): ClientProxy & Closeable;
18 private static isCustomClientOptions;
19}