/// import { BitField } from "@node-lightning/core"; import { Address } from "@node-lightning/wire"; import { Channel } from "./channel"; /** * Reperesents a node in the p2p network. */ export declare class Node { nodeId: Buffer; lastUpdate: number; alias: Buffer; addresses: Address[]; rgbColor: Buffer; features: BitField; /** * Channels that the node belongs to */ channels: Map; /** * Gets the alias as human readable string */ get aliasString(): string; /** * Gets the color as a an RGB color string */ get rgbColorString(): string; /** * Adds a channel to the node's channel list */ linkChannel(channel: Channel): void; /** * Remove a channel from the node's channel list */ unlinkChannel(channel: Channel): void; }