UNPKG

lightningdevkit

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