import { Transaction } from '@subql/x-sequelize'; import { PoiRepo, ProofOfIndex } from '../../entities'; import { Cacheable } from '../cacheable'; import { ICachedModelControl } from '../types'; import { IPoi, PlainPoiModel } from './poi'; export declare class CachePoiModel extends Cacheable implements IPoi, ICachedModelControl { readonly model: PoiRepo; private setCache; flushableRecordCounter: number; plainPoiModel: PlainPoiModel; constructor(model: PoiRepo); bulkUpsert(proofs: ProofOfIndex[]): Promise; get isFlushable(): boolean; protected runFlush(tx: Transaction, blockHeight?: number): Promise; clear(blockHeight?: number): void; getPoiBlocksBefore(startHeight: number, options?: { limit: number; }): Promise; }