UNPKG

lightningdevkit

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