import { TransferGateway } from './transfer-gateway'; import { Client } from '../client'; import { Address } from '../address'; import BN from 'bn.js'; export declare class BinanceTransferGateway extends TransferGateway { static createAsync(client: Client, callerAddr: Address): Promise; /** * Sends a request to the DAppChain Gateway to begin withdrawal of LOOM tokens from the current * DAppChain account to an account on Binance Chain. Before calling this method the user * attempting to withdraw the tokens must approve the DAppChain Gateway to transfer the given * amount plus the withdrawal fee (which is always charged in BNB). * @param amount Amount to withdraw (not including the withdrawal fee). * @param recipient Binance address of the account the tokens should be withdrawn to. * @returns A promise that will be resolved when the DAppChain Gateway has accepted the withdrawal * request. */ withdrawLoomAsync(amount: BN, recipient: Address): Promise; /** * Sends a request to the DAppChain Gateway to begin withdrawal of BEP2 tokens from the current * DAppChain account to an account on Binance Chain. Before calling this method the user * attempting to withdraw the tokens must approve the DAppChain Gateway to transfer the given * amount plus the withdrawal fee (which is always charged in BNB). * @param amount Amount to withdraw (not including the withdrawal fee). * @param tokenContract DAppChain address of BEP2 contract. * @param recipient Binance address of the account the tokens should be withdrawn to. * @returns A promise that will be resolved when the DAppChain Gateway has accepted the withdrawal * request. */ withdrawTokenAsync(amount: BN, tokenContract: Address, recipient: Address): Promise; /** * Sends a request to the DAppChain Gateway to resubmit a previously rejected token withdrawal * from the current DAppChain account. This is currently only supported by the Binance gateway. * Only the original withdrawer can resubmit a reject withdrawal. */ resubmitWithdrawalAsync(): Promise; }