UNPKG

407 BTypeScriptView Raw
1import { Connection } from "./connection";
2export declare class ConnectionManager {
3 private default;
4 private readonly connections;
5 connect(host: string, name?: string): Connection;
6 disconnect(name?: string): void;
7 connection(name?: string): Connection;
8 getDefaultConnection(): string;
9 setDefaultConnection(name: string): void;
10 getConnections(): Record<string, Connection>;
11}