///
import { IAirGapSignedTransaction } from '../../interfaces/IAirGapSignedTransaction';
import { AirGapTransactionStatus, IAirGapTransaction } from '../../interfaces/IAirGapTransaction';
import { SignedAeternityTransaction } from '../../serializer/schemas/definitions/signed-transaction-aeternity';
import { UnsignedAeternityTransaction } from '../../serializer/schemas/definitions/unsigned-transaction-aeternity';
import { RawAeternityTransaction } from '../../serializer/types';
import { ProtocolSymbols } from '../../utils/ProtocolSymbols';
import { CurrencyUnit, FeeDefaults, ICoinProtocol } from '../ICoinProtocol';
import { ICoinSubProtocol } from '../ICoinSubProtocol';
import { NonExtendedProtocol } from '../NonExtendedProtocol';
import { AeternityTransactionCursor, AeternityTransactionResult } from './AeternityTypes';
import { AeternityAddress } from './AeternityAddress';
import { AeternityCryptoClient } from './AeternityCryptoClient';
import { AeternityProtocolOptions } from './AeternityProtocolOptions';
export declare class AeternityProtocol extends NonExtendedProtocol implements ICoinProtocol {
readonly options: AeternityProtocolOptions;
symbol: string;
name: string;
marketSymbol: string;
feeSymbol: string;
decimals: number;
feeDecimals: number;
identifier: ProtocolSymbols;
feeDefaults: {
low: string;
medium: string;
high: string;
};
units: CurrencyUnit[];
supportsHD: boolean;
standardDerivationPath: string;
addressIsCaseSensitive: boolean;
addressValidationPattern: string;
addressPlaceholder: string;
defaultNetworkId: string;
private readonly feesURL;
readonly cryptoClient: AeternityCryptoClient;
constructor(options?: AeternityProtocolOptions);
getBlockExplorerLinkForAddress(address: string): Promise;
getBlockExplorerLinkForTxId(txId: string): Promise;
getPublicKeyFromMnemonic(mnemonic: string, derivationPath: string, password?: string): Promise;
getPrivateKeyFromMnemonic(mnemonic: string, derivationPath: string, password?: string): Promise;
/**
* Returns the PublicKey as String, derived from a supplied hex-string
* @param secret HEX-Secret from BIP39
* @param derivationPath DerivationPath for Key
*/
getPublicKeyFromHexSecret(secret: string, derivationPath: string): Promise;
/**
* Returns the PrivateKey as Buffer, derived from a supplied hex-string
* @param secret HEX-Secret from BIP39
* @param derivationPath DerivationPath for Key
*/
getPrivateKeyFromHexSecret(secret: string, derivationPath: string): Promise;
getAddressFromPublicKey(publicKey: string): Promise;
getAddressesFromPublicKey(publicKey: string): Promise;
getNextAddressFromPublicKey(publicKey: string, current: AeternityAddress): Promise;
getTransactionsFromPublicKey(publicKey: string, limit: number, cursor?: AeternityTransactionCursor): Promise;
getTransactionsFromAddresses(addresses: string[], limit: number, cursor?: AeternityTransactionCursor): Promise;
protected getPageNumber(limit: number, offset: number): number;
signWithPrivateKey(privateKey: Buffer, transaction: RawAeternityTransaction): Promise;
private decodeTx;
getTransactionDetails(unsignedTx: UnsignedAeternityTransaction): Promise;
getTransactionDetailsFromSigned(signedTx: SignedAeternityTransaction): Promise;
getBalanceOfAddresses(addresses: string[]): Promise;
getBalanceOfPublicKey(publicKey: string): Promise;
getBalanceOfPublicKeyForSubProtocols(publicKey: string, subProtocols: ICoinSubProtocol[]): Promise;
getAvailableBalanceOfAddresses(addresses: string[]): Promise;
estimateMaxTransactionValueFromPublicKey(publicKey: string, recipients: string[], fee?: string): Promise;
estimateFeeDefaultsFromPublicKey(publicKey: string, recipients: string[], values: string[], data?: any): Promise;
prepareTransactionFromPublicKey(publicKey: string, recipients: string[], values: string[], fee: string, data?: {
payload?: string;
}): Promise;
/**
* This is a function that we only use to fix incompatibilitis with old vault versions that are unable to understand b64 encoded Txs.
*
* @deprecated
* @param preparedTx
*/
convertTxToBase58(preparedTx: RawAeternityTransaction): RawAeternityTransaction;
broadcastTransaction(rawTransaction: string): Promise;
private toHexBuffer;
signMessage(message: string, keypair: {
privateKey: Buffer;
}): Promise;
verifyMessage(message: string, signature: string, publicKey: string): Promise;
encryptAsymmetric(message: string, publicKey: string): Promise;
decryptAsymmetric(message: string, keypair: {
publicKey: string;
privateKey: Buffer;
}): Promise;
encryptAES(message: string, privateKey: Buffer): Promise;
decryptAES(message: string, privateKey: Buffer): Promise;
getTransactionStatuses(transactionHashes: string[]): Promise;
}