UNPKG

lightningdevkit

Version:
31 lines (30 loc) 951 B
import { CommonBase } from './CommonBase.mjs'; /** * A JSON-RPC request's `id`. * * Please refer to the [JSON-RPC 2.0 specification](https://www.jsonrpc.org/specification#request_object) for * more information. */ export declare class LSPSRequestId extends CommonBase { get_a(): string; set_a(val: string): void; /** * Constructs a new LSPSRequestId given each field */ static constructor_new(a_arg: string): LSPSRequestId; clone_ptr(): bigint; /** * Creates a copy of the LSPSRequestId */ clone(): LSPSRequestId; /** * Checks if two LSPSRequestIds contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields. * Two objects with NULL inner values will be considered "equal" here. */ eq(b: LSPSRequestId): boolean; /** * Generates a non-cryptographic 64-bit hash of the LSPSRequestId. */ hash(): bigint; }