import type { DataAsOf, FreshnessSnapshot } from './freshness.util'; /** * Sources that differ by more than this are «atrasados». Decided (Daniel, * 2026-11-16, P1): 60 minutes, to be revisited with the first real reports. */ export declare const DATA_AS_OF_LATE_AFTER_MS: number; export type DataAsOfStamp = { status: 'loading'; } | { status: 'unknown'; } | { status: 'known'; at: number; late: boolean; }; /** * Resolves the stamp from the declared sources that are mounted. Declared keys * that never mounted are ignored. With failed sources the oldest of those that * answered is shown (Daniel, 2026-11-16, P2). */ export declare const resolveDataAsOf: (declared: readonly string[], snapshot: FreshnessSnapshot) => DataAsOfStamp; /** * `dd/MM HH:mm` in the institution's zone; `dd/MM/yyyy HH:mm` when the year * there is not the current one. Fixed pattern: country separators do not apply. */ export declare const formatDataAsOf: (at: number, timeZone: string, now: number) => string; /** The one clock of the stamp. */ export declare const dataAsOfNow: () => number; /** Replaces the clock (tests, stories); returns the function that restores it. */ export declare const setDataAsOfClock: (now: () => number) => (() => void); /** * `meta.data_as_of` comes from the network: an object with a strict UTC * `oldest` and `newest` (`oldest <= newest`), else `null` ("unknown"). Only the * parsed numbers leave this function, never the received text. */ export declare const toDataAsOf: (body: unknown) => DataAsOf | null;