///
import { WalletNameType } from '@/Wallet/types';
import { Transaction } from '@ethereumjs/tx';
import { UnsignedTx as XVMUnsignedTx, Tx as XVMTx } from 'luxnet/dist/apis/xvm';
import { Credential } from 'luxnet/dist/common';
import { UnsignedTx as EVMUnsignedTx, Tx as EVMTx } from 'luxnet/dist/apis/evm';
import { UnsignedTx as PlatformUnsignedTx, Tx as PlatformTx } from 'luxnet/dist/apis/platformvm';
import { ChainIdType } from '@/common';
import { Buffer as BufferNative } from 'buffer';
import bippath from 'bip32-path';
import { PublicMnemonicWallet } from '@/Wallet/PublicMnemonicWallet';
import Transport from '@ledgerhq/hw-transport';
import { LedgerProviderType } from './provider';
export declare class LedgerWallet extends PublicMnemonicWallet {
type: WalletNameType;
static transport: Transport | undefined;
static version: string | undefined;
static provider: LedgerProviderType | undefined;
accountIndex: number;
/**
*
* @param xpubXVM of derivation path m/44'/9000'/n' where `n` is the account index
* @param xpubEVM of derivation path m/44'/60'/0'/0/n where `n` is the account index
* @param accountIndex The given xpubs must match this index
*/
constructor(xpubXVM: string, xpubEVM: string, accountIndex: number);
static setTransport(transport: Transport): Promise;
/**
* Create a new ledger wallet instance from the given transport
* @param transport
* @param accountIndex
*/
static fromTransport(transport: Transport, accountIndex?: number): Promise;
/**
* Returns the extended public key used by C chain for address derivation.
* @remarks Returns the extended public key for path `m/44'/60'/0'`. This key can be used to derive C chain addresses.
* @param transport
*/
static getExtendedPublicKeyEthAccount(transport: Transport): Promise;
/**
* Get the extended public key for a specific C chain address.
* @returns The xpub of HD node m/44'/60'/0'/0/n where `n` is `accountIndex`
* @param transport
* @param accountIndex
*/
static getExtendedPublicKeyEthAddress(transport: Transport, accountIndex: number): Promise;
/**
* Returns the extended public key used by X and P chains for address derivation.
* @remarks Returns the extended public key for path `m/44'/90000'/n'` where `n` is the account index.
* @param transport
* @param accountIndex Which account's public key to derive
*/
static getExtendedPublicKeyLuxAccount(transport: Transport, accountIndex?: number): Promise;
static getProvider(): import("./provider").LedgerProvider;
signEvm(_tx: Transaction): Promise;
getTransactionPaths(unsignedTx: UnsignedTx, chainId: ChainIdType): Promise<{
paths: string[];
isLuxOnly: boolean;
}>;
getAddressPaths(addresses: string[]): bippath.Bip32Path[];
getPathFromAddress(address: string): Promise;
signX(unsignedTx: XVMUnsignedTx): Promise;
signTransactionParsable(unsignedTx: UnsignedTx, paths: string[], chainId: ChainIdType): Promise;
/**
*
* @param accountPath `m/44'/9000'/0'` For X/P Chains, `m/44'/60'/0'` for C Chain
* @param bip32Paths an array of paths to sign with `['0/0','0/1'..]`
* @param hash A buffer of the hash to sign
* @remarks Never sign untrusted hashes. This can lead to loss of funds.
*/
signHash(accountPath: any, bip32Paths: any, hash: globalThis.Buffer): Promise<{
hash: BufferNative;
signatures: Map;
}>;
signTransactionHash(unsignedTx: UnsignedTx, paths: string[], chainId: ChainIdType): Promise;
pathsToUniqueBipPaths(paths: string[]): bippath.Bip32Path[];
getCredentials(unsignedTx: UnsignedTx, paths: string[], sigMap: Map, chainId: ChainIdType): Credential[];
signP(unsignedTx: PlatformUnsignedTx): Promise;
signC(unsignedTx: EVMUnsignedTx): Promise;
}