import { Chain, GetLogsParameters, GetLogsReturnType, PublicClient, Transport } from 'viem'; import { AbiEvent } from 'abitype'; type Options = { /** When batching calls, stop on the first event found */ stopWhenFound?: boolean; /** Size of the batch when batching calls */ batchSize?: bigint; }; type GetLogsOptions = { fromBlock?: bigint; toBlock?: bigint; }; /** * * @param {PublicClient} publicClient - The chain Viem Public Client * @param {GetLogsParameters} getLogsParameters {@link GetLogsParameters} * @param {Options} options {@link Options} * * @returns Promise<{@link GetLogsReturnType}> * * Fetch logs for a given range. On failure, we batch logs to avoid rate limiting. * * @example * const events = await getLogsWithBatching(client, { * address: rollupAddress, * event: RollupInitializedEventAbi, * fromBlock: 0n, * toBlock: blockNumber, * }); */ export declare function getLogsWithBatching(publicClient: PublicClient, params: Omit, 'blockHash'> & GetLogsOptions, options?: Options): Promise>; export declare function getLogsWithBatching(publicClient: PublicClient, params: Omit, 'blockHash'> & GetLogsOptions, options?: Options): Promise>; export {};