/** * @copyright Sister Software * @license AGPL-3.0 * @author Teffen Ellis, et al. * * Download + alphabetize libpostal's `resources/dictionaries` — the per-language abbreviation, * street-type, and synonym tables the normalizer expands against. Shallow-clones * {@link https://github.com/openvenues/libpostal openvenues/libpostal}, sorts each dictionary file * in place, and copies the `dictionaries/` tree next to this script. * * Replaces the bash `resources-download.sh`. `git clone` runs through zx's `$` (no clean native * equivalent); everything else is `node:fs` / `node:os`. Sorting is done in-process with a plain * code-point `Array.sort()`, which matches `LC_ALL=C sort` byte order — deterministic and free of * the shell `sort`'s locale dependency (the original relied on the ambient locale). * * ## Usage * * ```sh * mailwoman dev download libpostal-resources [--force] * ``` * * ## Flags * * - `--force` — delete an existing `./dictionaries` directory instead of erroring out */ /** * Shallow-clone libpostal, alphabetize each dictionary file, and install the tree at the checked-in * `core/data/libpostal/dictionaries`. Refuses to clobber an existing tree unless `force`. zx is lazy-imported * (dev-grade dependency — the pipeline convention). */ export declare function downloadLibpostalResources(options?: { force?: boolean; }, report?: (line: string) => void): Promise; //# sourceMappingURL=download-libpostal-resources.d.ts.map