import { BlockHeader } from './BlockHeaderApi'; import { ChaintracksStorageApi } from './ChaintracksStorageApi'; export interface LiveIngestorApi { /** * Close and release all resources. */ shutdown(): Promise; getHeaderByHash(hash: string): Promise; /** * Called before first Synchronize with reference to storage. * Components requiring asynchronous setup can override base class implementation. * @param storage */ setStorage(storage: ChaintracksStorageApi, log: (...args: any[]) => void): Promise; storage(): ChaintracksStorageApi; startListening(liveHeaders: BlockHeader[]): Promise; stopListening(): void; } //# sourceMappingURL=LiveIngestorApi.d.ts.map