import type { CompactTrustedListBundle, TrustedListData, TrustedListSource, TrustedService } from "./types"; /** * Derive a stable, filesystem/URL-safe bundle id from a generatedAt timestamp, * e.g. "2026-06-25T18:30:00.000Z" -> "2026-06-25T18-30-00Z". */ export declare function formatTrustedListBundleId(generatedAt: string): string; export declare function createEmptyTrustedListBundle(): CompactTrustedListBundle; export declare function buildTrustedListData(bundle: CompactTrustedListBundle): TrustedListData; export declare function buildCompactTrustedListBundle(services: TrustedService[], sources: TrustedListSource[], generatedAt?: string): CompactTrustedListBundle; /** * Carry forward last-known-good services only for territories whose advertised * TSL endpoints were explicitly observed as unreachable during this fetch. * * A territory merely being absent from the fresh bundle is not sufficient: * absence can represent a legitimate removal and must not resurrect stale trust. * A territory present in the fresh bundle always wins. */ export declare function mergeForwardUnreachableTerritories(fresh: CompactTrustedListBundle, previous: CompactTrustedListBundle, unreachableTerritories: ReadonlySet): CompactTrustedListBundle; export declare function dedupeTrustedServices(services: TrustedService[]): TrustedService[];