///
/**
* @prettier
*/
import { CoinFamily, BaseCoin as StaticsBaseCoin } from '@bitgo-beta/statics';
import { BaseCoin, BitGoBase, KeyPair, ParsedTransaction, ParseTransactionOptions, SignedTransaction, SignTransactionOptions, VerifyAddressOptions as BaseVerifyAddressOptions, VerifyTransactionOptions, TransactionFee, TransactionRecipient as Recipient, TransactionPrebuild as BaseTransactionPrebuild, TransactionExplanation, Memo, TokenEnablementConfig } from '@bitgo-beta/sdk-core';
export interface HbarSignTransactionOptions extends SignTransactionOptions {
txPrebuild: TransactionPrebuild;
prv: string;
}
export interface TxInfo {
recipients: Recipient[];
from: string;
txid: string;
}
export interface TransactionPrebuild extends BaseTransactionPrebuild {
txHex: string;
txInfo: TxInfo;
feeInfo: TransactionFee;
source: string;
}
export interface ExplainTransactionOptions {
txHex?: string;
halfSigned?: {
txHex: string;
};
feeInfo: TransactionFee;
memo?: {
type: string;
value: string;
};
}
export interface HbarVerifyTransactionOptions extends VerifyTransactionOptions {
txPrebuild: TransactionPrebuild;
memo?: Memo;
}
interface VerifyAddressOptions extends BaseVerifyAddressOptions {
baseAddress: string;
}
export declare class Hbar extends BaseCoin {
protected readonly _staticsCoin: Readonly;
constructor(bitgo: BitGoBase, staticsCoin?: Readonly);
getChain(): string;
getFamily(): CoinFamily;
getFullName(): string;
getBaseFactor(): number;
static createInstance(bitgo: BitGoBase, staticsCoin?: Readonly): BaseCoin;
/**
* Flag for sending value of 0
* @returns {boolean} True if okay to send 0 value, false otherwise
*/
valuelessTransferAllowed(): boolean;
/**
* Checks if this is a valid base58 or hex address
* @param address
*/
isValidAddress(address: string): boolean;
/**
* Generate Hedera Hashgraph key pair
*
* @param seed
* @returns {Object} object with generated pub, prv
*/
generateKeyPair(seed?: Buffer): KeyPair;
parseTransaction(params: ParseTransactionOptions): Promise;
/**
* Check if address is valid, then make sure it matches the base address.
*
* @param {VerifyAddressOptions} params
* @param {String} params.address - the address to verify
* @param {String} params.baseAddress - the base address from the wallet
*/
isWalletAddress(params: VerifyAddressOptions): boolean;
verifyTransaction(params: HbarVerifyTransactionOptions): Promise;
/**
* Assemble keychain and half-sign prebuilt transaction
*
* @param params
* @param params.txPrebuild {Object} prebuild object returned by platform
* @param params.prv {String} user prv
* @param params.wallet.addressVersion {String} this is the version of the Algorand multisig address generation format
* @returns Promise
*/
signTransaction(params: HbarSignTransactionOptions): Promise;
/**
* Sign message with private key
*
* @param key
* @param message
* @return {Buffer} A signature over the given message using the given key
*/
signMessage(key: KeyPair, message: string | Buffer): Promise;
/**
* Builds a funds recovery transaction without BitGo.
* We need to do three queries during this:
* 1) Node query - how much money is in the account
* 2) Build transaction - build our transaction for the amount
* 3) Send signed build - send our signed build to a public node
* @param params
*/
recover(params: any): Promise;
/**
* Explain a Hedera transaction from txHex
* @param params
*/
explainTransaction(params: ExplainTransactionOptions): Promise;
isStellarSeed(seed: string): boolean;
convertFromStellarSeed(seed: string): string | null;
isValidPub(pub: string): boolean;
getTokenEnablementConfig(): TokenEnablementConfig;
private getBuilderFactory;
}
export {};
//# sourceMappingURL=hbar.d.ts.map