@sroussey/parse-address
Version:
International street address parser for 220 jurisdictions (US, CA + 218 countries and territories), with SEC EDGAR country-code resolution
19 lines (18 loc) • 606 B
TypeScript
import type { EuCountryConfig } from "./types.js";
/**
* The compiled grammar for one European country. Mirrors the four entry-point
* regexes the US/CA rulesets expose, so `AddressParserEU` can dispatch the same
* way `AddressParserUS` does.
*/
export interface EuRuleset {
address: RegExp;
street_address: RegExp;
informal_address: RegExp;
po_address: RegExp;
building_address: RegExp | null;
settlement_only: RegExp | null;
place_only: RegExp;
po_box: string;
config: EuCountryConfig;
}
export declare function buildEuRuleset(config: EuCountryConfig): EuRuleset;