lightningdevkit
Version:
Lightning Development Kit
29 lines (28 loc) • 1.15 kB
text/typescript
import { Bolt12PaymentError } from '../structs/Bolt12PaymentError.mjs';
import { CommonBase } from './CommonBase.mjs';
export declare class Result_NoneBolt12PaymentErrorZ extends CommonBase {
protected constructor(_dummy: null, ptr: bigint);
/**
* Creates a new CResult_NoneBolt12PaymentErrorZ in the success state.
*/
static constructor_ok(): Result_NoneBolt12PaymentErrorZ;
/**
* Creates a new CResult_NoneBolt12PaymentErrorZ in the error state.
*/
static constructor_err(e: Bolt12PaymentError): Result_NoneBolt12PaymentErrorZ;
/**
* Checks if the given object is currently in the success state
*/
is_ok(): boolean;
clone_ptr(): bigint;
/**
* Creates a new CResult_NoneBolt12PaymentErrorZ which has the same data as `orig`
* but with all dynamically-allocated buffers duplicated in new buffers.
*/
clone(): Result_NoneBolt12PaymentErrorZ;
}
export declare class Result_NoneBolt12PaymentErrorZ_OK extends Result_NoneBolt12PaymentErrorZ {
}
export declare class Result_NoneBolt12PaymentErrorZ_Err extends Result_NoneBolt12PaymentErrorZ {
err: Bolt12PaymentError;
}