UNPKG

lightningdevkit

Version:
31 lines (30 loc) 1.22 kB
import { Refund } from '../structs/Refund.mjs'; import { Bolt12ParseError } from '../structs/Bolt12ParseError.mjs'; import { CommonBase } from './CommonBase.mjs'; export declare class Result_RefundBolt12ParseErrorZ extends CommonBase { protected constructor(_dummy: null, ptr: bigint); /** * Creates a new CResult_RefundBolt12ParseErrorZ in the success state. */ static constructor_ok(o: Refund): Result_RefundBolt12ParseErrorZ; /** * Creates a new CResult_RefundBolt12ParseErrorZ in the error state. */ static constructor_err(e: Bolt12ParseError): Result_RefundBolt12ParseErrorZ; /** * Checks if the given object is currently in the success state */ is_ok(): boolean; clone_ptr(): bigint; /** * Creates a new CResult_RefundBolt12ParseErrorZ which has the same data as `orig` * but with all dynamically-allocated buffers duplicated in new buffers. */ clone(): Result_RefundBolt12ParseErrorZ; } export declare class Result_RefundBolt12ParseErrorZ_OK extends Result_RefundBolt12ParseErrorZ { res: Refund; } export declare class Result_RefundBolt12ParseErrorZ_Err extends Result_RefundBolt12ParseErrorZ { err: Bolt12ParseError; }