UNPKG

@chainsafe/libp2p-noise

Version:
7 lines 574 B
import { Uint8ArrayList } from 'uint8arraylist'; import type { MetricsRegistry } from './metrics.js'; import type { HandshakeResult } from './types.js'; import type { Transform } from 'it-stream-types'; export declare function encryptStream(handshake: HandshakeResult, metrics?: MetricsRegistry): Transform<AsyncGenerator<Uint8Array | Uint8ArrayList>>; export declare function decryptStream(handshake: HandshakeResult, metrics?: MetricsRegistry): Transform<AsyncGenerator<Uint8ArrayList>, AsyncGenerator<Uint8Array | Uint8ArrayList>>; //# sourceMappingURL=streaming.d.ts.map