/** * One rendered fragment row before its provenance columns. */ export interface FragmentRow { raw: string; tokens: string[]; labels: string[]; span_starts: number[]; span_ends: number[]; span_tags: string[]; } /** * The English country name a comma-free context row appends, keyed by OpenAddresses locale country. */ export declare const FRAGMENT_COUNTRY_NAMES: Readonly>; /** * Each country's word-form surfaces in the codex's order: its curated forms without the two-letter * codes (`countryRenderForms`), or its ISO English name, keeping those of at least three characters. * A country left with none is absent. */ export declare function codexCountrySurfaces(): Map; /** * A bare surface, or a surface and a trailing house number, under `tag`. */ export declare function renderFragment(surface: string, number: string | null, tag?: string): FragmentRow; /** * A locality and a trailing postcode: `Eight Mile Plains 4113`. */ export declare function renderLocalityPostcode(city: string, postcode: string): FragmentRow; /** * A comma-free context row: `STREET NUMBER CITY [COUNTRY]` when the number trails, * else `NUMBER STREET CITY [COUNTRY]`. * * @throws When `withCountry` is set and {@linkcode FRAGMENT_COUNTRY_NAMES} has no name for `country`. */ export declare function renderContext(street: string, number: string, city: string, country: string, trailing: boolean, withCountry: boolean): FragmentRow; /** * A compact unit row: `UNIT 711 139 BOUVERIE STREET`. */ export declare function renderCompactUnit(unit: string, number: string, street: string): FragmentRow; /** * A comma-free `LOCALITY REGION` pair. */ export declare function renderLocalityRegion(locality: string, region: string): FragmentRow; /** * A full address ending in a country surface. * * The number and street are one group, and the groups are joined by `, ` * when `comma` is set, else by a space. */ export declare function renderCountryContext(street: string, number: string, city: string, countryName: string, trailing: boolean, comma: boolean): FragmentRow; /** * A leading-country admin row: `United States of America, Wyoming, Лорейн`. */ export declare function renderCountryLeading(surface: string, region: string, locality: string): FragmentRow; //# sourceMappingURL=rows.d.ts.map