import { IBlockParser } from '../../interfaces'; import { BlockParserResult } from '../../types'; import { Loggable } from "../../lib/Loggable"; import { ILogger } from "../../interfaces/lib/ILogger"; import { IAlerts } from "../../interfaces/lib/IAlerts"; /** * The IBlockParser implementation for preparing the block fields returned from a Casper Network node * in an acceptable format to write to the SQL data store. */ export declare class BlockParser extends Loggable implements IBlockParser { /** * @param {ILogger} logger property used for delegation of routing logs * @param {IAlerts} alerts property used for delegation of sending alerts */ constructor(logger?: ILogger, alerts?: IAlerts); /** * Parses the fields from the raw block into an object that can be written to the data store. * @param block raw block fetched from the blockchain */ apply(block: any): BlockParserResult; }