import { EthqlContext } from '@ethql/base'; import { DecodedLog, DecodedTransaction, DecoderDefinition, DecodingEngine } from '..'; import { EthqlLog, EthqlTransaction } from '../../../model'; /** * A transaction decoding engine that matches the incoming transaction against a list of known ABIs. */ declare class SimpleDecodingEngine implements DecodingEngine { private readonly registry; register(decoder: DecoderDefinition): void; /** * Decodes the transaction as a known type, or returns undefined if unable to. * * @param tx The transaction to decode. * @param context ethql context. */ decodeTransaction(tx: EthqlTransaction, context: EthqlContext): DecodedTransaction | undefined; /** * Decodes a transaction against a set of ABIs, or returns undefined if unable to. * * @param log The log to decode. * @param context ethql context. */ decodeLog(log: EthqlLog, context: EthqlContext): DecodedLog | undefined; } export { SimpleDecodingEngine }; //# sourceMappingURL=simple.d.ts.map