import { ReplayFile } from './fileio'; import { Logger } from './logger'; export { makeLogger } from './logger'; export type SlimLog = { address: string; data: string; topics: string[]; transactionHash: string; blockNumber: number; logIndex: number; transactionIndex: number; blockHash?: string; }; export type SlimTx = { hash?: string; from?: string; to?: string; }; export type SlimBlock = { header: { height: number; hash?: string | null; timestamp: number; }; logs: SlimLog[]; transactions?: SlimTx[]; }; export type CacheMode = 'record' | 'replay' | 'off'; export type CacheInit = { root?: string; project: string; chain: string; configIdentity: unknown; mode?: CacheMode; logger?: Logger; }; export type Recorder = { readonly root: string; readonly project: string; readonly chain: string; readonly configHash: string; readonly mode: CacheMode; recordBatch(blocks: any[]): Promise; listReplayFiles(): ReplayFile[]; readFile(fileAbsPath: string): AsyncGenerator; autoSwapBlocks(liveBlocks: SlimBlock[], logger?: Pick): Promise; }; export declare function makeRecorder(init: CacheInit): Recorder;