interface ISSHOptions { host?: string; user?: string; port?: string; password?: string; debug?: boolean; } /** * Prepare SSH Options. * Will extract 'user' from 'host' * Will extract 'port' from 'host' * Ex : if options.host = 'username@hostname:22', options will become : * - host = 'hostname' * - port = '22' ( as string ) * - user = 'username' * @param options SSH Options for remote. */ export declare function prepareSSHOptions(options: O): O; /** * Prepend an SSH command ( already build with buildSSHCommand ) with an * sshpass command. SSH should be installed on client to be working. * It can be handy if remote does not manage RSA keys for login. * Install sshpass : * - Linux : sudo apt-get update -qq && sudo apt-get install -y -qq sshpass * - MacOS : brew install esolitos/ipa/sshpass * @param sshCommand SSH or Rsync command * @param options SSH Options for remote. */ export declare function prependSSHPass(sshCommand: string, options: O): string; /** * Build an SSH command to execute remote code. * @param remoteCommand Command to execute on remote part. * @param options SSH Options for remote. */ export declare function buildSSHCommand(remoteCommand: string, options: O): string; export {};