import { EndlessConfig } from './endlessConfig.mjs'; import { AccountAddressInput } from '../core/accountAddress.mjs'; import { PaginationArgsOfIndexer } from '../types/index.mjs'; import { PageableCollectionResponse, CollectionResponse, PageableNftCollectionHistoryRecord, PageableHoldersItem, PageableNftTokenResponse, NftTokenResponse, PageableNftTokenHistoryRecord, NftMetrics } from '../types/indexer.mjs'; import '../utils/apiEndpoints.mjs'; import '../utils/const.mjs'; import '../bcs/serializer.mjs'; import '../core/hex.mjs'; import '../core/common.mjs'; import '../bcs/deserializer.mjs'; import '../transactions/instances/transactionArgument.mjs'; /** * A class to query all `NFT` related queries on Endless. */ declare class NFT { readonly config: EndlessConfig; constructor(config: EndlessConfig); /** * Get all collections * * @param args.options.page The page number to retrieve * @param args.options.pageSize The number of items to retrieve per page * @returns The collections */ getCollections(args?: { options?: PaginationArgsOfIndexer; }): Promise; /** * Batch get collections by IDs * * @param args.ids The IDs of the collections to retrieve * @returns The collections */ batchGetCollections(args: { ids: AccountAddressInput[]; }): Promise; /** * Get a collection by ID * * @param args.id The ID of the collection to retrieve * @returns The collection */ getCollection(args: { id: AccountAddressInput; }): Promise; /** * Get collection history by ID * * @param args.id The ID of the collection to retrieve history for * @param args.options.page The page number to retrieve * @param args.options.pageSize The number of items to retrieve per page * @returns The collection history */ getCollectionHistory(args: { id: AccountAddressInput; options?: PaginationArgsOfIndexer; }): Promise; /** * Get collection holders by ID * * @param args.id The ID of the collection to retrieve holders for * @param args.options.page The page number to retrieve * @param args.options.pageSize The number of items to retrieve per page * @returns The collection holders */ getCollectionHolders(args: { id: AccountAddressInput; options?: PaginationArgsOfIndexer; }): Promise; /** * Get collection tokens by ID * * @param args.id The ID of the collection to retrieve tokens for * @param args.options.page The page number to retrieve * @param args.options.pageSize The number of items to retrieve per page * @returns The collection tokens */ getCollectionTokens(args: { id: AccountAddressInput; options?: PaginationArgsOfIndexer; }): Promise; /** * Get an NFT by ID * * @param args.id The ID of the NFT to retrieve * @returns The NFT */ getNft(args: { id: AccountAddressInput; }): Promise; /** * Get NFT history by ID * * @param args.id The ID of the NFT to retrieve history for * @param args.options.page The page number to retrieve * @param args.options.pageSize The number of items to retrieve per page * @returns The NFT history */ getNftHistory(args: { id: AccountAddressInput; options?: PaginationArgsOfIndexer; }): Promise; /** * Get NFT metrics * * @returns The NFT metrics */ getNftMetrics(): Promise; } export { NFT };