import type { BaseTransactionOptions } from "../../../transaction/types.js"; import { type NFT } from "../../../utils/nft/parseNft.js"; import type { Prettify } from "../../../utils/type-utils.js"; import { type TokenURIParams } from "../__generated__/IERC721A/read/tokenURI.js"; export { isTokenURISupported as isGetNFTSupported } from "../__generated__/IERC721A/read/tokenURI.js"; /** * Parameters for getting an NFT. * @extension ERC721 */ export type GetNFTParams = Prettify; /** * Retrieves information about a specific ERC721 non-fungible token (NFT). * @param options - The options for retrieving the NFT. * @returns A promise that resolves to the NFT object. * @extension ERC721 * @example * ```ts * import { getNFT } from "thirdweb/extensions/erc721"; * const nft = await getNFT({ * contract, * tokenId: 1n, * }); * ``` * * * @example * ```ts * import { getNFT } from "thirdweb/extensions/erc721"; * * * const nft = await getNFT({ * contract, * tokenId: 1n, * tokenByIndex: true // use this flag if the contract supports `tokenByIndex` and the above tokenId should be treated as an index. * }); * ``` */ export declare function getNFT(options: BaseTransactionOptions): Promise; //# sourceMappingURL=getNFT.d.ts.map