UNPKG

@cruxpay/js-sdk

Version:

CruxPay Javascript SDK

16 lines (15 loc) 1.03 kB
import request from "request"; import { StorageService } from "./storage"; declare const httpJSONRequest: (options: (request.UriOptions & request.CoreOptions) | (request.UrlOptions & request.CoreOptions)) => Promise<object>; declare const sanitizePrivKey: (privKey: string) => string; declare const sanitizeUrl: (url: string) => string; declare const trimTrailingSlash: (value: string) => string; declare const getRandomHexString: (length?: number) => string; declare const cachedFunctionCall: (storage: StorageService | undefined, cacheKey: string, ttl: number | undefined, fn: (...args: any[]) => any, paramArray: any[], skipConditional?: ((returnValue: any) => Promise<boolean>) | undefined) => Promise<any>; declare const cloneValue: (obj: any) => any; declare const getKeyPairFromPrivKey: (privKey: string) => { privKey: string; pubKey: string; address: string; }; export { httpJSONRequest, sanitizePrivKey, sanitizeUrl, cachedFunctionCall, getKeyPairFromPrivKey, getRandomHexString, cloneValue, trimTrailingSlash, };