import { IndexedDB } from '../idb'; import { BaseTornadoService, BaseTornadoServiceConstructor } from './base'; import { BaseEvents, MinimalEvents, DepositsEvents, WithdrawalsEvents, CachedEvents } from './types'; export declare function saveDBEvents({ idb, instanceName, events, lastBlock, }: { idb: IndexedDB; instanceName: string; events: T[]; lastBlock: number; }): Promise; export declare function loadDBEvents({ idb, instanceName, }: { idb: IndexedDB; instanceName: string; }): Promise>; export declare function loadRemoteEvents({ staticUrl, instanceName, deployedBlock, zipDigest, }: { staticUrl: string; instanceName: string; deployedBlock: number; zipDigest?: string; }): Promise>; export interface DBTornadoServiceConstructor extends BaseTornadoServiceConstructor { staticUrl: string; idb: IndexedDB; } export declare class DBTornadoService extends BaseTornadoService { staticUrl: string; idb: IndexedDB; zipDigest?: string; constructor(params: DBTornadoServiceConstructor); getEventsFromDB(): Promise>; getEventsFromCache(): Promise>; saveEvents({ events, lastBlock }: BaseEvents): Promise; }