import type { Dnum } from 'dnum'; export interface MaxSpendableAmount { /** A native EVM source's gas price hasn't loaded, so Max is unknown. */ isLoading: boolean; /** The balance less its fee reserve. Only meaningful when `!isLoading`. */ getMaxSpendable: (balance: Dnum) => Dnum; } /** * What Max may fill in for a source token: the balance less its fee reserve. * A function of the balance so a caller can apply it to a balance read after * render (the pre-sign check). * - EVM gas is the live gas price × checkout's Statsig gas-unit buffer. * - A chain missing from the wagmi config, or a failed gas request, falls back * to the full balance with a warning rather than leaving Max disabled. */ export declare function useMaxSpendableAmount({ chainId, tokenAddress, }: { chainId: string; tokenAddress: string; }): MaxSpendableAmount;