import { Address, Chain, PublicClient, Transport } from 'viem'; export type GetBatchPostersParams = { /** Address of the rollup we're getting list of batch posters from */ rollup: Address; /** Address of the sequencerInbox we're getting logs from */ sequencerInbox: Address; }; export type GetBatchPostersReturnType = { /** * If logs contain unknown signature, batch posters list might: * - contain false positives (batch posters that were removed, but returned as batch poster) * - contain false negatives (batch posters that were added, but not present in the list) */ isAccurate: boolean; /** List of batch posters for the given rollup */ batchPosters: Address[]; }; /** * * @param {PublicClient} publicClient - The chain Viem Public Client * @param {GetBatchPostersParams} GetBatchPostersParams {@link GetBatchPostersParams} * * @returns Promise<{@link GetBatchPostersReturnType}> * * @remarks Batch posters list is not guaranteed to be exhaustive if the `isAccurate` flag is false. * It might contain false positive (batch posters that were removed, but returned as batch poster) * or false negative (batch posters that were added, but not present in the list) * * @example * const { isAccurate, batchPosters } = getBatchPosters(client, { * rollup: '0xc47dacfbaa80bd9d8112f4e8069482c2a3221336', * sequencerInbox: '0x995a9d3ca121D48d21087eDE20bc8acb2398c8B1' * }); * * if (isAccurate) { * // batch posters were all fetched properly * } else { * // batch posters list is not guaranteed to be accurate * } */ export declare function getBatchPosters(publicClient: PublicClient, { rollup, sequencerInbox }: GetBatchPostersParams): Promise;