UNPKG

lightningdevkit

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