import { LiteralUnion } from 'type-fest'; import { NFTColor } from './color'; export * from './color'; export type NFTLayout = (data: string, width: any, height: any) => string; export type NFTVariant = LiteralUnion<'did-space' | 'app-space' | 'app-passport' | 'app-purchase' | 'app-kyc', string>; export type NFTTagVariant = LiteralUnion<'info' | 'success' | 'error' | 'warning', string>; export type NFTChain = LiteralUnion<'arcblock' | 'ethereum' | '', string>; export type NFTSubject = { name: string; icon: string; }; export type NFTExtra = { key: string; value: string; }; export type NFTProps = { id?: string; width?: any; height?: any; did: string; variant: NFTVariant; color?: NFTColor; header?: NFTSubject; issuer: NFTSubject; extra: NFTExtra; verifiable?: boolean; chain?: NFTChain; tag?: string; tagVariant?: NFTTagVariant; }; export declare const formatDid: (did: string, length?: number) => string; export declare const getLayoutSvg: (variant: NFTVariant, id: string, color: NFTColor) => NFTLayout; export declare const getHeaderSvg: (variant: NFTVariant, id: string, header?: NFTSubject) => string; export declare const getIssuerSvg: (issuer: NFTSubject, id: string, variant: NFTVariant, fontSize?: number) => string; export declare const getExtraSvg: (extra: NFTExtra, id: string, variant: NFTVariant, fontSize?: number) => string; export declare const getDidSvg: (did: string, id: string, fontSize?: number) => string; export declare const getVerifiableBadge: (id: string) => string; export declare const getChainBadge: (chain: NFTChain, only: boolean, id: string) => string; export declare const getBadgesSvg: (verifiable: boolean, chain: NFTChain, id: string) => string; export declare const getTagSvg: (tag: string, variant: NFTTagVariant, id: string) => string; export declare const nanoid: (length?: number) => string; export declare const getSvg: (props: NFTProps) => string;