UNPKG

@shogun-sdk/accounts

Version:

Shogun with Turnkey: configs, encryption, authentication with Telegram/Turnkey OIDC, etc.

17 lines 825 B
import { WalletType as TurnkeyWalletType } from '@turnkey/wallet-stamper'; export declare const getPublicKeyFromPrivateKeyHex: (privateKey: string) => string; /** * Get an item from localStorage. If it has expired, remove * the item from localStorage and return null. * @param {string} key */ export declare const getItemWithExpiry: (key: string) => any; /** * Set an item in localStorage with an expiration time * @param {string} key * @param {string} value * @param {number} ttl expiration time in milliseconds */ export declare const setItemWithExpiry: (key: string, value: string, ttl: number) => void; export declare const handleTurnkeyApiKeys: (organizationId: string, walletType: TurnkeyWalletType | "delegation", errorHandler: (error: Error) => void) => Promise<string>; //# sourceMappingURL=turnkey.d.ts.map