import { RPCErrorCode } from './exception-types'; export interface JsonRpcRequestPayload { jsonrpc: string; id: string | number | null; method: string; params?: TParams; } export interface JsonRpcRequestCallback { /** Callback executed upon JSON RPC response. */ (err: JsonRpcError | null, result?: JsonRpcResponsePayload | null): void; } export interface JsonRpcError { message: string; code: RPCErrorCode; data?: any; } export interface JsonRpcResponsePayload { jsonrpc: string; id: string | number | null; result?: ResultType | null; error?: JsonRpcError | null; } /** * Enum of JSON RPC methods for interacting with the Magic SDK authentication * relayer. */ export declare enum MagicPayloadMethod { ExportPrivateKey = "magic_export_key", ImportPrivateKey = "magic_import_key" } export type EthNetworkName = 'mainnet' | 'goerli' | 'sepolia'; export declare enum EthChainType { Harmony = "HARMONY" } export interface CustomNodeConfiguration { rpcUrl: string; chainId?: number; chainType?: EthChainType; } export type EthNetworkConfiguration = EthNetworkName | CustomNodeConfiguration; export type ProviderEnableEvents = { 'id-token-created': (params: { idToken: string; }) => void; };