import { default as SSHConfig } from 'ssh2-promise/lib/sshConfig';
import { SSHResultType } from '../types';
/**
 * SSH 连接服务器时的错误处理
 *
 * @param err 错误对象
 * @param {SSHConfig} config SSH 连接服务器的配置对象
 * @returns {SSHResultType}
 */
export declare const errorHandler: (err: any, config?: SSHConfig) => SSHResultType;
export type ErrorHandlerType = typeof errorHandler;
