/** * @copyright Sister Software * @license AGPL-3.0 * @author Teffen Ellis, et al. * * Postcode FORMAT → country evidence, pure and platform-free — the #928 unforgeable singles and the * #1589 bare-context implied set. Lifted out of `mailwoman/geocode-core` so `@mailwoman/resolver` * (which runs in the browser via the demo cascade) can derive the implied set itself instead of * depending on a CLI-side caller to thread it — the 2026-08-11 staged-repoint e2e caught exactly * that gap (`100 00` resolved in Node and not in the browser, same artifact). `geocode-core` * re-exports everything here, so its consumers and tests are unmoved. */ /** * #928: distinctive postcode FORMATS that unambiguously indicate a country — a stronger country signal than the * language-based coarse placer, which conflates GB/US (both carry English street patterns) and mis-routes GB addresses * to US namesakes (`London E4 9AZ` → London, Ohio) at 0.94–0.96 confidence. The format is unforgeable across these * countries: the GB pattern (letters-first) never matches a US ZIP or an NL `\d{4} [A-Z]{2}` code. Extend ONLY with * formats validated as non-overlapping. Feeds the `postcodeCountryPrior` lever (gated, default-off pending its gate). */ export declare const POSTCODE_FORMAT_COUNTRY: ReadonlyArray<{ readonly re: RegExp; readonly country: string; }>; /** * The country a parsed postcode's FORMAT implies, or null. See {@link POSTCODE_FORMAT_COUNTRY}. */ export declare function countryFromPostcodeFormat(postcode: string | undefined): string | null; /** * EVERY country a parsed postcode's FORMAT is consistent with — the singles table, the NL PC6 shape, and the shared * `NNN NN` family. Empty when the shape implies nothing (a bare 5-digit reads US/FR/DE and more; that family stays with * the locale prior on purpose — the `75008` contract). * * Unlike {@link countryFromPostcodeFormat}, this is NOT an unforgeable-in-any-context claim: consumers (the resolver's * implied-set probe, the CLI's withheld-scope guard) apply it only to a tree that is a bare postcode, where the * street-fragment collision the singles table must exclude cannot arise. */ export declare function countriesFromPostcodeFormat(postcode: string | undefined): readonly string[]; //# sourceMappingURL=postcode-format.d.ts.map