UNPKG

xud

Version:
15 lines (14 loc) 449 B
export declare type UriParts = { nodePubKey: string; host: string; port: number; }; /** * Creates a URI string from the public key, host and port. */ export declare const toUri: (uriParts: UriParts) => string; /** * Splits a URI in the [pubkey]@[host]:[port] format into the public key, host and port components. * If port is not present in the URI, it defaults to 8885. */ export declare const parseUri: (uri: string) => UriParts;