import { BaseNftApi, HandleNftParams } from '@soul-wallet/extension-base/koni/api/nft/nft'; import { _SubstrateApi } from '@soul-wallet/extension-base/services/chain-service/types'; interface Collection { SchemaVersion: string; OffchainSchema: string; ConstOnChainSchema: string; TokenPrefix: string; Description: number[]; Name: number[]; } export default class UniqueNftApi extends BaseNftApi { constructor(api: _SubstrateApi | null, addresses: string[], chain: string); getCollectionCount(): Promise; /** * Retrieve address of NFTs * * @param collectionId: Id of the collection * @param owner: address of account * @returns the array of NFTs */ getAddressTokens(collectionId: number, owner: string): Promise; /** * Retrieve NFT image URL according to the collection offchain schema * * @param collection * @param tokenId: Token ID * @returns the URL of the token image */ getNftImageUrl(collection: Collection, tokenId: string): string | undefined; /** * Retrieve and deserialize properties * * * @param collection * @param tokenId: Token ID * @param locale: Output locale (default is "en") * @param collectionId * @returns tokenData: Token data object */ getNftData(collection: Collection, tokenId: string, locale: string | undefined, collectionId: number): Promise<{ owner: string; prefix: string; collectionName: string; collectionDescription: string; properties: { [k: string]: any; } | null; image: string; } | undefined>; handleNft(address: string, params: HandleNftParams): Promise; handleNfts(params: HandleNftParams): Promise; fetchNfts(params: HandleNftParams): Promise; } export {};