import type { AssetId, ChainId } from '@shapeshiftoss/caip'; import type { Api } from '..'; import type { ParsedTx, SubParser, Tx } from './types'; export * from './types'; export * from './utils'; export interface BaseTransactionParserArgs { chainId: ChainId; assetId: AssetId; api: Api; rpcUrl: string; } export declare class BaseTransactionParser { chainId: ChainId; assetId: AssetId; protected readonly api: Api; protected readonly rpcUrl: string; private parsers; constructor(args: BaseTransactionParserArgs); /** * Register custom transaction sub parser to extract contract specific data * * _parsers should be registered from most generic first to most specific last_ */ registerParser(parser: SubParser): void; protected registerParsers(parsers: SubParser[]): void; parse(tx: T, address: string): Promise; private getStatus; private getParsedTxWithTransfers; }