import { Context, Effect, Layer, Stream } from "effect"; import type { Abi, Address } from "viem"; import type { ClientNotFoundError } from "../core/index.js"; import { PublicClientService } from "../core/index.js"; import type { DecodedEvent } from "../events/index.js"; import type { ContractEventName } from "../types/index.js"; export type BackfillParams> = { chainId: number; address?: Address; abi: TAbi; eventName: TEventName; fromBlock: bigint; toBlock?: bigint; batchSize?: bigint; }; export type EventBackfillShape = { readonly fetch: >(params: BackfillParams) => Effect.Effect, never>, ClientNotFoundError>; readonly fetchAll: >(params: BackfillParams) => Effect.Effect[], ClientNotFoundError>; }; declare const EventBackfill_base: Context.TagClass; export declare class EventBackfill extends EventBackfill_base { } export declare const EventBackfillLive: Layer.Layer; export {}; //# sourceMappingURL=backfill.d.ts.map