import { Algodv2 } from "algosdk"; import { UniversalARCNFTMetadata } from "./types"; export declare function Assert(value: boolean, message: string): asserts value is true; export declare function AssertDefined(value: T | undefined | null, message: string): asserts value is T; /** * Returns the asset info for the given asset index * @param assetIndex * @returns AssetInfo for given asset index * @throws Error if asset index is not found */ export declare function getAssetInfo(assetIndex: number, algoClient: Algodv2): Promise>; export declare function convertPotentialIpfsToHttps(url: string | undefined): string | undefined; /** * Extract NFT image from IPFS metadata, with https://ipfs.io/ipfs/ prefix to make it usable without cross-origin issues * Understands the different cases that are possible, like ARC3, ARC19, and ARC69. Assumes only an image is present. * ARC3 points to JSON with an image link, ARC19 points to JSON with an image link, ARC69 points directly to the image. * Also returns the metadata. * * @param {any} assetInfo * @returns {UniversalARCNFTMetadata} */ export declare function extractNFTMetadata(assetInfo: any, isMainNet: boolean): Promise; export declare function arcResolveProtocol(url: string, reserveAddr: string): string; export declare function getIsARC3Asset(assetInfo: any): boolean; export declare function getIsARC19Asset(assetInfo: any): boolean; export declare function getIsARC69Asset(assetInfo: any): Promise; //# sourceMappingURL=util.d.ts.map