import { type AdapterOptions, 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. * The name is the region, as `vlaanderen`'s and `wallonie`'s are. */ export declare const BRUSSELS_ADAPTER_ID = "brussels"; /** * The stable id of the publication behind every row. * * It belongs in `SourceRegister` beside `be-vlaanderen-inspire-ad`, and this constant * stands in until that entry lands, because a built corpus stores the id on every row * and the id mustn't change afterwards. * Replace the constant with the `SourceRegister` member on integration. */ export declare const BRUSSELS_SOURCE_REGISTER: "be-brussels-inspire-ad"; /** * The one jurisdiction this adapter emits. * * The download publishes the Brussels-Capital Region, to which ISO 3166-1 assigns * no code of its own, so the set holds one code and a caller naming another gets * {@linkcode UnsupportedCountryError} rather than zero rows. */ export declare const BRUSSELS_COUNTRIES: readonly string[]; /** * Every emitted row records this license label. * * The register's source `be-property-building-3` elects `CC-BY-4.0` for Paradigm, read from * the `gmd:useConstraints` of ISO 19139 record `260abd6f-c5b4-4a79-aa80-d6c265002d65`. * That record lists `URBIS_ADM_Adresses.zip` among its distributions and governs this archive * rather than Paradigm's other address product, the BeSt Brussels register, licensed CC0-1.0. * * The value is the SPDX identifier rather than the license's title, because * `licenseVerdict` resolves an identifier and reads a title as unrecognized. * The constant mustn't hold a placeholder such as `unreviewed-be-brussels-urbis`. * * That value resolves to no expression, so these rows would reach a build as unknown obligations. */ export declare const BRUSSELS_DEFAULT_LICENSE = "CC-BY-4.0"; /** /** * A place name with the publisher's NIS code removed. * * `21019 (Woluwe-Saint-Pierre)` reads `Woluwe-Saint-Pierre`. * A value not of that shape is returned trimmed and otherwise unchanged, because this strips * a prefix the publisher writes rather than parsing a name: a changed shape must reach a * reader as the publisher's own value instead of as a guess at what the name inside might be. * * A value of that shape whose parentheses hold an empty string answers `null`, * so the caller refuses the row rather than writing a NIS code into a locality. * * @returns The name, or `null` for an absent value and for a code with an empty name. */ export declare function placeNameWithoutNISCode(value: string | null): string | null; /** * The components an address references, keyed by the `gml:id` its `#` fragment names. */ export interface BrusselsComponentIndex { /** * `ad:ThoroughfareName` → the street name the publisher spells. * * A street writes a French and a Dutch `ad:name`, in that order, and `thoroughfareName` * reads the first: `BE.BRUSSELS.BRIC.ADM.PN.2110` is `Avenue Jules de Trooz` * and `Jules de Troozlaan`, and the row takes the French spelling. */ streets: ReadonlyMap; /** * `ad:PostalDescriptor` → its `ad:postCode`. * * Twenty-six descriptors over nineteen municipalities, so a code may appear twice: * `BE.BRUSSELS.BRIC.ADM.MZ.13` and `.MZ.18` both hold `1050`. */ postcodes: ReadonlyMap; /** * `ad:AdminUnitName` at {@link MUNICIPALITY_LEVEL} → the municipality name, NIS code removed. * * A unit at another level is left out, so the country, region, province * and district references cannot answer for a locality. */ municipalities: ReadonlyMap; } /** * Indexes the three component types in one pass over the member's head. * * The pass runs to the end of the member rather than stopping at the first address, because the * component-before-address order is a measurement of this file rather than a rule of the schema. * * @throws {@linkcode InspireArchiveError} when a component states no `gml:id`, * when two components share one, or when the pass ends with an empty index. */ export declare function readBrusselsComponents(inputPath: AdapterOptions["inputPath"], signal?: AbortSignal): Promise; export declare function createBrusselsAdapter(): CorpusAdapter; /** * The configured adapter instance registered with the corpus builder. */ export declare const brusselsAdapter: CorpusAdapter; //# sourceMappingURL=adapter.d.ts.map