import type { AddressFormat, AddressFormatPatch } from './types.js'; /** * The effective record for a country: `DEFAULT` merged field by field under * the bundled record (a record without `fmt` or `require` inherits ZZ's), then * every registered patch applied in order. Unknown codes resolve to `DEFAULT` * (plus any patches registered for that code, so a package may add a country * the dataset lacks). Always a new object. */ export declare function getAddressFormat(code: string): AddressFormat; /** * Overrides parts of a country's record. From `bootstrap.ts` only: throws once * the registry is locked. Scalars replace, `fmt`/`lfmt`/`languages` replace * whole, `telephone` merges key by key; patches for one code compose in order. */ export declare function patchAddressFormat(code: string, patch: AddressFormatPatch): void; /** Locks every address registry (formats, region providers, extra fields). */ export declare function lockAddressRegistry(): void; export declare function isAddressRegistryLocked(): boolean; /** Monotonic counter; part of the derivation cache key (ยง 3.4). */ export declare function getRegistryGeneration(): number; /** Bumped by every registry mutation (patches, region providers, extra fields). */ export declare function bumpRegistryGeneration(): void; export declare function __resetAddressFormatsForTests(): void;