/** * Renders a corpus row through its country's layout, printing each form the postal * operator documents for a value in that form's share of rows. * * Croatia's operator prints `HR-10000 ZAGREB` on mail from abroad, * and the bare `10000 ZAGREB` is its domestic form. * The layout's slot lists both, and the parser reads both, so the corpus writes both. * * The form is drawn from the row's identity, its country and its components, * so a rebuild renders every row in the form it rendered before, and the draw * takes no number from a recipe's seeded stream. */ import { type AddressRow, type FormatAddressOptions } from "@mailwoman/codex/address/format"; import type { ComponentDict } from "@mailwoman/codex/address/render"; /** * The share of corpus rows that print a region their postal layout leaves out, after the * locality, in a country whose writers print it (`writersPrintRegionBesideLayout`). * * The postal layouts of Argentina, Romania, Lithuania and others omit the region * because the operator's examples don't print it. * Writers in those countries print it, as in `6400 Trenque Lauquen, Buenos Aires`. * * Half the rows keep the operator's form, and half keep the region and its label. */ export declare const REGION_AFTER_LOCALITY_SHARE = 0.5; /** * {@linkcode formatAddressRow} for a corpus row: each slot with documented forms prints the * one {@linkcode corpusFormDraw} picks for the row, and a region the layout leaves out prints * after the locality on {@linkcode REGION_AFTER_LOCALITY_SHARE} of rows that hold one. */ export declare function formatCorpusRow(components: ComponentDict, country: string, opts?: Omit): AddressRow | null; //# sourceMappingURL=corpus-row.d.ts.map