UNPKG

lightningdevkit

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