import { OnDestroy, OnInit } from '@angular/core'; import { Observable, Subject } from 'rxjs'; import { SwapSwitchResponse, UniswapDappSharedLogic, UniswapDappSharedLogicContext, Utils as UniswapUtils } from 'uniswap-dapp-integration-shared'; export declare class UniswapAngularSwapperComponent implements OnInit, OnDestroy { uniswapDappSharedLogicContext: UniswapDappSharedLogicContext; accountChanged: Observable | undefined; private _accountChangedSubscription; chainChanged: Observable | undefined; private _chainChangedSubscription; loading: boolean; uniswapDappSharedLogic: UniswapDappSharedLogic; noLiquidityFound: boolean; inputValue: string; outputValue: string; utils: typeof UniswapUtils; inputTradePriceChanged: Subject; outputTradePriceChanged: Subject; private _inputTradePriceChangedSubscription; private _outputTradePriceChangedSubscription; private _tradeContextSubscription; private _tradeCompletedSubscription; private _loadingUniswapSubscription; private readonly DEBOUNCE_DELAY; constructor(); /** * On load */ ngOnInit(): Promise; /** * On destroy */ ngOnDestroy(): void; /** * Switch the swap */ switchSwap(): Promise; /** * Switch the swap completed */ switchSwapCompleted(response: SwapSwitchResponse): void; /** * The token has been changed successfully * @param noLiquidityFound If no liquidity has been found */ changedTokenCompleted(noLiquidityFound: boolean): void; /** * Disable multihop completed * @param noLiquidityFound If no liquidity has been found */ disableMultihopsCompleted(noLiquidityFound: boolean): void; /** * Handle no liquidity found * @param noLiquidityFound If no liquidity has been found * @param tradeDirection The trade direction */ private handleNoLiquidityFound; /** * Change input trade price * @param amount The amount */ private changeInputTradePrice; /** * Change output trade price * @param amount The amount */ private changeOutputTradePrice; /** * Change trade price * @param amount The amount * @param tradeDirection The trade direction */ private changeTradePrice; }