import { AccountData, AminoSignResponse, StdSignDoc } from "@cosmjs/amino"; import { DirectSignResponse, OfflineSigner } from "@cosmjs/proto-signing"; import { SignDoc } from "cosmjs-types/cosmos/tx/v1beta1/tx"; import { HdPath } from "@cosmjs/crypto"; import { Signer, SigningMode } from "./signer"; export interface OfflineSignerConfig { /** * The BIP-32/SLIP-10 derivation paths. * Defaults to the Desmos path `m/44'/852'/0'/0/0`. */ hdPath: readonly HdPath[]; /** * The bech32 address prefix (human readable part). * Defaults to "desmos". */ prefix: string; } /** * Adapter class to use a CosmJS OfflineSigner instance as a Signer instance. */ export declare class OfflineSignerAdapter extends Signer { private readonly signer; private readonly _signMode; constructor(signer: OfflineSigner); signDirect(signerAddress: string, signDoc: SignDoc): Promise; signAmino(signerAddress: string, signDoc: StdSignDoc): Promise; getAccounts(): Promise; getCurrentAccount(): Promise; get signingMode(): SigningMode; connect(): Promise; disconnect(): Promise; /** * Create a signer from the given BIP39 mnemonic. * * @param mode The sign mode supported from the signer. * @param mnemonic Any valid English mnemonic. * @param options An optional `OfflineSignerConfig` object optionally containing an HD path and prefix. */ static fromMnemonic(mode: SigningMode, mnemonic: string, options?: Partial): Promise; /** * Generates a new wallet with a BIP39 mnemonic of the given length. * * @param mode The sign mode supported from the signer. * @param length The number of words in the mnemonic (12, 15, 18, 21 or 24). * @param options An optional `OfflineSignerConfig` object optionally containing an HD path and prefix. */ static generate(mode: SigningMode, length?: 12 | 15 | 18 | 21 | 24, options?: Partial): Promise; }