UNPKG

lightningdevkit

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