import { SSHServerConfig, CommandResult } from "./types.js"; /** * Manages persistent SSH connections to multiple servers */ export declare class SSHConnectionManager { private serverConfigs; private connections; private configs; private connectionPromises; constructor(serverConfigs: SSHServerConfig[]); /** * Get the default server slug (first configured server) */ getDefaultSlug(): string; /** * Get all configured server slugs */ getAllSlugs(): string[]; /** * Get or create a connection to the specified server */ private getConnection; /** * Check if a connection is still alive */ private isConnectionAlive; /** * Create a new SSH connection */ private createConnection; /** * Execute a command on the specified server */ executeCommand(command: string, slug?: string): Promise; /** * Close all connections */ closeAll(): Promise; /** * Close connection to a specific server */ closeConnection(slug: string): Promise; }