import { bytes, bytes32 } from "./basic"; import PeerId from "peer-id"; export type KeyPair = { publicKey: bytes32; privateKey: bytes32; } export interface INoiseConnection { remoteEarlyData?(): bytes; secureOutbound(localPeer: PeerId, insecure: any, remotePeer: PeerId): Promise; secureInbound(localPeer: PeerId, insecure: any, remotePeer: PeerId): Promise; } export type SecureOutbound = { conn: any; remotePeer: PeerId; }