import { type DynamicClient, type NetworkData } from '@dynamic-labs-sdk/client'; import type { EvmWalletAccount } from '../../EvmWalletAccount.types'; type GetErc20AllowanceParams = { networkData?: NetworkData; ownerAddress: string; spenderAddress: string; tokenAddress: string; walletAccount: EvmWalletAccount; }; /** * Reads the current ERC-20 token allowance granted by an owner to a spender. * * Uses a viem public client derived from the wallet account's active network * to call the `allowance(owner, spender)` method on the token contract. * * @param params.tokenAddress - The ERC-20 token contract address. * @param params.ownerAddress - The address that granted the allowance. * @param params.spenderAddress - The address allowed to spend the tokens. * @param params.walletAccount - The EVM wallet account used to resolve the active network. * @param [params.networkData] - The network data to use for the public client. If not provided, the active network data will be used. * @param client - The Dynamic client instance. * @returns The current allowance as a bigint in the token's smallest unit. * @not-instrumented */ export declare const getErc20Allowance: ({ networkData, ownerAddress, spenderAddress, tokenAddress, walletAccount, }: GetErc20AllowanceParams, client: DynamicClient) => Promise; export {}; //# sourceMappingURL=getErc20Allowance.d.ts.map