import { BeforeApplicationShutdown } from '@nestjs/common'; import { ModelStatic } from '@subql/x-sequelize'; import { MetadataRepo, PoiRepo } from '../entities'; import { HistoricalMode } from '../types'; import { Exporter } from './exporters'; import { BaseEntity, IModel } from './model'; export declare abstract class BaseStoreModelService> implements BeforeApplicationShutdown { protected historical: HistoricalMode; protected poiRepo?: PoiRepo; protected metadataRepo?: MetadataRepo; protected cachedModels: Record; protected abstract createModel(entity: string): M; init(historical: HistoricalMode, meta: MetadataRepo, poi?: PoiRepo): void; getModel(entity: string): IModel; updateModels({ modifiedModels, removedModels }: { modifiedModels: ModelStatic[]; removedModels: string[]; }): void; beforeApplicationShutdown(): Promise; getAllExporters(): Exporter[]; }