import { ContractRoute, ContractPath, ContractAdapter, OptimalSwap, OptimalRoute, ContractMegaSwapPath, OptimalSwapExchange, Address } from '../types'; import { SwapSide } from '../constants'; import { DexAdapterService } from '../dex'; export declare function encodePartnerAddressForFeeLogic({ partnerAddress, partnerFeePercent, takeSurplus, }: { partnerAddress: string; partnerFeePercent: string; takeSurplus: boolean; }): string; export declare function encodeFeePercent(partnerFeePercent: string, takeSurplus: boolean, side: SwapSide): string; export declare function encodeFeePercentForReferrer(side: SwapSide): string; export declare class PayloadEncoder { protected dexAdapterService: DexAdapterService; constructor(dexAdapterService: DexAdapterService); getContractPathsWithNetworkFee(swaps: OptimalSwap[]): { paths: ContractPath[]; networkFee: bigint; }; getMegaSwapPathsWithNetworkFee(routes: OptimalRoute[]): { megaSwapPaths: ContractMegaSwapPath[]; networkFee: bigint; }; getAdapterAndRouteForBuy(srcToken: Address, destToken: Address, swapExchanges: OptimalSwapExchange[], maxAmount: string, totalSrcAmount: string): { adapter: Address; route: ContractRoute[]; networkFee: bigint; }; getAdapters(srcToken: Address, destToken: Address, swapExchanges: OptimalSwapExchange[]): ContractAdapter[]; getOptimalExchangeAdapterMap(swapExchanges: OptimalSwapExchange[], side?: SwapSide): { [exchange: string]: [Address, number]; }; }