import { InteractionState } from './InteractionState'; import { CacheKey, SortKeyCacheResult } from '../../cache/SortKeyCache'; import { EvalStateResult } from '../../core/modules/StateEvaluator'; import { GQLNodeInterface } from '../../legacy/gqlResult'; import { Warp } from '../../core/Warp'; import { SortKeyCacheRangeOptions } from '../../cache/SortKeyCacheRangeOptions'; export declare class ContractInteractionState implements InteractionState { private readonly _warp; private readonly _json; private readonly _initialJson; private readonly _kv; constructor(_warp: Warp); has(contractTx: any, sortKey: string): boolean; get(contractTxId: string, sortKey: string): EvalStateResult; getLessOrEqual(contractTxId: string, sortKey?: string): SortKeyCacheResult> | null; getKV(contractTxId: string, cacheKey: CacheKey): Promise; delKV(contractTxId: string, cacheKey: CacheKey): Promise; getKvKeys(contractTxId: string, sortKey?: string, options?: SortKeyCacheRangeOptions): Promise; getKvRange(contractTxId: string, sortKey?: string, options?: SortKeyCacheRangeOptions): Promise>; commit(interaction: GQLNodeInterface, forceStore?: boolean): Promise; commitKV(): Promise; rollback(interaction: GQLNodeInterface, forceStateStoreToCache: boolean): Promise; setInitial(contractTxId: string, state: EvalStateResult, sortKey: string): void; update(contractTxId: string, state: EvalStateResult, sortKey: string): void; updateKV(contractTxId: string, key: CacheKey, value: unknown): Promise; private getOrInitKvStorage; private reset; private doStoreJson; private rollbackKVs; private commitKVs; } //# sourceMappingURL=ContractInteractionState.d.ts.map