UNPKG

@libp2p/interface

Version:
9 lines 417 B
import type { AbortOptions, MessageStream } from './index.ts'; export interface ConnectionProtector { /** * Takes a MessageStream and creates a private encryption stream between * the two peers from the shared key the Protector instance was created with. */ protect(connection: MessageStream, options?: AbortOptions): Promise<MessageStream>; } //# sourceMappingURL=connection-protector.d.ts.map