UNPKG

btc-wallet

Version:

BTC Wallet is a toolkit that enables Bitcoin usage on the NEAR blockchain through the Satoshi protocol.

25 lines (24 loc) 1.34 kB
import type { AAOptions } from '@particle-network/aa'; export declare function shortString(str: any): string; export declare function copyToClipboard(text: string): Promise<unknown>; export declare const defaultTokenIcon = "https://static.particle.network/token-list/defaultToken/default.png"; export declare const ipfsToSrc: (ipfs: string) => string; export declare const checkBTCVersion: (accountContracts: AAOptions["accountContracts"], accountContractKey: string, version: string) => boolean; export declare const delay: (ms: number) => Promise<unknown>; export declare function retryOperation<T>(operation: () => Promise<T> | T, shouldStop: (result: T) => boolean, { maxRetries, delayMs, }?: { maxRetries?: number; delayMs?: number; }): Promise<T>; export declare function toHex(originalString: string): string; export declare function isMobile(): boolean; export declare function safeJSONParse<T>(str: string): T | undefined; export declare function safeJSONStringify(obj: any): string | undefined; export declare function storageStore(namespace?: string, options?: { storage?: Storage; }): { set(key: string, value: any): void; get<T>(key: string): T | undefined; remove(key: string): void; clearAll: () => void; } | undefined; export declare const getUrlQuery: (url?: string) => Record<string, any>;