1 | import { Transport } from '../enums/transport.enum';
|
2 | import { ClientOptions, CustomClientOptions } from '../interfaces/client-metadata.interface';
|
3 | import { Closeable } from '../interfaces/closeable.interface';
|
4 | import { ClientGrpcProxy } from './client-grpc';
|
5 | import { ClientProxy } from './client-proxy';
|
6 | export interface IClientProxyFactory {
|
7 | create(clientOptions: ClientOptions): ClientProxy & Closeable;
|
8 | }
|
9 |
|
10 |
|
11 |
|
12 | export 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 | }
|