lightningdevkit
Version:
Lightning Development Kit
30 lines (29 loc) • 1.07 kB
text/typescript
import { APIError } from '../structs/APIError.mjs';
import { CommonBase } from './CommonBase.mjs';
/**
* An enum which can either contain a crate::lightning::util::errors::APIError or not
*/
export declare class Option_APIErrorZ extends CommonBase {
protected constructor(_dummy: null, ptr: bigint);
/**
* Constructs a new COption_APIErrorZ containing a crate::lightning::util::errors::APIError
*/
static constructor_some(o: APIError): Option_APIErrorZ;
/**
* Constructs a new COption_APIErrorZ containing nothing
*/
static constructor_none(): Option_APIErrorZ;
clone_ptr(): bigint;
/**
* Creates a new COption_APIErrorZ which has the same data as `orig`
* but with all dynamically-allocated buffers duplicated in new buffers.
*/
clone(): Option_APIErrorZ;
}
/** A Option_APIErrorZ of type Some */
export declare class Option_APIErrorZ_Some extends Option_APIErrorZ {
some: APIError;
}
/** A Option_APIErrorZ of type None */
export declare class Option_APIErrorZ_None extends Option_APIErrorZ {
}