import { type CorpusAdapter } from "#types"; /** * Registry id for this adapter. * * Stamped into every row it emits, so a corpus record can be traced back to the dataset it came from. */ export declare const RYHTI_ADAPTER_ID = "ryhti"; /** * The sixteen `municipality_number` values of Åland's municipalities. * * Every other number in the file belongs to a mainland Finnish municipality. * * The column is a zero-padded three-digit string, so a reader compares the padded form. */ export declare const ALAND_MUNICIPALITIES: ReadonlySet; /** * Every jurisdiction this adapter emits, checked against a caller's `--country`. */ export declare const RYHTI_COUNTRIES: readonly string[]; /** * The four columns that hold a house number, declared as one shape because * {@linkcode composeRyhtiHouseNumber} reads these four columns and derives the number from them. */ interface RyhtiNumberParts { number_part_of_address_number: string; number_part_of_address_number2: string; subdivision_letter_of_address_number: string; subdivision_letter_of_address_number2: string; } /** * The country a row belongs to, read from its municipality number. * * The comparison is against the zero-padded three-digit form the file publishes, * and a shorter value is padded rather than refused, so `35` reads as Brändö. */ export declare function countryOfFinnishMunicipality(municipalityNumber: string): string; /** * The house number, composed from the four part columns. * * SYKE splits `41a` into a number part and a subdivision letter, and a range such * as `184-183b` across a second pair of the same two columns. * The second pair is appended after a hyphen when either of its halves is populated. * * @returns The composed number, or an empty string for a row with no number at all. * A caller treats that empty string as a place name rather than a number. */ export declare function composeRyhtiHouseNumber(record: Partial): string; export declare function createRyhtiAdapter(): CorpusAdapter; /** * The configured adapter instance registered with the corpus builder. */ export declare const ryhtiAdapter: CorpusAdapter; export {}; //# sourceMappingURL=adapter.d.ts.map