/// import Eth from '@ledgerhq/hw-app-eth'; import Transport from '@ledgerhq/hw-transport'; import { LedgerProviderType } from '@/Wallet/Ledger/provider'; import { BaseTx as XVMBaseTx } from 'luxnet/dist/apis/xvm'; import { BaseTx as PlatformBaseTx } from 'luxnet/dist/apis/platformvm'; import { EVMBaseTx } from 'luxnet/dist/apis/evm'; import { UnsignedTx as XVMUnsignedTx } from 'luxnet/dist/apis/xvm/tx'; import { UnsignedTx as PlatformUnsignedTx } from 'luxnet/dist/apis/platformvm/tx'; import { UnsignedTx as EVMUnsignedTx } from 'luxnet/dist/apis/evm/tx'; import AppLux from '@luxfi/hw-app-lux'; import AppZondax from '@luxfi/hw-app-luxz'; /** * * @param xpub Extended public key for m/44'/60'/0' * @param index Index of the Eth address * @returns Extended public key for m/44'/60'/0'/0/n where `n` is the address index */ export declare function getEthAddressKeyFromAccountKey(xpub: string, index: number): string; export declare function getAppLux(transport: Transport, provider: LedgerProviderType): AppLux | AppZondax; export declare function getAppEth(transport: Transport): Eth; export declare function getLedgerProvider(transport: Transport): Promise; export declare function isLuxApp(t: Transport): Promise; /** * Returns an array of unique addresses that are found on stake outputs of a tx. * @param tx */ export declare function getStakeOutAddresses(tx: XVMBaseTx | PlatformBaseTx | EVMBaseTx): string[]; export declare function getOutputAddresses(tx: XVMBaseTx | PlatformBaseTx): string[]; /** * Returns every output address for the given transaction. * @param unsignedTx */ export declare function getTxOutputAddresses(unsignedTx: UnsignedTx): string[];