1 | export declare enum HostType {
|
2 | domain = "domain",
|
3 | socket = "socket",
|
4 | IPv4 = "IPv4",
|
5 | IPv6 = "IPv6"
|
6 | }
|
7 | export interface IEncodingOptions {
|
8 | encodeDollar?: boolean;
|
9 | plusForSpace?: boolean;
|
10 | passwordHash?: boolean | string;
|
11 | }
|
12 | export interface IHost {
|
13 | name?: string;
|
14 | port?: number;
|
15 | type?: HostType;
|
16 | }
|
17 | export interface IParsedHost extends IHost {
|
18 | toString(options?: IEncodingOptions): string;
|
19 | }
|
20 | export interface IConnectionDefaults {
|
21 | protocol?: string;
|
22 | hosts?: Array<IHost | null>;
|
23 | user?: string;
|
24 | password?: string;
|
25 | path?: string[];
|
26 | params?: {
|
27 | [name: string]: any;
|
28 | };
|
29 | }
|