export = TestMoneroWalletCommon; /** * Test a wallet for common functionality. * * TODO: test filtering with not relayed */ declare class TestMoneroWalletCommon { /** * Constructs the tester. * * @param testConfig is test configuration */ constructor(testConfig: any); testConfig: any; /** * Get the daemon to test. * * @return the daemon to test */ getTestDaemon(): Promise; /** * Get the main wallet to test. * * @return the wallet to test */ getTestWallet(): Promise; /** * Open a test wallet with default configuration for each wallet type. * * @param config configures the wallet to open * @return MoneroWallet is the opened wallet */ openWallet(config: any): Promise; /** * Create a test wallet with default configuration for each wallet type. * * @param config configures the wallet to create * @return MoneroWallet is the created wallet */ createWallet(config: any): Promise; /** * Get the wallet's supported languages for the mnemonic phrase. This is an * instance method for wallet rpc and a static utility for other wallets. * * @return {string[]} the wallet's supported languages */ getMnemonicLanguages(): string[]; runCommonTests(): void; getSubaddressesWithBalance(): Promise; getSubaddressesWithUnlockedBalance(): Promise; _testGetSubaddressAddressOutOfRange(): Promise; /** * Fetches and tests transactions according to the given query. * * TODO: convert query to query object and ensure each tx passes filter, same with getAndTestTransfer, getAndTestOutputs */ _getAndTestTxs(wallet: any, query: any, isExpected: any): Promise; /** * Fetches and tests transfers according to the given query. */ _getAndTestTransfers(wallet: any, query: any, isExpected: any): Promise; /** * Fetches and tests outputs according to the given query. */ _getAndTestOutputs(wallet: any, query: any, isExpected: any): Promise; /** * Tests a wallet transaction with a test configuration. * * @param tx is the wallet transaction to test * @param ctx specifies test configuration * ctx.wallet is used to cross reference tx info if available * ctx.config specifies the tx's originating send configuration * ctx.isSendResponse indicates if the tx is built from a send response, which contains additional fields (e.g. key) * ctx.hasDestinations specifies if the tx has an outgoing transfer with destinations, undefined if doesn't matter * ctx.includeOutputs specifies if outputs were fetched and should therefore be expected with incoming transfers */ _testTxWallet(tx: any, ctx: any): Promise; _testTxWalletCopy(tx: any, ctx: any): Promise; _testMultisig(m: any, n: any, testTx: any): Promise; wallet: void; _synchronizeMultisigParticipants(currentWallet: any, walletIds: any): Promise; _testMultisigInfo(info: any, m: any, n: any): Promise; }