import type { AlignTotalsRecord } from "#build/align/totals"; import type { RegionNames } from "#build/region/names"; /** * The fields of a source's completion record the recount reads and writes. */ export interface RegionCheckedRecord { source: string; derivation: { config: unknown; }; totals: AlignTotalsRecord; /** * The fingerprints of the region data the `region:unknown` count in `totals` * was made under, from `regionCheckFingerprints`. * * A record written before the region data left the derivation holds them in `derivation.config.alignData`. */ regionCheck?: Record; } /** * The fingerprints of the region data a record's count was made under: its `regionCheck`, * or the region keys a record written before the field kept in its derivation's `alignData`. */ export declare function recordedRegionCheck(record: RegionCheckedRecord): Record | null; /** * A derivation with the region keys a record written before `regionCheck` kept in * `alignData` left out, so a record of either age compares with this build's derivation. */ export declare function withoutRegionCheckInputs(derivation: T): T; /** * The record with its `region:unknown` count made under the region data `current` * fingerprints, or why it can't be. * * A record already made under `current` comes back with only its `regionCheck` set. * Under `regions` null the count is removed and the rule listed as unchecked, * as an align without the database writes. */ export declare function recountRegionCheck(record: T, current: Record, readRegions: () => Promise): Promise<{ record: T; problem: null; } | { record: null; problem: string; }>; //# sourceMappingURL=recount.d.ts.map