import { IndexedDB } from '../idb'; import { BaseTornadoService, BaseTornadoServiceConstructor, BaseEchoService, BaseEchoServiceConstructor, BaseEncryptedNotesService, BaseEncryptedNotesServiceConstructor, BaseGovernanceService, BaseGovernanceServiceConstructor, BaseRegistryService, BaseRegistryServiceConstructor } from './base'; import { BaseEvents, MinimalEvents, DepositsEvents, WithdrawalsEvents, CachedEvents, EchoEvents, EncryptedNotesEvents, AllGovernanceEvents, RegistersEvents } 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; } export interface DBEchoServiceConstructor extends BaseEchoServiceConstructor { staticUrl: string; idb: IndexedDB; } export declare class DBEchoService extends BaseEchoService { staticUrl: string; idb: IndexedDB; zipDigest?: string; constructor(params: DBEchoServiceConstructor); getEventsFromDB(): Promise>; getEventsFromCache(): Promise>; saveEvents({ events, lastBlock }: BaseEvents): Promise; } export interface DBEncryptedNotesServiceConstructor extends BaseEncryptedNotesServiceConstructor { staticUrl: string; idb: IndexedDB; } export declare class DBEncryptedNotesService extends BaseEncryptedNotesService { staticUrl: string; idb: IndexedDB; zipDigest?: string; constructor(params: DBEncryptedNotesServiceConstructor); getEventsFromDB(): Promise>; getEventsFromCache(): Promise>; saveEvents({ events, lastBlock }: BaseEvents): Promise; } export interface DBGovernanceServiceConstructor extends BaseGovernanceServiceConstructor { staticUrl: string; idb: IndexedDB; } export declare class DBGovernanceService extends BaseGovernanceService { staticUrl: string; idb: IndexedDB; zipDigest?: string; constructor(params: DBGovernanceServiceConstructor); getEventsFromDB(): Promise>; getEventsFromCache(): Promise>; saveEvents({ events, lastBlock }: BaseEvents): Promise; } export interface DBRegistryServiceConstructor extends BaseRegistryServiceConstructor { staticUrl: string; idb: IndexedDB; } export declare class DBRegistryService extends BaseRegistryService { staticUrl: string; idb: IndexedDB; zipDigest?: string; constructor(params: DBRegistryServiceConstructor); getEventsFromDB(): Promise>; getEventsFromCache(): Promise>; saveEvents({ events, lastBlock }: BaseEvents): Promise; }