import { providers } from "ethers"; import { CachingMechanismInterface } from "../interfaces"; import { EventSearchConfig, MakeOptional } from "../utils"; export declare enum UpdateFailureReason { NotReady = 0, AlreadyUpdated = 1, BadRequest = 2, RPCError = 3 } export declare function isUpdateFailureReason(x: EventSearchConfig | UpdateFailureReason): x is UpdateFailureReason; export declare abstract class BaseAbstractClient { readonly eventSearchConfig: MakeOptional; protected cachingMechanism?: CachingMechanismInterface | undefined; protected _isUpdated: boolean; firstBlockToSearch: number; latestBlockSearched: number; constructor(eventSearchConfig?: MakeOptional, cachingMechanism?: CachingMechanismInterface | undefined); get isUpdated(): boolean; set isUpdated(value: boolean); updateSearchConfig(provider: providers.Provider): Promise; protected assertUpdated(): void; protected hasCachingMechanism(): boolean; }