import { Wallet } from './types/Wallet'; import { addressesParameter } from './addresses'; import { Item } from './types/ItemInterface'; import { Listing, Listings } from './types/ListingsInterface'; import { Api } from './types/ApiInterface'; import { Order } from './types/OrderInterface'; import { env, Options } from './types/OptionsInterface'; import { EventType } from './types/EventType'; import { providers } from 'ethers'; import { NetworkType } from './types/NetworkType'; import { Balances, Transfers } from './types/NftDataResponse'; export declare class Nifty { wallet: Wallet; key: string; env: env; addresses: addressesParameter; api: Api; blockChainController: any; listener: Function; constructor(options: Options); initWallet(NetworkType: NetworkType, provider: providers.Provider): Promise; setMarketplaceAddresses(addresses: addressesParameter): void; setStatusListener(listener: Function): void; setApiBaseURL(url: string): void; addListener(listener: Function, event: EventType, once?: boolean): void; verifyMarkletplace(): void; buy(orderId: string, isExternalOrder?: boolean): Promise; list(item: Item, price: number | string, expirationTime: number, ERC20Address?: string): Promise; offer(item: Item, price: number, expirationTime: number, isFullConversion: boolean): Promise; acceptOffer(orderId: string): Promise; offerTrade(offeredItems: Array, receivedItems: Array, expirationTime: number): Promise; acceptTrade(orderId: string): Promise; cancelOrder(orderId: string): Promise; transfer(item: Item, addressToSend: string): Promise; createNFTContract(name: string, symbol: string): Promise; createNFT(metadata: string, selectedCollectionAddress: string): Promise; getCollections(): Promise; getAvailablePaymentMethods(chainId?: number | string, defaultPaymentMethod?: boolean): Array; isApproveForAll(item: Item): Promise; getAccountBalance(ERC20Address?: null): Promise; /** * @param item item recived from api * @param listings array of listings from getNFTData * @returns returns canBuy * @returns returns canSell */ getUserAvailableMethods(listings: Listings, item: Item): Promise<{ canBuy: boolean; canSell: boolean; canCancel: boolean; canOffer: boolean; }>; getAllNFTData(contractAddress: string, tokenID: number, chainId: number): Promise<{ nft: Item; nftData: { balances: Balances[]; transfers: Transfers[]; listings: Listing[]; offers: any[]; }; userAvailableMethods: { canBuy: boolean; canSell: boolean; canCancel: boolean; canOffer: boolean; }; } | { nft: Item; nftData: { balances: Balances[]; transfers: Transfers[]; listings: Listing[]; offers: any[]; }; userAvailableMethods?: undefined; }>; /** * @param filter options * @param filter.contracts array of contracts to filter by * @param filter.search string to search by * @param filter.order has order attached * @param filter.verified only show verified listings * @param filter.priceRange array of price range [min,max] * @param filter.chains array of chains [] * @param filter.address user address to filter by * @param filter.connectedChainId chain id of the user address * @param filter.traits array of traits to filter by * @param filter.sort string to sort by * @param filter.limit number on NFTs to return * @param filter.skip number of NFTs to skip * @returns returns NFTs from api */ getNFTs(options: object): Promise>; /** * @param contractAddress NFT contract address * @param tokenID NFT token id * @param chainId chain id of the NFT * @returns returns NFT from api */ getNFT(contractAddress: string, tokenID: number, chainId: number, chainType?: string): Promise; /** * @param item item recived from api * @returns returns NFT data object * @returns returns NFT balances(1155) * @returns returns NFT transfers * @returns returns NFT offers */ getNFTData(contractAddress: string, tokenID: number | string, contractType: string, chainType: string, chainId: number, tokenId: string): Promise<{ balances: Array; transfers: Array; listings: Array; offers: Array; }>; /** * @param orderId order id from item * @param externalOrder boolean if the order is external * @returns listing */ getListing(orderId: string, isExternalOrder?: boolean): Promise; getNFTOwner(contractAddress: string, tokenID: number | string, chainType: string, chainId: number, contractType: string, orderId?: string): Promise; static utils: { findChainById: (id: any) => { name: string; chainId: number; shortName: string; chain: string; chainIcon: string; chainIconWrapper: string; network: string; networkId: number; chainType: "solana" | "evm" | "immutablex" | "xrpl"; greenPayFee?: number | undefined; hasGasless?: boolean | undefined; nativeCurrency: any; explorer: string; } | { chainType: "evm"; nativeCurrency: { icon: string; }; name: string; shortName: string; }; transactionConfirmation: (web3: any, txnHash: any) => Promise; }; static networkTypes: { EVM: string; IMMUTABLEX: string; SOLANA: string; XRPL: string; }; static envs: { PROD: string; TESTNET: string; }; } //# sourceMappingURL=nifty.d.ts.map