import { PathLike } from "./path.js"; import * as node_ssh0 from "node-ssh"; import { Config, NodeSSH, SSHExecCommandOptions, SSHGetPutDirectoryOptions, SSHPutFilesOptions } from "node-ssh"; import { SFTPWrapper, TransferOptions } from "ssh2"; //#region src/ssh-client.d.ts declare const loggerLevelStringToConsolaLogLevelMap: { readonly debug: 4; readonly error: 0; readonly fatal: 0; readonly info: 3; readonly normal: 2; readonly silent: -999; readonly trace: 5; readonly verbose: 999; readonly warn: 1; }; declare class SshClient { #private; constructor(host: string, username: string, password: string, port?: number, connectConfig?: Config); get nodeSsh(): NodeSSH; connect(): Promise; disconnect(): boolean; execCommand(command: string, options?: SSHExecCommandOptions): Promise; execCommandWithIo(command: string, options?: SSHExecCommandOptions): Promise; getDir: (localDirectory: PathLike, remoteDirectory: PathLike, options?: SSHGetPutDirectoryOptions) => Promise; getDirectory(localDirectory: PathLike, remoteDirectory: PathLike, options?: SSHGetPutDirectoryOptions): Promise; getFile(localFile: PathLike, remoteFile: PathLike, givenSftp?: null | SFTPWrapper, transferOptions?: null | TransferOptions): Promise; isConnected(): boolean; mkdir(path: PathLike): Promise; putDir: (localDirectory: PathLike, remoteDirectory: PathLike, options?: SSHGetPutDirectoryOptions) => Promise; putDirectory(localDirectory: PathLike, remoteDirectory: PathLike, options?: SSHGetPutDirectoryOptions): Promise; putFile(localFile: PathLike, remoteFile: PathLike, givenSftp?: null | SFTPWrapper, transferOptions?: null | TransferOptions): Promise; putFiles(files: { local: PathLike; remote: PathLike; }[], options?: SSHPutFilesOptions): Promise; setLoggerLevel(level: keyof typeof loggerLevelStringToConsolaLogLevelMap): void; } //#endregion export { SshClient }; //# sourceMappingURL=ssh-client.d.ts.map