/// <reference types="node" />
import { SshChannel } from './sshChannel';
import { Duplex } from 'stream';
/**
 * Adapts an SshChannel as a Readable+Writable stream.
 */
export declare class SshStream extends Duplex {
    constructor(channel: SshChannel);
    readonly channel: SshChannel;
    /**
     * Destroys the stream and closes the underlying SSH channel.
     */
    destroy(error?: Error): this;
    toString(): string;
}
//# sourceMappingURL=sshStream.d.ts.map