UNPKG

@tenprotocol/session-keys

Version:

Framework-agnostic session key management for TEN Protocol

21 lines (16 loc) 1.45 kB
import { E as EIP1193Provider, T as TransactionParams, S as SessionKeyState, a as StateSubscriber } from './index-mYMQzYjE.mjs'; declare const createSessionKey: (provider: EIP1193Provider) => Promise<string>; declare const fundSessionKey: (sessionKeyAddress: string, amount: string, provider: EIP1193Provider, userAddress: string) => Promise<string>; declare const activateSessionKey: (provider: EIP1193Provider) => Promise<void>; declare const deactivateSessionKey: (provider: EIP1193Provider) => Promise<void>; declare const deleteSessionKey: (provider: EIP1193Provider) => Promise<void>; declare const cleanupSessionKey: (provider: EIP1193Provider) => Promise<void>; declare const sendTransaction: (txParams: TransactionParams, provider: EIP1193Provider) => Promise<string>; declare const getState: () => SessionKeyState; declare const subscribeToState: (callback: StateSubscriber) => (() => void); declare const getSessionKey: () => string | null; declare const getIsActive: () => boolean; declare const getBalance: () => SessionKeyState["balance"]; declare const getIsLoading: () => boolean; declare const getError: () => Error | null; export { EIP1193Provider, SessionKeyState, StateSubscriber, TransactionParams, activateSessionKey, cleanupSessionKey, createSessionKey, deactivateSessionKey, deleteSessionKey, fundSessionKey, getBalance, getError, getIsActive, getIsLoading, getSessionKey, getState, sendTransaction, subscribeToState };