UNPKG

@libp2p/mplex

Version:

JavaScript implementation of https://github.com/libp2p/mplex

8 lines 351 B
import { Uint8ArrayList } from 'uint8arraylist'; import { type Message } from './message-types.js'; import type { Source } from 'it-stream-types'; /** * Encode and yield one or more messages */ export declare function encode(source: Source<Message>): AsyncGenerator<Uint8Array | Uint8ArrayList, void, undefined>; //# sourceMappingURL=encode.d.ts.map