UNPKG

lightningdevkit

Version:
30 lines (29 loc) 1.2 kB
import { PaymentContext } from '../structs/PaymentContext.mjs'; import { CommonBase } from './CommonBase.mjs'; /** * An enum which can either contain a crate::lightning::blinded_path::payment::PaymentContext or not */ export declare class Option_PaymentContextZ extends CommonBase { protected constructor(_dummy: null, ptr: bigint); /** * Constructs a new COption_PaymentContextZ containing a crate::lightning::blinded_path::payment::PaymentContext */ static constructor_some(o: PaymentContext): Option_PaymentContextZ; /** * Constructs a new COption_PaymentContextZ containing nothing */ static constructor_none(): Option_PaymentContextZ; clone_ptr(): bigint; /** * Creates a new COption_PaymentContextZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ clone(): Option_PaymentContextZ; } /** A Option_PaymentContextZ of type Some */ export declare class Option_PaymentContextZ_Some extends Option_PaymentContextZ { some: PaymentContext; } /** A Option_PaymentContextZ of type None */ export declare class Option_PaymentContextZ_None extends Option_PaymentContextZ { }