UNPKG

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