import type { Address, TransactionReceipt } from "viem"; import type { ChainContractsRegister } from "../sdk/index.js"; import type { CreditAccountOperation } from "./types.js"; export interface ParseTransactionInput { /** * Output of `debug_traceTransaction` */ trace: unknown; receipt: Pick, "logs" | "transactionHash" | "blockNumber" | "blockTimestamp">; pool: Address; /** * Underlying token of the pool. */ underlying: Address; creditManager: Address; creditFacade: Address; creditAccount: Address; register: ChainContractsRegister; /** * Whether to throw an error if an unknown adapter/protocol is encountered. */ strict?: boolean; } /** * Parses a single transaction into classified credit account operations. */ export declare function parseCreditAccountTransaction(input: ParseTransactionInput): CreditAccountOperation[];