import { Token } from "../Tokens"; import { ChainId } from "../constants"; import { TokenSwapTransaction, TokenTransferTransaction } from "./types"; /** * * Fetches transactions for a given wallet, and classifies them based by their type. When applicable, includes the equivalent * value of a transaction in local currency at the time of transaction. * * @param walletAddress Wallet to fetch transactions for * @param chain Chain Id to get transactions for * @param getToken Helper to turn an address into a Token * @param opts Optional paramter to set page, number of txns per page, and the local currency * @returns A list of transactions parsed into a useable format, alongside the equivalent value in the given local currency */ export declare const fetchTransactions: (walletAddress: string, chain: ChainId, getToken: (address: string) => Token, opts?: { page?: number; perPage?: number; localCurrencyCode?: string; }) => Promise<(TokenTransferTransaction | TokenSwapTransaction)[]>;