/** * @copyright Sister Software * @license AGPL-3.0 * @author Teffen Ellis, et al. * * Download Google/Chromium's per-country `ssl-address` postal-address metadata — the * {@link https://github.com/google/libaddressinput libaddressinput} AddressValidationMetadata that * seeds the per-locale field order, required-field, and upper-casing conventions. * * See: https://github.com/google/libaddressinput/wiki/AddressValidationMetadata * * Replaces the bash `ssl-address-download.sh` (curl + jq). The country list lives at * `…/ssl-address/data` as a `~`-delimited `.countries` string; each country's record is then * fetched from `…/ssl-address/data/` and written to `/.json`. * * ## Usage * * ```sh * mailwoman dev download ssl-address [--concurrency 16] * ``` * * ## Flags * * - `--out-dir ` — destination directory; default `./ssl-address` (next to this script) * - `--concurrency ` — parallel per-country fetches; default `8` */ /** * Flag-shaped options for {@linkcode downloadSSLAddress}. */ export interface DownloadSSLAddressOptions { /** * Destination directory. Default: the checked-in `core/data/chromium-i18n/ssl-address`. */ outDir?: string; /** * Parallel per-country fetches. Default 8. */ concurrency?: number; } /** * Download every country's ssl-address metadata record. Returns the failure count (the command maps `failed > 0` to * exit 1). */ export declare function downloadSSLAddress(options?: DownloadSSLAddressOptions, report?: (line: string) => void): Promise<{ written: number; failed: number; }>; //# sourceMappingURL=download-ssl-address.d.ts.map