import type { BaseFetchOptions, FetchSummary } from "#tools/fetch/download"; /** * The ATOM service document for Denmark's Addresses theme. */ export declare const DK_ADDRESSES_FEED_URL = "https://www2.sdfe.dk/INSPIRE/feeds/Addresses.xml"; /** * The zip member the adapter reads. */ export declare const DK_ADDRESSES_GEOPACKAGE_MEMBER = "ad_inspire.gpkg"; /** * What the feed states about its one dataset. */ export interface AddressesFeedEntry { /** * The entry's title, `DK INSPIRE Addresses` in the measured feed. */ title: string; /** * The download URL, with the member in the query so the host serves the file. */ downloadURL: string; /** * The media type the entry advertises, `application/geopackage+sqlite3` in the measured feed. */ mediaType: string | null; } /** * Read the one dataset entry out of the feed. * * Parsed with `@mailwoman/core/html/elements` rather than matched with a pattern. * * The feed needs both of the things a pattern handles badly. * Its entry tag has an `xml:lang` attribute, so a reader has to keep attributes. * * Its hrefs escape the ampersand between query parameters, so a reader has to decode entities. * * The parser does both. * XML mode is required: the entry's links self-close, and HTML mode leaves them open. * * @param xml The whole feed, 3,130 bytes, taken as one string rather than as a stream. * @throws When the feed holds no entry, or its entry no usable link. * A feed holding neither reads as a change at the publisher. * A caller has to see that. */ export declare function readAddressesFeed(xml: string, feedURL: string): Promise; /** * Name the zip member on a weblink URL, so the host serves the file instead of its landing page. * * A URL that already identifies one is answered unchanged, so a publisher that starts * writing the complete URL into the feed doesn't get the parameter twice. */ export declare function datasetURLOf(href: string): string; export type FetchDKAddressesOptions = BaseFetchOptions; /** * Download Denmark's Addresses GeoPackage and leave it beside a manifest recording its sha256. * * Re-runnable: a run whose manifest sha256 still matches the extracted GeoPackage * reuses that file and makes no request. */ export declare function fetchDKAddresses(options: FetchDKAddressesOptions, report?: (line: string) => void): Promise; //# sourceMappingURL=inspire.d.ts.map