ssh-config.d.ts 641 B

1234567891011
  1. import SSHConfig from 'ssh-config';
  2. export { SSHConfig };
  3. export declare function loadFromPath(p: string): Promise<SSHConfig.SSHConfig>;
  4. export declare function isDirective(entry: any): entry is SSHConfig.ConfigDirective;
  5. export declare function isHostDirective(entry: SSHConfig.Config): entry is SSHConfig.ConfigHostDirective;
  6. export declare function getConfigPath(): string;
  7. export declare function findHostSection(conf: SSHConfig.SSHConfig, host: string): SSHConfig.ConfigHostDirective | null;
  8. export declare function ensureHostAndKeyPath(conf: SSHConfig.SSHConfig, conn: {
  9. host: string;
  10. port?: number;
  11. }, keyPath: string): void;