UNPKG

lightningdevkit

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