UNPKG

320 BTypeScriptView Raw
1export interface EndpointConfig {
2 readonly type: 'tcp';
3 readonly host: string;
4 readonly port: number;
5}
6export declare type Endpoint = string;
7export declare const createEndpoint: ({ type, host, port }: EndpointConfig) => string;
8export declare const getEndpointConfig: (endpoint: string) => EndpointConfig;