import { UseQueryResult } from '@tanstack/react-query'; import { ChainId, Token } from '@ape.swap/apeswap-lists'; /** * useAllowance hook: fetches the amount approved by the user for a given token * useApproval hook: returns the approval state (not approved, pending or approved) and a function to approve on chain * getTokenAllowance function fetches the allowance on chain */ export declare enum ApprovalState { NOT_APPROVED = "NOT_APPROVED", PENDING = "PENDING", APPROVED = "APPROVED" } export default function useAllowance(currency: 'NATIVE' | Token | null, spender: string | null, account: string | null, chainId: ChainId | null): UseQueryResult; export declare const getTokenAllowance: (currency: "NATIVE" | Token | null, spender: string | null, account: string | null, chainId: ChainId | null) => Promise; export declare const useApproval: (amount: string, currency: "NATIVE" | Token | null, spender: string | null, account: string | null, chainId: ChainId | null) => [ApprovalState, () => Promise];