/** * The external-store quad count reported by GET /api/status, and its cache. * * Kept out of the status route so its module-level state has one owner: the * route reads and refreshes it, and the managed Oxigraph supervisor * invalidates it without importing the route, which imports the supervisor. */ import type { DKGAgent } from '@origintrail-official/dkg-agent'; import { type StoreQuadsStatusFields } from '../status-store-quads-wire.js'; /** * Drop cached quad counts. The managed Oxigraph calls this when its child goes * down and again when it is healthy after a restart. A count already running * cannot be cancelled, so it loses the in-flight marker instead, and its * result is discarded when it settles. */ export declare function invalidateExternalStoreQuadsCache(): void; /** * Explicit request: start a recount unless the cached result is fresh or one * is already running, then report what is known. The report is read after * that decision, so a recount this call started already shows as `pending` * (no cached result) or as refreshing the cached one. */ export declare function requestExternalStoreQuads(agent: DKGAgent, now: number): StoreQuadsStatusFields; /** * Ordinary polling: report what is already known and never start a count. * Every field, including whether a count that will replace the reported * result is running, is read at this one instant, so the returned fields stay * true to that instant whenever the caller serializes them. */ export declare function peekCachedExternalStoreQuads(now: number): StoreQuadsStatusFields; //# sourceMappingURL=store-quads-cache.d.ts.map