import { BigNumber } from '@ethersproject/bignumber'; import { Contract } from '@ethersproject/contracts'; import type { Provider } from '@ethersproject/providers'; import { Authorization } from './types'; export declare enum AuthorizationError { REVOKE_FAILED = "revoke-failed-error", GRANT_FAILED = "grant-failed-error", INSUFFICIENT_ALLOWANCE = "insufficient-allowance", FETCH_AUTHORIZATIONS_FAILURE = "fetch-authorizations-failure" } export declare function getTokenAmountToApprove(): BigNumber; export declare function hasAuthorization(authorizations: Authorization[], authorizationToFind: Authorization): boolean; export declare function hasAuthorizationAndEnoughAllowance(authorizations: Authorization[], authorizationToFind: Authorization, allowance: string): boolean; export declare function areEqual(left: Authorization, right: Authorization): boolean; export declare function isValidType(type: string): boolean; export declare function getERC20ContractInstance(contractAddress: string, provider: Provider): Contract; export declare function getERC721ContractInstance(contractAddress: string, provider: Provider): Contract; export declare function getCollectionV2ContractInstance(contractAddress: string, provider: Provider): Contract;