UNPKG

@libp2p/multistream-select

Version:
7 lines 370 B
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