import type { Account } from "@ledgerhq/types-live"; import type { Unit } from "@ledgerhq/types-cryptoassets"; import BigNumber from "bignumber.js"; export type GetEvmTokenAllowanceResult = { allowance: BigNumber; unit: Unit; symbol: string; tokenId: string; owner: string; spender: string; contractAddress: string; }; /** * Get the ERC-20 allowance that an owner has granted to a spender for a given token. * Only valid for EVM main accounts; token must be on the same chain as the account. * * @param account - EVM main account (owner address is account.freshAddress) * @param tokenId - Token id e.g. ethereum/erc20/usd_tether__erc20_ for USDT * @param spender - Spender address (e.g. router or protocol) * @returns Allowance in token units and metadata, or throws if token not found / not EVM */ export declare function getEvmTokenAllowance(account: Account, tokenId: string, spender: string): Promise; //# sourceMappingURL=getTokenAllowance.d.ts.map