import { Transaction } from '@subql/x-sequelize'; import { DatasourceParams } from '../../dynamic-ds.service'; import { Metadata, MetadataKeys, MetadataRepo } from '../../entities'; import { HistoricalMode } from '../../types'; import { Cacheable } from '../cacheable'; import { ICachedModelControl } from '../types'; import { IMetadata } from './metadata'; import { MetadataKey, IncrementalMetadataKey } from './utils'; export declare class CacheMetadataModel extends Cacheable implements IMetadata, ICachedModelControl { readonly model: MetadataRepo; readonly historical: HistoricalMode; private setCache; private getCache; private removeCache; private datasourceUpdates; flushableRecordCounter: number; constructor(model: MetadataRepo, historical?: HistoricalMode); find(key: K, fallback?: MetadataKeys[K]): Promise; findMany(keys: readonly K[]): Promise>; set(key: K, value: MetadataKeys[K], tx?: Transaction): Promise; setBulk(metadata: Metadata[]): Promise; setIncrement(key: IncrementalMetadataKey, amount?: number): Promise; setNewDynamicDatasource(item: DatasourceParams): Promise; private incrementJsonbCount; private appendDynamicDatasources; private handleSpecialKeys; get isFlushable(): boolean; runFlush(tx: Transaction, blockHeight?: number): Promise; bulkRemove(keys: K[], tx?: Transaction): Promise; clear(blockHeight?: number): void; }