import type { BlockEvent, Finding, HandleBlock, HandleTransaction, TransactionEvent } from "forta-agent"; import type { FindingGenerator } from "./types"; export type HandlerOptions = Options & { onFinding?: FindingGenerator; }; export declare abstract class Handler { options: HandlerOptions; constructor(options: HandlerOptions); private _checkOnFinding; handle(event: TransactionEvent | BlockEvent, onFinding?: FindingGenerator): Promise; protected _handle(event: TransactionEvent | BlockEvent, onFinding: FindingGenerator): Promise; abstract metadata(event: TransactionEvent | BlockEvent): Promise; getHandleBlock(onFinding?: FindingGenerator): HandleBlock; getHandleTransaction(onFinding?: FindingGenerator): HandleTransaction; }