UNPKG

@uxuycom/web3-tg-sdk

Version:

web3 sdk for tg

49 lines (48 loc) 2.01 kB
export declare const tgUtils: { isTelegram: () => boolean; decodeTelegramUrlParameters: (encodedParameters: any, isObject?: boolean) => any; generateUXUYConnectDeepLink({ method, chain, clientId, request }: { method: string; chain: string; clientId: string; request: any; }): string; stringify: (obj: any) => string; encodeTelegramUrlParameters: (parameters: any, isObject?: boolean) => any; openAndroidLink: (url: any) => void; opendeepLink: (paramsStr: any, { domain, appname, }: { domain?: string | undefined; appname?: string | undefined; }) => void; }; export declare function getUUid(): string; export declare function getPlatform(): never; export declare const delay: (ms: number) => Promise<unknown>; export interface RetryConfig { retries: number; delay: number; } export declare function retry<T>(f: () => Promise<T>, config?: RetryConfig): Promise<T>; export declare function transfer16(val?: any): string; export declare const isInUxuyApp: () => boolean; export declare function uint8ArraytoHex(uint8Array: any): string; export declare const hextoUint8Array: (hexString: any) => Uint8Array; export declare function hextoArrayBuffer(hexString: any): ArrayBufferLike; export declare function arrayBuffertoHex(buffer: any): string; export declare const transferObjecttoHex: (obj: any) => any; export declare const HextoTransferObject: (obj: any) => any; export declare const toLowerCase: (str: any) => any; export declare const promiseTask: { new (lock?: boolean): { setLock(bol: any): void; exec(): void; call(fn: any): any; }; }; export declare function defineUnwritablePropertyIfPossible(o: any, p: any, value: any): void; export declare const isiframe: () => boolean; export declare const isSecureContext: () => boolean; export declare function isInTMA(): boolean; export declare function isEqual(a: any, b: any): boolean; declare const _default: {}; export default _default;