UNPKG

@keyban/sdk-base

Version:

Keyban Javascript SDK provides core functionalities for the MPC wallet solution, supporting web and Node.js apps with TypeScript, custom storage, and Ethereum blockchain integration.

37 lines (32 loc) 1.22 kB
import { K as KeybanBaseError } from './SdkError-DzGadnVF.mjs'; export { S as SdkError, a as SdkErrorTypes } from './SdkError-DzGadnVF.mjs'; declare enum CryptoErrorType { GenerateKey = "GenerateKey", ExportKey = "ExportKey", ImportKey = "ImportKey", Encrypt = "Encrypt", Decrypt = "Decrypt" } declare class CryptoError extends KeybanBaseError<CryptoErrorType> { #private; static types: typeof CryptoErrorType; constructor(type: CryptoErrorType, instance: string, rootError?: Error); } declare enum IFrameRpcErrorType { InvalidOrigin = "InvalidOrigin", InvalidCall = "InvalidCall" } declare class IFrameRpcError extends KeybanBaseError<IFrameRpcErrorType> { #private; static types: typeof IFrameRpcErrorType; constructor(type: IFrameRpcErrorType, instance: string, rootError?: Error); } declare enum JwtErrorType { InvalidToken = "InvalidToken" } declare class JwtError extends KeybanBaseError<JwtErrorType> { #private; static types: typeof JwtErrorType; constructor(type: JwtErrorType, instance: string, rootError?: Error); } export { CryptoError, CryptoErrorType, IFrameRpcError, IFrameRpcErrorType, JwtError, JwtErrorType, KeybanBaseError };