import { KeyPair } from '@tokenscript/attestation/dist/libs/KeyPair'; import { OffChainTokenConfig } from '../client/interface'; import { OutletIssuerInterface } from '../outlet/interfaces'; export interface IssuerHashMap { [collectionId: string]: string[]; } declare global { interface Window { DISPLAY_DEBUG_LEVEL: string; } } export declare function logger(level: number, ...args: any[]): void; export declare const requiredParams: (item: any, msg: string) => void; export declare const compareObjects: (o1: any, o2: any) => boolean; export declare const base64ToUint8array: (base64str: string) => Uint8Array; export declare const attachPostMessageListener: (listener: any) => void; export declare const removePostMessageListener: (listener: any) => void; export declare const waitForElementToExist: (selector: string) => Promise; export type ErrorType = 'warning' | 'info' | 'error'; export declare const errorHandler: (error: any, type: ErrorType, action?: Function | null, data?: unknown, log?: boolean, throwError?: boolean) => { type: ErrorType; message: any; data: unknown; }; export declare class NegotiatorError extends Error { originalError: any; code?: string; constructor(message: string, originalError: any, code?: string); } export declare const tokenRequest: (query: string, silenceRequestError: boolean) => Promise; export declare const removeUrlSearchParams: (params: URLSearchParams, additionalParams?: string[], namespace?: string | null) => URLSearchParams; export declare const base58ToUint8Array: (base58String: any) => Uint8Array; export declare const strToHexStr: (str: string) => string; export declare const strToUtfBytes: (str: string) => Uint8Array; export declare const hexStringToUint8Array: (hexString: string) => Uint8Array; export declare const createIssuerHashMap: (issuers: OffChainTokenConfig[]) => IssuerHashMap; export declare const createIssuerHashArray: (issuer: OffChainTokenConfig | OutletIssuerInterface) => any[]; export declare const createOffChainCollectionHash: (key: KeyPair, eventId: string, schemaUid?: string) => string; export declare const createCookie: (name: string, value: any, seconds: number) => void; export declare const isCookieMaxAgeExpired: (cookieName: any) => boolean; export declare const isCookieExpired: (cookieName: string) => boolean; export declare const getCookieByName: (cookieName: string) => string; export declare const deleteCookieByName: (cookieName: any) => void; export declare const sleep: (ms: number) => Promise;