import { Modules } from 'klayr-framework'; import { Uint256String } from '../library/int'; import { MutableSwapContext, ExactInputParams, ExactInputSingleParams, ExactOutputParams, ExactOutputSingleParams, DexModuleConfig, TokenMethod } from '../../types'; export declare class SwapRouter { constructor(stores: Modules.NamedRegistry, config: DexModuleConfig, moduleName: string); addDependencies(context: MutableSwapContext, tokenMethod: TokenMethod): void; setSender(senderAddress: Buffer): void; setConfig(config: DexModuleConfig): void; exactInputSingle(params: ExactInputSingleParams): Promise; exactInput(_params: ExactInputParams): Promise; exactOutputSingle(params: ExactOutputSingleParams): Promise; exactOutput(params: ExactOutputParams): Promise; private _checkDependencies; private _checkDeadline; private _pay; private _createPayload; private _getPool; private _swapCallback; private _exactInputInternal; private _exactOutputInternal; private _checkRemainingBalance; private _checkFeeProtocol; private _validateFeeProtocol; readonly address: Buffer; private readonly _DEFAULT_AMOUNT_IN_CACHED; private readonly poolStore; private readonly moduleName; private feeProtocol; private feeProtocolPool; private _amountInCached; private mutableContext; private tokenMethod; private mutableDependencyReady; }