import type { Transaction, TransactionId } from '../types'; declare class TransactionCache { #private; static _inst: TransactionCache; constructor(); get length(): number; clear(): this; get(transaction: K): Transaction[K]; get(): Map; has(transaction: K): boolean; set(transaction: K, obj: Transaction[TransactionId]): this; getHandler(type: string, event: Evt): ((...args: any[]) => any) | undefined; useHandler(type: string, opts: { event: Evt; fn: (...args: any[]) => Promise; }): this; } export default TransactionCache;