import type { SshConnection } from '../types/connections.js'; export declare class SSHClient { private ssh; private server; private connected; constructor(server: SshConnection); /** * 展开路径中的 ~ 为用户主目录(跨平台兼容) */ private expandPath; connect(): Promise; execute(command: string): Promise; executeWithOutput(command: string): Promise<{ stdout: string; stderr: string; exitCode: number; }>; executeWithInput(command: string, stdin: string): Promise<{ stdout: string; stderr: string; exitCode: number; }>; isConnected(): boolean; disconnect(): Promise; }