import { INamespace } from 'protobufjs'; import { Bytes } from '@polkadot/types-codec'; import { Address, Balance } from '@unique-nft/sdk/types'; import { INumber } from '@polkadot/types-codec/types'; import { ApiPromise } from '@polkadot/api'; declare const getTokenUrl: ({ schemaVersion, offchainSchema, tokenId, decodedConstData, }: { schemaVersion?: string | undefined; offchainSchema?: string | undefined; tokenId: number; decodedConstData?: Record | undefined; }) => string | null; declare function serializeConstData(payload: Record, schema: INamespace): Uint8Array; declare const decodeConstData: (tokenConstData: Uint8Array, schema: INamespace) => Record; declare const utf16ToString: (input: Array<{ toNumber(): number; }>) => string; declare function stringToUTF16(input: string): number[]; declare function bytesToString(input: Bytes): string; declare function bytesToJson(input: Bytes): any | undefined; declare function normalizeAddress(address: Address, ss58Format?: number): string; declare function normalizeAddressAsync(address: Address, ss58Format?: number): Promise; declare function serialize(data: any): any; declare type FormatOptions = { decimals: number; unit: string; }; declare type AnyNumber = INumber | number | string; declare function formatBalance(options: FormatOptions, raw: AnyNumber): Balance; declare function formatBalance(api: ApiPromise, raw: AnyNumber): Balance; export { bytesToJson, bytesToString, decodeConstData, formatBalance, getTokenUrl, normalizeAddress, normalizeAddressAsync, serialize, serializeConstData, stringToUTF16, utf16ToString };