import BigNumber from 'bignumber.js'; import { SwapSide } from '@paraswap/core'; import { Network } from './constants'; import { DexConfigMap, Logger, TransferFeeParams } from './types'; import { MultiResult } from './lib/multi-wrapper'; import { Contract } from 'web3-eth-contract'; import Web3 from 'web3'; import { AxiosError } from 'axios'; export declare const isAxiosError: (e: any) => e is AxiosError; export declare const isETHAddress: (address: string) => boolean; export declare const prependWithOx: (str: string) => string; export declare const uuidToBytes16: (uuid: string) => string; export declare function toUnixTimestamp(date: Date | number): number; export declare function convertToBasisPoints(dist: number[]): number[]; export declare function getDexKeysWithNetwork(dexConfig: DexConfigMap): { key: string; networks: Network[]; }[]; export declare function getBigIntPow(decimals: number): bigint; export declare function stringifyWithBigInt(obj: unknown): string; export declare function _require(b: boolean, message: string, values?: Record, condition?: string): void; interface SliceCallsInput { inputArray: T[]; execute: (inputSlice: T[], sliceIndex: number) => U; sliceLength: number; } export declare function sliceCalls({ inputArray, execute, sliceLength, }: SliceCallsInput): [U, ...U[]]; export declare function interpolate(oldVolume: bigint[], oldPrices: bigint[], newVolume: bigint[], side: SwapSide): bigint[]; export declare const bigIntify: (val: any) => bigint; export declare const bigNumberify: (val: any) => BigNumber; export declare const stringify: (val: any) => any; export declare const catchParseLogError: (e: any, logger: Logger) => void; export declare const isSampled: (sampleRate?: number) => boolean; type TypeSerializer = { checker: (obj: any) => boolean; caster: (obj: any) => any; }; export declare function deepTypecast(obj: any, types: TypeSerializer[]): any; export declare class Utils { static Serialize(data: any): string; static Parse(data: any): any; static timeoutPromise(promise: Promise, timeout: number, message: string): Promise; } export declare const isSrcTokenTransferFeeToBeExchanged: (transferFees: TransferFeeParams) => boolean; export declare const normalizeAddress: (address: string) => string; export declare function currentBigIntTimestampInS(): bigint; export declare const isDestTokenTransferFeeToBeExchanged: (transferFees: TransferFeeParams) => boolean; export declare const isTruthy: (x: T | undefined | null | "" | false | 0) => x is T; type MultiCallParams = { target: any; callData: any; }; type BlockAndTryAggregateResult = { blockNumber: number; results: MultiResult[]; }; export declare const blockAndTryAggregate: (mandatory: boolean, multi: Contract, calls: MultiCallParams[], blockNumber: number | "latest") => Promise; export declare const isContractAddress: (web3: Web3, addr: string) => Promise; export declare const int16: (x: bigint) => bigint; export declare const int32: (x: bigint) => bigint; export declare const int64: (x: bigint) => bigint; export declare const int128: (x: bigint) => bigint; export declare const int256: (x: bigint) => bigint; export declare const uint16: (x: bigint) => bigint; export declare const uint32: (x: bigint) => bigint; export declare const uint64: (x: bigint) => bigint; export declare const uint128: (x: bigint) => bigint; export declare const uint256: (x: bigint) => bigint; export {};