import { EnglishMnemonic, HdPath } from "@cosmjs/crypto"; import { SignDoc } from "cosmjs-types/cosmos/tx/v1beta1/tx"; import { AccountData, DirectSignResponse, OfflineDirectSigner } from "./signer"; export interface DirectEthSecp256k1HdWalletOptions { /** The password to use when deriving a BIP39 seed from a mnemonic. */ readonly bip39Password: string; /** The BIP-32/SLIP-10 derivation paths. Defaults to the Cosmos Hub/ATOM path `m/44'/60'/0'/0/0`. */ readonly hdPaths: readonly HdPath[]; /** The bech32 address prefix (human readable part). Defaults to "cosmos". */ readonly prefix: string; } interface DirectEthSecp256k1HdWalletConstructorOptions extends Partial { readonly seed: Uint8Array; } /** A wallet for protobuf based signing using SIGN_MODE_DIRECT */ export declare class DirectEthSecp256k1HdWallet implements OfflineDirectSigner { /** * Restores a wallet from the given BIP39 mnemonic. * * @param mnemonic Any valid English mnemonic. * @param options An optional `DirectEthSecp256k1HdWalletOptions` object optionally containing a bip39Password, hdPaths, and prefix. */ static fromMnemonic(mnemonic: string, options?: Partial): Promise; /** * Generates a new wallet with a BIP39 mnemonic of the given length. * * @param length The number of words in the mnemonic (12, 15, 18, 21 or 24). * @param options An optional `DirectSecp256k1HdWalletOptions` object optionally containing a bip39Password, hdPaths, and prefix. */ static generate(length?: 12 | 15 | 18 | 21 | 24, options?: Partial): Promise; /** Base secret */ private readonly secret; /** BIP39 seed */ private readonly seed; /** Derivation instructions */ private readonly accounts; protected constructor(mnemonic: EnglishMnemonic, options: DirectEthSecp256k1HdWalletConstructorOptions); get mnemonic(): string; getAccounts(): Promise; signDirect(signerAddress: string, signDoc: SignDoc): Promise; private getKeyPair; private getAccountsWithPrivkeys; } export {};