export = MoneroWalletKeys; /** * Implements a MoneroWallet which only manages keys using WebAssembly. * * @implements {MoneroWallet} * @hideconstructor */ declare class MoneroWalletKeys extends MoneroWallet implements MoneroWallet { /** *

Create a wallet using WebAssembly bindings to monero-project.

* *

Example:

* * * let wallet = await MoneroWalletKeys.createWallet({
*    password: "abc123",
*    networkType: MoneroNetworkType.STAGENET,
*    mnemonic: "coexist igloo pamphlet lagoon..."
* }); *
* * @param {MoneroWalletConfig|object} config - MoneroWalletConfig or equivalent config object * @param {string|number} config.networkType - network type of the wallet to create (one of "mainnet", "testnet", "stagenet" or MoneroNetworkType.MAINNET|TESTNET|STAGENET) * @param {string} config.mnemonic - mnemonic of the wallet to create (optional, random wallet created if neither mnemonic nor keys given) * @param {string} config.seedOffset - the offset used to derive a new seed from the given mnemonic to recover a secret wallet from the mnemonic phrase * @param {string} config.primaryAddress - primary address of the wallet to create (only provide if restoring from keys) * @param {string} config.privateViewKey - private view key of the wallet to create (optional) * @param {string} config.privateSpendKey - private spend key of the wallet to create (optional) * @param {string} config.language - language of the wallet's mnemonic phrase (defaults to "English" or auto-detected) * @return {MoneroWalletKeys} the created wallet */ static createWallet(config: MoneroWalletConfig | object): MoneroWalletKeys; static _createWalletRandom(networkType: any, language: any): Promise; static _createWalletFromMnemonic(networkType: any, mnemonic: any, seedOffset: any): Promise; static _createWalletFromKeys(networkType: any, address: any, privateViewKey: any, privateSpendKey: any, language: any): Promise; static getMnemonicLanguages(): Promise; /** * Internal constructor which is given the memory address of a C++ wallet * instance. * * This method should not be called externally but should be called through * static wallet creation utilities in this class. * * @param {int} cppAddress - address of the wallet instance in C++ */ constructor(cppAddress: int); _cppAddress: int; _module: any; addListener(listener: any): Promise; removeListener(listener: any): Promise; isViewOnly(): Promise; isConnectedToDaemon(): Promise; getVersion(): Promise; /** * @ignore */ getPath(): void; getMnemonic(): Promise; getMnemonicLanguage(): Promise; getPrivateSpendKey(): Promise; getPrivateViewKey(): Promise; getPublicViewKey(): Promise; getPublicSpendKey(): Promise; getAddress(accountIdx: any, subaddressIdx: any): Promise; getAddressIndex(address: any): Promise; getAccounts(): void; close(save: any): Promise; isClosed(): Promise; getPrimaryAddress(...args: any[]): Promise; getSubaddress(...args: any[]): Promise; _assertNotClosed(): void; } import MoneroWallet = require("./MoneroWallet"); import MoneroWalletConfig = require("./model/MoneroWalletConfig");