import { ACSState } from '../../types'; import { ResolvedAcsOptions } from '../../service'; import { BaseACSCache } from './base'; export declare class ACSCache extends BaseACSCache { protected readonly state: ACSState; /** * Returns the initial snapshot of the active contract set. * Contains the base state captured at a specific ledger offset. */ private get initial(); /** * Returns the incremental updates applied after the initial snapshot. * Contains created and archived events that occurred since the initial state. */ private get updates(); update(options: ResolvedAcsOptions): Promise; calculateAt(offset: number): ({ workflowId?: string; contractEntry?: import("../../../../ledger-client-types/dist/generated-clients/openapi-3.4.12").components["schemas"]["JsContractEntry"]; } & { workflowId?: string; contractEntry?: import("../../../../ledger-client-types/dist/generated-clients/openapi-3.5.1").components["schemas"]["JsContractEntry"]; streamContinuationToken?: string; })[]; /** * Initializes the cache state by fetching the active contract set at the specified offset. * Clears any existing updates and archived contract tracking. */ private initState; /** * Compacts the cache by moving the initial snapshot forward to a more recent offset. * Applies accumulated updates to create a new initial state and discards old events. * Improves performance by reducing the number of updates to process on each query. */ private prune; /** * Fetches ledger updates between two offsets. * Queries the ledger API for transactions containing contract create and archive events. */ private fetchUpdates; /** * Extracts contract creation and archival events from raw ledger updates. * Processes transaction and checkpoint updates to build a list of relevant contract events. * Tracks the highest offset seen across all updates. */ private extractEvents; } //# sourceMappingURL=item.d.ts.map