@libp2p/multistream-select
Version:
JavaScript implementation of multistream-select
7 lines • 370 B
TypeScript
import type { AbortOptions } from '@libp2p/interface';
import type { LengthPrefixedStream } from '@libp2p/utils';
/**
* Read a length-prefixed string from the passed stream, stripping the final newline character
*/
export declare function readString(reader: LengthPrefixedStream<any>, options?: AbortOptions): Promise<string>;
//# sourceMappingURL=multistream.d.ts.map