UNPKG

@node-lightning/wire

Version:
9 lines (8 loc) 353 B
import { BufferReader } from "@node-lightning/bufio"; /** * Reads TLVs from a reader until the entire stream is processed. The handler is * responsible for doing something with the data bytes. * @param reader * @param handler */ export declare function readTlvs(reader: BufferReader, handler: (type: bigint, value: BufferReader) => boolean): void;