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 DK_INSPIRE_ADAPTER_ID = "dk-inspire"; /** * The license the address-source register elects for this source. * * Read from the `spdx` field of the register's `unchecked-access-free-dk-klimadatastyrelsen` license. * The register's `dk-property-building-1` source points to it. * * The feed's own `` states the same, but the register is what governs. */ export declare const DK_INSPIRE_DEFAULT_LICENSE = "CC-BY-4.0"; /** * Every jurisdiction this adapter emits, checked against a caller's `--country`. * * Klimadatastyrelsen's INSPIRE obligation covers Denmark proper. * Greenland and the Faroe Islands are separate ISO 3166-1 jurisdictions outside the EU, * and the file's administrative units name `Danmark` and its five regions only. */ export declare const DK_INSPIRE_COUNTRIES: readonly string[]; /** * The tables the adapter reads. * It requires `gpkg_contents` to declare them. * * The GeoPackage declares five. * `addressareaname` holds a supplementary locality that a Danish address line * doesn't state, and `adminunitname` holds the region and municipality the adapter * leaves to cross-reference, so neither is read. */ export declare const DK_INSPIRE_REQUIRED_TABLES: readonly string[]; /** * Raised when the input isn't a GeoPackage this adapter can read. * * The message lists the tables that were declared, so a caller reads which file it opened * rather than receiving zero rows from a database with a different schema. */ export declare class AddressGeoPackageSchemaError extends Error { constructor(inputPath: string, declared: readonly string[], missing: readonly string[]); } /** * Raised when an address row's component reference resolves to no row of the referenced table. * * An unresolved reference means the database is incomplete. * The adapter reports it rather than converting it into an address missing its street. */ export declare class UnresolvedAddressComponentError extends Error { constructor(inspireID: string, column: string, reference: string | null); } /** * The GeoPackage tables and columns the adapter reads. * * The explicit shape catches a column rename upstream. * Every text column is nullable in the publisher's own DDL except the ones marked * `NOT NULL` there, and an absent value is SQL `NULL` rather than an empty string: * the measured file holds no empty string in any column read here. */ export interface AddressGeoPackageDatabase { gpkg_contents: { table_name: string; data_type: string; }; address: { objectid: number; inspireid: string; locator_designator_1_designator: string | null; locator_designator_2_designator: string | null; locator_designator_3_designator: string | null; component_postaldescriptor: string | null; component_thoroughfarename: string | null; }; thoroughfarename: { inspireid: string | null; name_name: string; }; postaldescriptor: { inspireid: string | null; postcode: string | null; postname: string | null; }; } /** * Joins Denmark's floor and door designators into the one `unit` value an address line states. * * Klimadatastyrelsen writes the floor in `locator_designator_2_designator` * (`st` for `stuen`, the ground floor, or a storey number) and the door in * `locator_designator_3_designator` (`tv` for `til venstre`, or a number). * Danish writes the floor first, so the two join in that order. * * {@linkcode composeHouseNumber} answers the empty string when its first argument is absent. * That suits the house-number columns it was written for, and it would drop every * door here: 967 measured rows have a door and no floor. * The door is therefore the value when the floor is absent. * * @returns The joined designator, or the empty string when the publisher states neither. */ export declare function composeUnitDesignator(floor: string | null, door: string | null): string; export declare function createDKInspireAdapter(): CorpusAdapter; /** * The configured adapter instance registered with the corpus builder. */ export declare const dkInspireAdapter: CorpusAdapter; //# sourceMappingURL=adapter.d.ts.map