/** * CIP-14 asset fingerprint (`asset1…`) from a policy id and asset-name, both hex. * `fingerprint = bech32("asset", blake2b-160(policyId ++ assetName))`. Pure — safe in any runtime. */ export declare function assetFingerprint(policyIdHex: string, assetNameHex?: string): string; export interface NftcdnUrlOptions { /** NFTCDN subdomain from your dashboard, e.g. "handles" for `*.handles.nftcdn.io`. */ subdomain: string; /** Gateway secret key — base64 string (as shown in the dashboard) or raw bytes. SERVER-ONLY. */ key: string | Uint8Array; /** Optimized size in px; NFTCDN accepts powers of two 32…1024. Omit for the original image. */ width?: number; /** Endpoint path; defaults to "/image" ("/metadata", "/files/…" also exist). */ path?: string; } /** * Build a signed NFTCDN URL for an already-computed fingerprint, mirroring NFTCDN's reference * algorithm: serialize params with an empty `tk`, HMAC-SHA256 the full URL, then set * `tk = base64url(mac)` (unpadded). SERVER-ONLY (needs the secret key). */ export declare function signNftcdnUrl(fingerprint: string, options: NftcdnUrlOptions): string; /** * Convenience: a signed NFTCDN image URL straight from a policy id + asset-name (both hex). * Computes the CIP-14 fingerprint, then signs. SERVER-ONLY (needs the secret key). */ export declare function nftcdnImageUrl(policyIdHex: string, assetNameHex: string, options: NftcdnUrlOptions): string; //# sourceMappingURL=index.d.ts.map