import { BlockHeightKey, MemBlockHeightSwCache } from '../index'; import { Knex } from 'knex'; import { StateCache } from '../..'; /** * An implementation of {@link BlockHeightSwCache} that stores its data (ie. contracts state) * in a Knex-compatible storage (PostgreSQL, CockroachDB, MSSQL, MySQL, MariaDB, SQLite3, Oracle, and Amazon Redshift) * https://knexjs.org */ export declare class KnexStateCache extends MemBlockHeightSwCache> { private readonly knex; private readonly kLogger; private readonly lastFlushHeight; private isFlushing; private isDirty; private constructor(); static init(knex: Knex, maxStoredInMemoryBlockHeights?: number): Promise; private saveCache; put({ cacheKey, blockHeight }: BlockHeightKey, value: StateCache): Promise; flush(): Promise; } //# sourceMappingURL=KnexStateCache.d.ts.map