import { JsonRpcRequest, JsonRpcResponse } from 'json-rpc-engine'; import SafeEventEmitter from '@metamask/safe-event-emitter'; export declare type Payload = Partial>; export interface JsonRpcRequestToCache extends JsonRpcRequest { skipCache: boolean; } export declare type BlockData = string | string[]; export declare type Block = Record; export declare type BlockCache = Record; export declare type Cache = Record; export declare type SendAsyncCallBack = (err: unknown, providerRes: JsonRpcResponse) => void; export declare type SendCallBack = (err: any, providerRes: JsonRpcResponse) => void; export interface SafeEventEmitterProvider extends SafeEventEmitter { sendAsync: (req: JsonRpcRequest, cb: SendAsyncCallBack) => void; send: (req: JsonRpcRequest, callback: SendCallBack) => void; }