n8n-nodes-customssh
Version:
n8n community node for advanced SSH connections with configurable ciphers and network device support
16 lines (15 loc) • 654 B
TypeScript
import { ClientChannel } from 'ssh2';
import { SshConnectionOptions } from '../interfaces/ConnectionOptions';
/**
* Handler for SSH prompt detection and processing
*/
export declare class PromptHandler {
/**
* Wait for a specific prompt pattern in the output
*/
static waitForPrompt(stream: ClientChannel, dataBuffer: string, promptRegex: RegExp, timeout: number, dataCallback: (data: Buffer) => void, options: SshConnectionOptions): Promise<void>;
/**
* Clean SSH command output
*/
static cleanCommandOutput(rawOutput: string, command: string, commandPromptRegex: RegExp, options?: SshConnectionOptions): string;
}