lightningdevkit
Version:
Lightning Development Kit
43 lines (42 loc) • 1.52 kB
text/typescript
import { LSPSRequestId } from '../structs/LSPSRequestId.mjs';
import { LSPS0Request } from '../structs/LSPS0Request.mjs';
import { LSPS0Response } from '../structs/LSPS0Response.mjs';
import { CommonBase } from './CommonBase.mjs';
/**
* An bLIP-50 / LSPS0 protocol message.
*
* Please refer to the [bLIP-50 / LSPS0
* specification](https://github.com/lightning/blips/blob/master/blip-0050.md#lsps-specification-support-query)
* for more information.
*/
export declare class LSPS0Message extends CommonBase {
protected constructor(_dummy: null, ptr: bigint);
clone_ptr(): bigint;
/**
* Creates a copy of the LSPS0Message
*/
clone(): LSPS0Message;
/**
* Utility method to constructs a new Request-variant LSPS0Message
*/
static constructor_request(a: LSPSRequestId, b: LSPS0Request): LSPS0Message;
/**
* Utility method to constructs a new Response-variant LSPS0Message
*/
static constructor_response(a: LSPSRequestId, b: LSPS0Response): LSPS0Message;
/**
* Checks if two LSPS0Messages contain equal inner contents.
* This ignores pointers and is_owned flags and looks at the values in fields.
*/
eq(b: LSPS0Message): boolean;
}
/** A LSPS0Message of type Request */
export declare class LSPS0Message_Request extends LSPS0Message {
_0: LSPSRequestId;
_1: LSPS0Request;
}
/** A LSPS0Message of type Response */
export declare class LSPS0Message_Response extends LSPS0Message {
_0: LSPSRequestId;
_1: LSPS0Response;
}