/** * @copyright Sister Software * @license AGPL-3.0 * @author Teffen Ellis, et al. * * Fetch the full French BAN (Base Adresse Nationale): every metropolitan département (01-95, 2A, * 2B) and the ten overseas files the publisher serves, 971-978 plus 987 French Polynesia and 988 New * Caledonia. Each overseas file is its own ISO 3166-1 jurisdiction, which the adapter derives from * `code_insee`. * * Source: https://adresse.data.gouv.fr/data/ban/adresses/latest/csv/ * License: Licence Ouverte 2.0 (attribution required — Tier B). * * Files already present with matching sha256 are skipped (re-runnable). Downloads `.csv.gz`, * decompresses to `.csv`, deletes the `.gz` artifact. One shared `manifest.json` at * `/ban/manifest.json` covers all codes. * * Invoke via `mailwoman corpus fetch ban --out-root `. Built-in `fetch` with gzip/brotli * decompression replaces curl. native `node:zlib` gunzip replaces the `gunzip` subprocess. no * Python. */ import type { BaseFetchOptions, FetchSummary } from "#tools/fetch/download"; export interface BanManifestEntry { dept_code: string; filename: string; source_url: string; downloaded_at: string; sha256: string; bytes: number; } export type FetchBanOptions = BaseFetchOptions; export declare function fetchBan(options: FetchBanOptions, report?: (line: string) => void): Promise; //# sourceMappingURL=ban.d.ts.map