UNPKG

lightningdevkit

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