import type { Address } from "viem"; import { AddressMap } from "../utils/index.js"; import type { Asset } from "./types.js"; export declare function balancesMap(assets: Array): AddressMap; export declare function assetsMap(assets: Array | readonly T[]): AddressMap; /** * TODO: is this weird workaround still needed? * According to van0k, leftover balance for 0x19ebd191f7a24ece672ba13a302212b5ef7f35cb * should always be rounded up to 5e17 if amount is less than 5e17 * Should NEVER be compared with "||" since function will lose it's effect */ export declare function limitLeftover(balance: bigint | undefined, token: Address): bigint | undefined;