UNPKG

lightningdevkit

Version:
40 lines (39 loc) 1.56 kB
import { LSPSResponseError } from '../structs/LSPSResponseError.mjs'; import { LSPS0ListProtocolsResponse } from '../structs/LSPS0ListProtocolsResponse.mjs'; import { CommonBase } from './CommonBase.mjs'; /** * An bLIP-50 / LSPS0 protocol request. * * 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 LSPS0Response extends CommonBase { protected constructor(_dummy: null, ptr: bigint); clone_ptr(): bigint; /** * Creates a copy of the LSPS0Response */ clone(): LSPS0Response; /** * Utility method to constructs a new ListProtocols-variant LSPS0Response */ static constructor_list_protocols(a: LSPS0ListProtocolsResponse): LSPS0Response; /** * Utility method to constructs a new ListProtocolsError-variant LSPS0Response */ static constructor_list_protocols_error(a: LSPSResponseError): LSPS0Response; /** * Checks if two LSPS0Responses contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields. */ eq(b: LSPS0Response): boolean; } /** A LSPS0Response of type ListProtocols */ export declare class LSPS0Response_ListProtocols extends LSPS0Response { list_protocols: LSPS0ListProtocolsResponse; } /** A LSPS0Response of type ListProtocolsError */ export declare class LSPS0Response_ListProtocolsError extends LSPS0Response { list_protocols_error: LSPSResponseError; }