///
///
export interface SecurePassthroughSession {
key: Buffer;
iv: Buffer;
seq: number;
}
export default class SecurePassthroughTransport {
private session?;
private readonly publicKey;
private readonly privateKey;
constructor();
handshake(sessionPost: (path: string, payload: any, responseType: string) => Promise): Promise;
encrypt(payload: any): {
encrypted: string;
seq: number;
};
decrypt(data: string): any;
isSessionEstablished(): boolean;
}