import { type PublicClient } from 'viem'; import { type BundlerClient } from 'viem/account-abstraction'; import { type EvmActivity, type Erc20TransactionActivity } from '../activities'; import type { EvmAddress } from '../types'; /** * Gets activities for the Kernel smart wallet * * P11TODO: Getting activities this way isn't ideal. This function relies on getting contract events * and then iterating over them and calling getUserOperation on each. Bundlers like Ultra Relay have * a max-block-range (@see https://github.com/p-11/ultra-relay/blob/p11-main/alto-config.json#L14) * that limit history to the last X blocks. It returns null for any beyond that. This is a problem * that we likely want to fix by creating a light indexer and relying on that instead of the bundler. * * @param publicClient A viem PublicClient for the chain * @param bundlerClient A viem BundlerClient for the chain * @param address The address of the smart wallet * @returns An array of activities */ export declare function getKernelActivities(publicClient: PublicClient, bundlerClient: BundlerClient, address: EvmAddress): Promise; /** * Gets incoming ERC-20 transaction activities for the Kernel smart wallet * * @param publicClient A viem PublicClient for the chain * @param address The address of the smart wallet * @param token The address of the ERC-20 token * @returns An array of transaction activities */ export declare function getTokenActivities(publicClient: PublicClient, address: EvmAddress, token: EvmAddress): Promise;