UNPKG

lightningdevkit

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