lightningdevkit
Version:
Lightning Development Kit
31 lines (30 loc) • 1.46 kB
text/typescript
import { Bolt11ParseError } from '../structs/Bolt11ParseError.mjs';
import { SignedRawBolt11Invoice } from '../structs/SignedRawBolt11Invoice.mjs';
import { CommonBase } from './CommonBase.mjs';
export declare class Result_SignedRawBolt11InvoiceBolt11ParseErrorZ extends CommonBase {
protected constructor(_dummy: null, ptr: bigint);
/**
* Creates a new CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ in the success state.
*/
static constructor_ok(o: SignedRawBolt11Invoice): Result_SignedRawBolt11InvoiceBolt11ParseErrorZ;
/**
* Creates a new CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ in the error state.
*/
static constructor_err(e: Bolt11ParseError): Result_SignedRawBolt11InvoiceBolt11ParseErrorZ;
/**
* Checks if the given object is currently in the success state
*/
is_ok(): boolean;
clone_ptr(): bigint;
/**
* Creates a new CResult_SignedRawBolt11InvoiceBolt11ParseErrorZ which has the same data as `orig`
* but with all dynamically-allocated buffers duplicated in new buffers.
*/
clone(): Result_SignedRawBolt11InvoiceBolt11ParseErrorZ;
}
export declare class Result_SignedRawBolt11InvoiceBolt11ParseErrorZ_OK extends Result_SignedRawBolt11InvoiceBolt11ParseErrorZ {
res: SignedRawBolt11Invoice;
}
export declare class Result_SignedRawBolt11InvoiceBolt11ParseErrorZ_Err extends Result_SignedRawBolt11InvoiceBolt11ParseErrorZ {
err: Bolt11ParseError;
}