UNPKG

@node-lightning/wire

Version:
9 lines (8 loc) 366 B
import { BufferReader } from "@node-lightning/bufio"; import { Address } from "../../domain/Address"; import { AddressType } from "../../domain/AddressType"; /** * Deserializes an address based on the type and returns * an instance of Address as a polymorphic type. */ export declare function deserializeAddress(type: AddressType, reader: BufferReader): Address;