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