/** * @copyright Sister Software * @license AGPL-3.0 * @author Teffen Ellis, et al. * * Fetch the full French BAN (Base Adresse Nationale) — all metropolitan départements (01-95, 2A, * 2B) plus 5 overseas DOM/TOM (971-976 excl. 975). * * Source: https://adresse.data.gouv.fr/data/ban/adresses/latest/csv/ * Licence: 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 "./download.ts"; 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